query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
.ChunkResponse chunkResponse = 11;
public Builder clearChunkResponse() { if (chunkResponseBuilder_ == null) { chunkResponse_ = null; onChanged(); } else { chunkResponse_ = null; chunkResponseBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();", "boolean hasChunkResponse();", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "void sendChunkRequest(int chunkX, int chunkY);", "@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }", "boolean hasStoreChunkResponse();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "entities.Torrent.ChunkRequest getChunkRequest();", "int getChunkSize();", "public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "@java.lang.Override\n public entities.Torrent.ChunkResponse getChunkResponse() {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "@Test\n public void testInterceptedChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test/intercepted\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertThat(\"Unexpected numbed of received chunks.\", counter, Matchers.equalTo(3));\n Assert.assertThat(\"Unexpected number of chunked output interceptions.\", ChunkedInputOutputTest.TestWriterInterceptor.interceptCounter.get(), Matchers.equalTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output write calls.\", ChunkedInputOutputTest.TestWriterInterceptor.writeCounter.get(), Matchers.greaterThanOrEqualTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output flush calls.\", ChunkedInputOutputTest.TestWriterInterceptor.flushCounter.get(), Matchers.greaterThanOrEqualTo(3));\n Assert.assertThat(\"Unexpected number of intercepted output close calls.\", ChunkedInputOutputTest.TestWriterInterceptor.closeCounter.get(), Matchers.equalTo(1));\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public entities.Torrent.ChunkResponse getChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n } else {\n return chunkResponseBuilder_.getMessage();\n }\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "@java.lang.Override\n public boolean hasChunkResponse() {\n return chunkResponse_ != null;\n }", "boolean hasChunkRequest();", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public boolean hasChunkResponse() {\n return chunkResponseBuilder_ != null || chunkResponse_ != null;\n }", "private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();", "public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }", "boolean canRequestChunk();", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n if (chunkResponseBuilder_ != null) {\n return chunkResponseBuilder_.getMessageOrBuilder();\n } else {\n return chunkResponse_ == null ?\n entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }\n }", "DataChunk nextChunk() throws RemoteException;", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "@Override\n public void setContentLength(int arg0) {\n\n }", "void setChunkType(String aChunkType);", "OptimizeResponse() {\n\n\t}", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "public Builder setStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "void requestProcessed( C conn, int numResponseExpected ) ;", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "String getChunkType();", "public int getResponse() {return response;}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if ((msgCase_ == 8) && (storeChunkResponseBuilder_ != null)) {\n return storeChunkResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public int getChunkSize() {\n return chunkSize_;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 8) {\n return storeChunkResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "Response mo35726n0() throws IOException;", "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }", "public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "com.google.protobuf.ByteString getResponse(int index);", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public static Response newChunkedResponse(Response.IStatus status, String mimeType,\n\t\t\tInputStream data) {\n\t\treturn new Response(status, mimeType, data, -1);\n\t}", "public Builder setChunkResponse(\n entities.Torrent.ChunkResponse.Builder builderForValue) {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = builderForValue.build();\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "<H extends ResponseHandler<Result[]>> H nextBatch(H handler);", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder getStoreChunkResponseBuilder() {\n return getStoreChunkResponseFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "public void setContentLength(int i) {\n\n\t}", "@java.lang.Override\n public int getResponseCount() {\n return response_.size();\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "void setChunk(Boolean aIsChunk);", "void setLastChunk(Boolean aIsLastChunk);", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Override\n public boolean startContent(int statusCode, Compression compression) {\n return true;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}" ]
[ "0.76127803", "0.689421", "0.68631434", "0.6827106", "0.67847973", "0.6521442", "0.6472285", "0.6423145", "0.631949", "0.63179505", "0.6315173", "0.6304548", "0.6237635", "0.62216306", "0.62191415", "0.62191415", "0.62191415", "0.62191415", "0.6205167", "0.61997634", "0.6185729", "0.61624604", "0.61624604", "0.6147691", "0.6127977", "0.60859364", "0.6078434", "0.60712343", "0.60597616", "0.6058618", "0.60444075", "0.60082656", "0.6004962", "0.59973407", "0.59547323", "0.594303", "0.59425306", "0.591819", "0.59122777", "0.5898738", "0.5893066", "0.5806769", "0.57947266", "0.57923245", "0.5786592", "0.575823", "0.5741261", "0.5733664", "0.57299364", "0.5696999", "0.5683345", "0.5612647", "0.56039596", "0.55850226", "0.55803216", "0.5565494", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.5552268", "0.5552268", "0.5549423", "0.554129", "0.5530548", "0.5525945", "0.5521206", "0.5515143", "0.5498325", "0.54975045", "0.5490311", "0.54831505", "0.5475449", "0.5475449", "0.5475449", "0.5475449", "0.54687035", "0.54453146", "0.53983974", "0.5394236", "0.5392382", "0.53885335", "0.53885335", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.5368535", "0.5365395", "0.5356758", "0.5356715", "0.5356533", "0.53496534", "0.5348419", "0.53483033", "0.5346381" ]
0.57585347
45
.ChunkResponse chunkResponse = 11;
public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() { onChanged(); return getChunkResponseFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();", "boolean hasChunkResponse();", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "void sendChunkRequest(int chunkX, int chunkY);", "@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }", "boolean hasStoreChunkResponse();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "entities.Torrent.ChunkRequest getChunkRequest();", "int getChunkSize();", "public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "@java.lang.Override\n public entities.Torrent.ChunkResponse getChunkResponse() {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "@Test\n public void testInterceptedChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test/intercepted\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertThat(\"Unexpected numbed of received chunks.\", counter, Matchers.equalTo(3));\n Assert.assertThat(\"Unexpected number of chunked output interceptions.\", ChunkedInputOutputTest.TestWriterInterceptor.interceptCounter.get(), Matchers.equalTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output write calls.\", ChunkedInputOutputTest.TestWriterInterceptor.writeCounter.get(), Matchers.greaterThanOrEqualTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output flush calls.\", ChunkedInputOutputTest.TestWriterInterceptor.flushCounter.get(), Matchers.greaterThanOrEqualTo(3));\n Assert.assertThat(\"Unexpected number of intercepted output close calls.\", ChunkedInputOutputTest.TestWriterInterceptor.closeCounter.get(), Matchers.equalTo(1));\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public entities.Torrent.ChunkResponse getChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n } else {\n return chunkResponseBuilder_.getMessage();\n }\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "@java.lang.Override\n public boolean hasChunkResponse() {\n return chunkResponse_ != null;\n }", "boolean hasChunkRequest();", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public boolean hasChunkResponse() {\n return chunkResponseBuilder_ != null || chunkResponse_ != null;\n }", "private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();", "boolean canRequestChunk();", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n if (chunkResponseBuilder_ != null) {\n return chunkResponseBuilder_.getMessageOrBuilder();\n } else {\n return chunkResponse_ == null ?\n entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }\n }", "DataChunk nextChunk() throws RemoteException;", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "@Override\n public void setContentLength(int arg0) {\n\n }", "void setChunkType(String aChunkType);", "public Builder clearChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = null;\n onChanged();\n } else {\n chunkResponse_ = null;\n chunkResponseBuilder_ = null;\n }\n\n return this;\n }", "OptimizeResponse() {\n\n\t}", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "public Builder setStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "void requestProcessed( C conn, int numResponseExpected ) ;", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "String getChunkType();", "public int getResponse() {return response;}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if ((msgCase_ == 8) && (storeChunkResponseBuilder_ != null)) {\n return storeChunkResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public int getChunkSize() {\n return chunkSize_;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 8) {\n return storeChunkResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "Response mo35726n0() throws IOException;", "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }", "public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "com.google.protobuf.ByteString getResponse(int index);", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public static Response newChunkedResponse(Response.IStatus status, String mimeType,\n\t\t\tInputStream data) {\n\t\treturn new Response(status, mimeType, data, -1);\n\t}", "public Builder setChunkResponse(\n entities.Torrent.ChunkResponse.Builder builderForValue) {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = builderForValue.build();\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "<H extends ResponseHandler<Result[]>> H nextBatch(H handler);", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder getStoreChunkResponseBuilder() {\n return getStoreChunkResponseFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "public void setContentLength(int i) {\n\n\t}", "@java.lang.Override\n public int getResponseCount() {\n return response_.size();\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "void setChunk(Boolean aIsChunk);", "void setLastChunk(Boolean aIsLastChunk);", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Override\n public boolean startContent(int statusCode, Compression compression) {\n return true;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}" ]
[ "0.76127803", "0.689421", "0.68631434", "0.6827106", "0.67847973", "0.6521442", "0.6472285", "0.6423145", "0.631949", "0.63179505", "0.6315173", "0.6304548", "0.6237635", "0.62216306", "0.62191415", "0.62191415", "0.62191415", "0.62191415", "0.6205167", "0.61997634", "0.6185729", "0.61624604", "0.61624604", "0.6147691", "0.6127977", "0.60859364", "0.6078434", "0.60712343", "0.60597616", "0.6058618", "0.60444075", "0.60082656", "0.6004962", "0.59973407", "0.59547323", "0.59425306", "0.591819", "0.59122777", "0.5898738", "0.5893066", "0.5806769", "0.57947266", "0.57923245", "0.5786592", "0.57585347", "0.575823", "0.5741261", "0.5733664", "0.57299364", "0.5696999", "0.5683345", "0.5612647", "0.56039596", "0.55850226", "0.55803216", "0.5565494", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.5552268", "0.5552268", "0.5549423", "0.554129", "0.5530548", "0.5525945", "0.5521206", "0.5515143", "0.5498325", "0.54975045", "0.5490311", "0.54831505", "0.5475449", "0.5475449", "0.5475449", "0.5475449", "0.54687035", "0.54453146", "0.53983974", "0.5394236", "0.5392382", "0.53885335", "0.53885335", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.5368535", "0.5365395", "0.5356758", "0.5356715", "0.5356533", "0.53496534", "0.5348419", "0.53483033", "0.5346381" ]
0.594303
35
.ChunkResponse chunkResponse = 11;
public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() { if (chunkResponseBuilder_ != null) { return chunkResponseBuilder_.getMessageOrBuilder(); } else { return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();", "boolean hasChunkResponse();", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "void sendChunkRequest(int chunkX, int chunkY);", "@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }", "boolean hasStoreChunkResponse();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "entities.Torrent.ChunkRequest getChunkRequest();", "int getChunkSize();", "public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "@java.lang.Override\n public entities.Torrent.ChunkResponse getChunkResponse() {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "@Test\n public void testInterceptedChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test/intercepted\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertThat(\"Unexpected numbed of received chunks.\", counter, Matchers.equalTo(3));\n Assert.assertThat(\"Unexpected number of chunked output interceptions.\", ChunkedInputOutputTest.TestWriterInterceptor.interceptCounter.get(), Matchers.equalTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output write calls.\", ChunkedInputOutputTest.TestWriterInterceptor.writeCounter.get(), Matchers.greaterThanOrEqualTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output flush calls.\", ChunkedInputOutputTest.TestWriterInterceptor.flushCounter.get(), Matchers.greaterThanOrEqualTo(3));\n Assert.assertThat(\"Unexpected number of intercepted output close calls.\", ChunkedInputOutputTest.TestWriterInterceptor.closeCounter.get(), Matchers.equalTo(1));\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public entities.Torrent.ChunkResponse getChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n } else {\n return chunkResponseBuilder_.getMessage();\n }\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "@java.lang.Override\n public boolean hasChunkResponse() {\n return chunkResponse_ != null;\n }", "boolean hasChunkRequest();", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public boolean hasChunkResponse() {\n return chunkResponseBuilder_ != null || chunkResponse_ != null;\n }", "private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();", "public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }", "boolean canRequestChunk();", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "DataChunk nextChunk() throws RemoteException;", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "@Override\n public void setContentLength(int arg0) {\n\n }", "void setChunkType(String aChunkType);", "public Builder clearChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = null;\n onChanged();\n } else {\n chunkResponse_ = null;\n chunkResponseBuilder_ = null;\n }\n\n return this;\n }", "OptimizeResponse() {\n\n\t}", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "public Builder setStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "void requestProcessed( C conn, int numResponseExpected ) ;", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "String getChunkType();", "public int getResponse() {return response;}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if ((msgCase_ == 8) && (storeChunkResponseBuilder_ != null)) {\n return storeChunkResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public int getChunkSize() {\n return chunkSize_;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 8) {\n return storeChunkResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "Response mo35726n0() throws IOException;", "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }", "public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "com.google.protobuf.ByteString getResponse(int index);", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public static Response newChunkedResponse(Response.IStatus status, String mimeType,\n\t\t\tInputStream data) {\n\t\treturn new Response(status, mimeType, data, -1);\n\t}", "public Builder setChunkResponse(\n entities.Torrent.ChunkResponse.Builder builderForValue) {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = builderForValue.build();\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "<H extends ResponseHandler<Result[]>> H nextBatch(H handler);", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder getStoreChunkResponseBuilder() {\n return getStoreChunkResponseFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "public void setContentLength(int i) {\n\n\t}", "@java.lang.Override\n public int getResponseCount() {\n return response_.size();\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "void setChunk(Boolean aIsChunk);", "void setLastChunk(Boolean aIsLastChunk);", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Override\n public boolean startContent(int statusCode, Compression compression) {\n return true;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}" ]
[ "0.76127803", "0.689421", "0.68631434", "0.6827106", "0.67847973", "0.6521442", "0.6472285", "0.6423145", "0.631949", "0.63179505", "0.6315173", "0.6304548", "0.6237635", "0.62216306", "0.62191415", "0.62191415", "0.62191415", "0.62191415", "0.6205167", "0.61997634", "0.6185729", "0.61624604", "0.61624604", "0.6147691", "0.6127977", "0.60859364", "0.6078434", "0.60712343", "0.60597616", "0.6058618", "0.60444075", "0.60082656", "0.6004962", "0.59973407", "0.59547323", "0.594303", "0.59425306", "0.591819", "0.59122777", "0.5898738", "0.5806769", "0.57947266", "0.57923245", "0.5786592", "0.57585347", "0.575823", "0.5741261", "0.5733664", "0.57299364", "0.5696999", "0.5683345", "0.5612647", "0.56039596", "0.55850226", "0.55803216", "0.5565494", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.5552268", "0.5552268", "0.5549423", "0.554129", "0.5530548", "0.5525945", "0.5521206", "0.5515143", "0.5498325", "0.54975045", "0.5490311", "0.54831505", "0.5475449", "0.5475449", "0.5475449", "0.5475449", "0.54687035", "0.54453146", "0.53983974", "0.5394236", "0.5392382", "0.53885335", "0.53885335", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.5368535", "0.5365395", "0.5356758", "0.5356715", "0.5356533", "0.53496534", "0.5348419", "0.53483033", "0.5346381" ]
0.5893066
40
.ChunkResponse chunkResponse = 11;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.ChunkResponse, entities.Torrent.ChunkResponse.Builder, entities.Torrent.ChunkResponseOrBuilder> getChunkResponseFieldBuilder() { if (chunkResponseBuilder_ == null) { chunkResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.ChunkResponse, entities.Torrent.ChunkResponse.Builder, entities.Torrent.ChunkResponseOrBuilder>( getChunkResponse(), getParentForChildren(), isClean()); chunkResponse_ = null; } return chunkResponseBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();", "boolean hasChunkResponse();", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "void sendChunkRequest(int chunkX, int chunkY);", "@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }", "boolean hasStoreChunkResponse();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "entities.Torrent.ChunkRequest getChunkRequest();", "int getChunkSize();", "public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "@java.lang.Override\n public entities.Torrent.ChunkResponse getChunkResponse() {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }", "@Test\n public void testInterceptedChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test/intercepted\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertThat(\"Unexpected numbed of received chunks.\", counter, Matchers.equalTo(3));\n Assert.assertThat(\"Unexpected number of chunked output interceptions.\", ChunkedInputOutputTest.TestWriterInterceptor.interceptCounter.get(), Matchers.equalTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output write calls.\", ChunkedInputOutputTest.TestWriterInterceptor.writeCounter.get(), Matchers.greaterThanOrEqualTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output flush calls.\", ChunkedInputOutputTest.TestWriterInterceptor.flushCounter.get(), Matchers.greaterThanOrEqualTo(3));\n Assert.assertThat(\"Unexpected number of intercepted output close calls.\", ChunkedInputOutputTest.TestWriterInterceptor.closeCounter.get(), Matchers.equalTo(1));\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public entities.Torrent.ChunkResponse getChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n } else {\n return chunkResponseBuilder_.getMessage();\n }\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "@java.lang.Override\n public boolean hasChunkResponse() {\n return chunkResponse_ != null;\n }", "boolean hasChunkRequest();", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public boolean hasChunkResponse() {\n return chunkResponseBuilder_ != null || chunkResponse_ != null;\n }", "private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();", "public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }", "boolean canRequestChunk();", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n if (chunkResponseBuilder_ != null) {\n return chunkResponseBuilder_.getMessageOrBuilder();\n } else {\n return chunkResponse_ == null ?\n entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }\n }", "DataChunk nextChunk() throws RemoteException;", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "@Override\n public void setContentLength(int arg0) {\n\n }", "void setChunkType(String aChunkType);", "public Builder clearChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = null;\n onChanged();\n } else {\n chunkResponse_ = null;\n chunkResponseBuilder_ = null;\n }\n\n return this;\n }", "OptimizeResponse() {\n\n\t}", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "public Builder setStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "void requestProcessed( C conn, int numResponseExpected ) ;", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "String getChunkType();", "public int getResponse() {return response;}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if ((msgCase_ == 8) && (storeChunkResponseBuilder_ != null)) {\n return storeChunkResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public int getChunkSize() {\n return chunkSize_;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 8) {\n return storeChunkResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }", "Response mo35726n0() throws IOException;", "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }", "public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "com.google.protobuf.ByteString getResponse(int index);", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public static Response newChunkedResponse(Response.IStatus status, String mimeType,\n\t\t\tInputStream data) {\n\t\treturn new Response(status, mimeType, data, -1);\n\t}", "public Builder setChunkResponse(\n entities.Torrent.ChunkResponse.Builder builderForValue) {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = builderForValue.build();\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "<H extends ResponseHandler<Result[]>> H nextBatch(H handler);", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder getStoreChunkResponseBuilder() {\n return getStoreChunkResponseFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "public void setContentLength(int i) {\n\n\t}", "@java.lang.Override\n public int getResponseCount() {\n return response_.size();\n }", "void stubNextResponse(HttpExecuteResponse nextResponse);", "void setChunk(Boolean aIsChunk);", "void setLastChunk(Boolean aIsLastChunk);", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Override\n public boolean startContent(int statusCode, Compression compression) {\n return true;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}" ]
[ "0.76127803", "0.689421", "0.68631434", "0.6827106", "0.67847973", "0.6521442", "0.6472285", "0.6423145", "0.631949", "0.63179505", "0.6315173", "0.6304548", "0.6237635", "0.62216306", "0.62191415", "0.62191415", "0.62191415", "0.62191415", "0.6205167", "0.61997634", "0.6185729", "0.61624604", "0.61624604", "0.6147691", "0.6127977", "0.60859364", "0.6078434", "0.60712343", "0.60597616", "0.6058618", "0.60444075", "0.60082656", "0.6004962", "0.59973407", "0.59547323", "0.594303", "0.59425306", "0.591819", "0.59122777", "0.5898738", "0.5893066", "0.5806769", "0.57947266", "0.57923245", "0.5786592", "0.57585347", "0.575823", "0.5741261", "0.5733664", "0.57299364", "0.5696999", "0.5683345", "0.5612647", "0.56039596", "0.55850226", "0.55803216", "0.5565494", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.555431", "0.5552268", "0.5552268", "0.5549423", "0.554129", "0.5530548", "0.5525945", "0.5521206", "0.5515143", "0.5498325", "0.54975045", "0.5490311", "0.54831505", "0.5475449", "0.5475449", "0.5475449", "0.5475449", "0.54687035", "0.54453146", "0.53983974", "0.5394236", "0.5392382", "0.53885335", "0.53885335", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.53865236", "0.5368535", "0.5365395", "0.5356758", "0.5356715", "0.5356533", "0.53496534", "0.5348419", "0.53483033", "0.5346381" ]
0.0
-1
.DownloadRequest downloadRequest = 12;
public boolean hasDownloadRequest() { return downloadRequestBuilder_ != null || downloadRequest_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.0
-1
.DownloadRequest downloadRequest = 12;
public entities.Torrent.DownloadRequest getDownloadRequest() { if (downloadRequestBuilder_ == null) { return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_; } else { return downloadRequestBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.5798698
39
.DownloadRequest downloadRequest = 12;
public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) { if (downloadRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } downloadRequest_ = value; onChanged(); } else { downloadRequestBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.60692334
19
.DownloadRequest downloadRequest = 12;
public Builder setDownloadRequest( entities.Torrent.DownloadRequest.Builder builderForValue) { if (downloadRequestBuilder_ == null) { downloadRequest_ = builderForValue.build(); onChanged(); } else { downloadRequestBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.5458625
79
.DownloadRequest downloadRequest = 12;
public Builder mergeDownloadRequest(entities.Torrent.DownloadRequest value) { if (downloadRequestBuilder_ == null) { if (downloadRequest_ != null) { downloadRequest_ = entities.Torrent.DownloadRequest.newBuilder(downloadRequest_).mergeFrom(value).buildPartial(); } else { downloadRequest_ = value; } onChanged(); } else { downloadRequestBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.0
-1
.DownloadRequest downloadRequest = 12;
public Builder clearDownloadRequest() { if (downloadRequestBuilder_ == null) { downloadRequest_ = null; onChanged(); } else { downloadRequest_ = null; downloadRequestBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.0
-1
.DownloadRequest downloadRequest = 12;
public entities.Torrent.DownloadRequest.Builder getDownloadRequestBuilder() { onChanged(); return getDownloadRequestFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.0
-1
.DownloadRequest downloadRequest = 12;
public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() { if (downloadRequestBuilder_ != null) { return downloadRequestBuilder_.getMessageOrBuilder(); } else { return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.56955826
50
.DownloadRequest downloadRequest = 12;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder> getDownloadRequestFieldBuilder() { if (downloadRequestBuilder_ == null) { downloadRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder>( getDownloadRequest(), getParentForChildren(), isClean()); downloadRequest_ = null; } return downloadRequestBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.DownloadRequest getDownloadRequest();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "public void download() {\n }", "void mo54418a(DownloadTask downloadTask);", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "void mo54417a(DownloadChunk downloadChunk);", "private void sendNotification(Download download) {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "private void sendIntent(Download download) {\n }", "File downloadExtension(DownloadExtensionRequest request);", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public void downloadStarted();", "public void onDownloadProgress(int current, int total);", "boolean mo54433c(DownloadInfo downloadInfo);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "boolean hasDownloadRequest();", "DownloadInfo mo54444i(int i);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "public int getDownloadBandwidth();", "public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }", "public void downloadDay(){\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "public void downloadCompleted(File f);", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "public void setDownloadBandwidth(int bw);", "interface BaseDownload extends BaseDownloadableColumns {\n /**\n * The requester of download.\n * <P>Type: TEXT</P>\n */\n static final String REQUESTER = \"REQUESTER\";\n\n /**\n * The save path of local downloadable.\n * <P>Type: TEXT</P>\n */\n static final String SAVE_PATH = \"save_path\";\n\n /**\n * The file length of downloadable.\n * <P>Type: INTEGER</P>\n */\n static final String FILE_LENGTH = \"file_length\";\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }", "void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "public interface DownloadProgressListener\n{\n /**\n * 下载进度监听方法,获取和处理下载点数据的大小\n * @param size\n */\n public void onDownloadSize(int size);\n\n}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public String getDownloadUrl() {\n return downloadUrl;\n }", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "public interface DownloadListener {\n void onDownloadStart(DownloadTask task);\n\n void onDownloadProgress(DownloadTask task);\n\n void onDownloadSuccess(DownloadTask task);\n\n void onDownloadFail(DownloadTask task);\n\n void onDownloadDeleted(DownloadTask task);\n\n void onDownloadPaused(DownloadTask task);\n\n void onDownloadResumed(DownloadTask task);\n}", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public interface DownloadListener {\n void onStart(String url,String savePath);\n void onProgress(String url, String savePath,long progress,long max);\n void onComplete(String url,String savePath);\n void onCancel(String url,String savePath);\n void onFail(String url,String savePath);\n\n // boolean isCanceled(String url,String savePath);\n String generalFileName(String url);\n long getMax(String url,String savePath);\n long getAvailable(String url,String savePath);\n}", "public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){\n \n String optionBanner = \"########### downloading option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.put(\"requestdir\", requestdir);\n sr.put(\"option\", \"download\");\n \n String RcodeFile = \"Rcode.\" + PID + \".R\";\n \n try {\n // create a temp dir\n String createTmpDir = \"dir.create('\"+wrkdir +\"')\";\n dbgLog.fine(\"createTmpDir=\"+createTmpDir);\n historyEntry.add(createTmpDir);\n c.voidEval(createTmpDir);\n \n \n String dwnldOpt = sro.getDownloadRequestParameter();\n String dwnldFlxt = dwlndParam.get(dwnldOpt);\n \n sr.put(\"format\", dwnldFlxt); \n \n String dataFileName = \"Data.\" + PID + \".\" + dwnldFlxt;\n \n sr.put(\"subsetfile\", \"/\"+requestdir+ \"/\" +dataFileName);\n \n // data file to be copied back to the dvn\n String dsnprfx = wrkdir + \"/\" + dataFileName;\n \n String univarDataDwnld = \"univarDataDwnld(dtfrm=x,\"+\n \"dwnldoptn='\"+dwnldOpt+\"'\"+\n \", dsnprfx='\"+dsnprfx+\"')\";\n \n dbgLog.fine(\"univarDataDwnld=\"+univarDataDwnld);\n historyEntry.add(univarDataDwnld);\n c.voidEval(univarDataDwnld);\n \n int wbFileSize = getFileSize(c,dsnprfx);\n \n dbgLog.fine(\"wbFileSize=\"+wbFileSize);\n \n // write back the data file to the dvn\n \n String dtflprefix = \"tmpDataFile\";\n \n File dtfl = writeBackFileToDvn(c, dsnprfx, dtflprefix, dwlndParam.get(dwnldOpt), wbFileSize);\n if (dtfl != null){\n sr.put(\"wbDataFileName\", dtfl.getAbsolutePath());\n dbgLog.fine(\"wbDataFileName=\"+dtfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wbDataFileName is null\");\n }\n \n // save workspace\n String objList = \"objList<-ls()\";\n dbgLog.fine(\"objList=\"+objList);\n c.voidEval(objList);\n \n String RdataFileName = \"Rworkspace.\"+PID+\".RData\";\n \n sr.put(\"Rdata\", \"/\"+requestdir+ \"/\" + RdataFileName);\n \n String saveWS = \"save(list=objList, file='\"+wrkdir +\"/\"+ RdataFileName +\"')\";\n dbgLog.fine(\"save the workspace=\"+saveWS);\n c.voidEval(saveWS);\n \n // write back the R workspace to the dvn \n \n String wrkspFileName = wrkdir +\"/\"+ RdataFileName;\n dbgLog.fine(\"wrkspFileName=\"+wrkspFileName);\n \n int wrkspflSize = getFileSize(c,wrkspFileName);\n \n File wsfl = writeBackFileToDvn(c, wrkspFileName, RWRKSP_FILE_PREFIX ,\"RData\", wrkspflSize);\n \n if (wsfl != null){\n sr.put(\"wrkspFileName\", wsfl.getAbsolutePath());\n dbgLog.fine(\"wrkspFileName=\"+wsfl.getAbsolutePath());\n } else {\n dbgLog.fine(\"wrkspFileName is null\");\n }\n \n // command history\n String[] ch = (String[])historyEntry.toArray(new String[historyEntry.size()]);\n c.assign(\"ch\", new REXPString(ch));\n String saveRcodeFile = \"cat(file='\"+ wrkdir +\"/\"+ RcodeFile +\"',paste(ch,collapse='\\n'))\";\n dbgLog.fine(saveRcodeFile);\n c.voidEval(saveRcodeFile);\n \n \n // tab data file\n String mvTmpTabFile = \"file.rename('\"+ tempFileName +\"','\"+ tempFileNameNew +\"')\";\n c.voidEval(mvTmpTabFile);\n dbgLog.fine(\"move temp file=\"+mvTmpTabFile);\n \n // move the temp dir to the web-temp root dir\n String mvTmpDir = \"file.rename('\"+wrkdir+\"','\"+webwrkdir+\"')\";\n dbgLog.fine(\"web-temp_dir=\"+mvTmpDir);\n c.voidEval(mvTmpDir);\n \n } catch (RserveException rse) {\n rse.printStackTrace();\n sr.put(\"RexecError\", \"true\");\n return sr;\n }\n \n sr.put(\"RexecError\", \"false\");\n return sr;\n }", "@Override public String Async_key() {return Key_wiki_download;}", "void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);", "public interface DownloadListener\n{\n void onCancel(boolean isAuto);\n\n void onFailStart(boolean isAuto);\n\n void onFailed(boolean isAuto);\n\n void onProgress(int paramInt,boolean isAuto);\n\n void onStart(boolean isAuto);\n\n void onSuccess(boolean isAuto);\n\n void onWait(boolean isAuto);\n}", "public interface IPresenterDownload {\n void findDownloadMessage();\n void sendDownLoadMessage(DownloadDoc doc);\n}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public VersionDownload() {\n }", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "void download(SearchResult result, String downloadPath);", "public int getDownloadPtime();", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public interface Downloader {\n void download(String fileLink);\n\n}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public boolean getSupportsDownloads() \n {\n return true; \n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "void downloadingFile(String path);", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "public Blob downloadFile(String inKey, String inFileName);", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public SWDownloadSegment getDownloadSegment()\r\n {\r\n return downloadSegment;\r\n }", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "public interface FilePartAction {\n DownloadInfo[] partTask(DownloadFile dFile, int length);\n}", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public interface FilePostDownloadHandler {\n void onPostDownload();\n}", "void downloadCompleted(String blobId);", "@Override\n\t\t\t\t\t\tpublic void onProgress(String url, int downloadedSize, int totalSize) {\n\n\t\t\t\t\t\t}" ]
[ "0.7072586", "0.7034332", "0.6955357", "0.68687266", "0.6865342", "0.6807722", "0.6679258", "0.65559274", "0.6555713", "0.649137", "0.6465656", "0.63899016", "0.6346663", "0.6208843", "0.6191679", "0.6164553", "0.610612", "0.6103972", "0.6096092", "0.60692334", "0.60623443", "0.60524917", "0.60514474", "0.602", "0.5996307", "0.59924924", "0.5991619", "0.59850454", "0.5981307", "0.59727603", "0.5953229", "0.59090996", "0.5908798", "0.5903274", "0.5859237", "0.58522505", "0.5848056", "0.5837018", "0.58291614", "0.5798698", "0.57951874", "0.5790708", "0.5786875", "0.57862824", "0.5764911", "0.57585794", "0.57488203", "0.57470125", "0.5722064", "0.5701854", "0.56955826", "0.56947863", "0.56936085", "0.568242", "0.56790674", "0.567415", "0.5667893", "0.5635663", "0.56341654", "0.56332034", "0.5625079", "0.5619608", "0.5611289", "0.5601117", "0.55906624", "0.55602425", "0.55568117", "0.5533519", "0.5527651", "0.5521315", "0.5513845", "0.54944456", "0.5488187", "0.54832", "0.5478065", "0.54662174", "0.5465866", "0.54648095", "0.54615283", "0.5458625", "0.54563874", "0.54399145", "0.5435212", "0.54284847", "0.54263633", "0.5420903", "0.5409294", "0.540146", "0.53903306", "0.5390061", "0.53820515", "0.53769845", "0.5361831", "0.5360622", "0.53577226", "0.5356656", "0.5354797", "0.53537756", "0.53519136", "0.5347555", "0.53472996" ]
0.0
-1
.DownloadResponse downloadResponse = 13;
public boolean hasDownloadResponse() { return downloadResponseBuilder_ != null || downloadResponse_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.53742456
89
.DownloadResponse downloadResponse = 13;
public entities.Torrent.DownloadResponse getDownloadResponse() { if (downloadResponseBuilder_ == null) { return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_; } else { return downloadResponseBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.5542949
63
.DownloadResponse downloadResponse = 13;
public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) { if (downloadResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } downloadResponse_ = value; onChanged(); } else { downloadResponseBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.5915747
31
.DownloadResponse downloadResponse = 13;
public Builder setDownloadResponse( entities.Torrent.DownloadResponse.Builder builderForValue) { if (downloadResponseBuilder_ == null) { downloadResponse_ = builderForValue.build(); onChanged(); } else { downloadResponseBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.5519505
68
.DownloadResponse downloadResponse = 13;
public Builder mergeDownloadResponse(entities.Torrent.DownloadResponse value) { if (downloadResponseBuilder_ == null) { if (downloadResponse_ != null) { downloadResponse_ = entities.Torrent.DownloadResponse.newBuilder(downloadResponse_).mergeFrom(value).buildPartial(); } else { downloadResponse_ = value; } onChanged(); } else { downloadResponseBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.0
-1
.DownloadResponse downloadResponse = 13;
public Builder clearDownloadResponse() { if (downloadResponseBuilder_ == null) { downloadResponse_ = null; onChanged(); } else { downloadResponse_ = null; downloadResponseBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.0
-1
.DownloadResponse downloadResponse = 13;
public entities.Torrent.DownloadResponse.Builder getDownloadResponseBuilder() { onChanged(); return getDownloadResponseFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.0
-1
.DownloadResponse downloadResponse = 13;
public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() { if (downloadResponseBuilder_ != null) { return downloadResponseBuilder_.getMessageOrBuilder(); } else { return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.5386213
86
.DownloadResponse downloadResponse = 13;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder> getDownloadResponseFieldBuilder() { if (downloadResponseBuilder_ == null) { downloadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>( getDownloadResponse(), getParentForChildren(), isClean()); downloadResponse_ = null; } return downloadResponseBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "entities.Torrent.DownloadResponse getDownloadResponse();", "void mo54427b(DownloadInfo downloadInfo);", "void mo54428b(DownloadTask downloadTask);", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void mo54417a(DownloadChunk downloadChunk);", "void mo54418a(DownloadTask downloadTask);", "entities.Torrent.DownloadRequest getDownloadRequest();", "@Override public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.CharSequence _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeString(appId);\n_data.writeString(url);\n_data.writeLong(duration);\n_data.writeString(folder);\nmRemote.transact(Stub.TRANSACTION_download, _data, _reply, 0);\n_reply.readException();\nif ((0!=_reply.readInt())) {\n_result = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(_reply);\n}\nelse {\n_result = null;\n}\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}", "public void onDownloadSuccess(String fileInfo);", "entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public void downloadCompleted(File f);", "File downloadExtension(DownloadExtensionRequest request);", "boolean hasDownloadResponse();", "void onDownloadFailed(EzDownloadRequest downloadRequest, int errorCode, String errorMessage);", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "void download(SearchResult result, String downloadPath);", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "public void downloadStarted();", "@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void onDownloadProgress(int current, int total);", "private void sendNotification(Download download) {\n }", "void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;", "@Override\n public boolean isDownloadable() {\n return true;\n }", "public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "void downloadCompleted(String blobId);", "void onProgress(EzDownloadRequest downloadRequest, long totalBytes, long downloadedBytes, int progress);", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public String getDownloadUrl() {\n return downloadUrl;\n }", "@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }", "protected synchronized void downloaded(int value) {\r\n\t\tdDownloaded += value;\r\n\t\tstateChanged();\r\n\t}", "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "public void reviewFileDownload(HttpServletRequest request, HttpServletResponse response, int reviewNum, int idx) throws Exception;", "public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}", "boolean hasDownloadRequest();", "void fileDownloaded(String path);", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "public java.lang.CharSequence download(java.lang.String appId, java.lang.String url, long duration, java.lang.String folder) throws android.os.RemoteException;", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public int getResponse() {return response;}", "public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private void sendIntent(Download download) {\n }", "public Type getDownloadType() {\n return this.mDownloadType;\n }", "void downloadingFile(String path);", "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "@Override public String Async_key() {return Key_wiki_download;}", "@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}", "public void onFileDownloadComplete(String filePath, Object object);", "public void onFileDownloadComplete(String filePath);", "public void downloadDay(){\n\n}", "@Override\n public void passDownloadRequest(DownloadReq downloadReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (downloadReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> mySearchResults = checkFilesInFileList(downloadReq.getFileName(), node.getFileList());\n\n File file = node.getDownloadTable().get(mySearchResults.get(0));\n\n DownloadRes downloadRes = new DownloadRes(downloadReq.getCred(), downloadReq.getFileName(), file.getFileHash(), file.getFileSize());\n downloadOk(downloadRes);\n }", "public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected abstract File download(Exception previousException) throws Exception;", "DownloadInfo mo54444i(int i);", "public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DownloadResponseInner() {\n }", "String download(String path) throws IOException;", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }", "@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "public int getDownloadBandwidth();", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }", "public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }", "private String getDownloadRecording() throws Exception {\n return curl + \" \" + downloadParams + \" \" + prefixLocalIpAddress + getLocalIpAddress() + \":\" + defaultPort + \" \" + downloadRecording;\n }", "entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();", "public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }", "private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "public int getDownloadPtime();", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }", "public String getSourceDownloadUrl();", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "List<Transfer> requestDownloads(Leecher leecher);", "public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}" ]
[ "0.68323", "0.6789641", "0.6630636", "0.6606477", "0.6602046", "0.65828305", "0.65811276", "0.64497703", "0.6415906", "0.6318806", "0.6318471", "0.6286553", "0.6214742", "0.6213296", "0.61794436", "0.616223", "0.61309963", "0.6071757", "0.60582715", "0.6057023", "0.6032461", "0.60175925", "0.601189", "0.59827745", "0.5981682", "0.5959001", "0.5958278", "0.5956365", "0.59414876", "0.59358793", "0.59160376", "0.5915747", "0.58708435", "0.5860112", "0.58517575", "0.57818437", "0.5778671", "0.57745653", "0.575145", "0.57466197", "0.57351524", "0.57119226", "0.56985855", "0.5689453", "0.56741476", "0.56706214", "0.5662419", "0.56617284", "0.56551546", "0.56451446", "0.5628319", "0.5627883", "0.5621473", "0.56167597", "0.56132483", "0.5597167", "0.5596807", "0.5587705", "0.55876786", "0.55851585", "0.5570676", "0.5552608", "0.5542991", "0.5542949", "0.55405813", "0.5530216", "0.55277336", "0.55208176", "0.5519505", "0.5519188", "0.5501426", "0.5490275", "0.5487365", "0.5478704", "0.547705", "0.5457015", "0.5452497", "0.54510885", "0.5444462", "0.5442144", "0.54370564", "0.54354835", "0.54134315", "0.54122245", "0.5400153", "0.53891206", "0.5386213", "0.5378131", "0.53768295", "0.53742456", "0.5360121", "0.53555316", "0.5353318", "0.5323541", "0.5317658", "0.5316668", "0.5307025", "0.53038055", "0.53009886", "0.5300371", "0.5294776" ]
0.0
-1
.RegistrationRequest registrationRequest = 14;
public boolean hasRegistrationRequest() { return registrationRequestBuilder_ != null || registrationRequest_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.0
-1
.RegistrationRequest registrationRequest = 14;
public entities.Torrent.RegistrationRequest getRegistrationRequest() { if (registrationRequestBuilder_ == null) { return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_; } else { return registrationRequestBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.62041104
21
.RegistrationRequest registrationRequest = 14;
public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) { if (registrationRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } registrationRequest_ = value; onChanged(); } else { registrationRequestBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.6249816
18
.RegistrationRequest registrationRequest = 14;
public Builder setRegistrationRequest( entities.Torrent.RegistrationRequest.Builder builderForValue) { if (registrationRequestBuilder_ == null) { registrationRequest_ = builderForValue.build(); onChanged(); } else { registrationRequestBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.58564603
46
.RegistrationRequest registrationRequest = 14;
public Builder mergeRegistrationRequest(entities.Torrent.RegistrationRequest value) { if (registrationRequestBuilder_ == null) { if (registrationRequest_ != null) { registrationRequest_ = entities.Torrent.RegistrationRequest.newBuilder(registrationRequest_).mergeFrom(value).buildPartial(); } else { registrationRequest_ = value; } onChanged(); } else { registrationRequestBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.0
-1
.RegistrationRequest registrationRequest = 14;
public Builder clearRegistrationRequest() { if (registrationRequestBuilder_ == null) { registrationRequest_ = null; onChanged(); } else { registrationRequest_ = null; registrationRequestBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.0
-1
.RegistrationRequest registrationRequest = 14;
public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() { onChanged(); return getRegistrationRequestFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.5801554
56
.RegistrationRequest registrationRequest = 14;
public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() { if (registrationRequestBuilder_ != null) { return registrationRequestBuilder_.getMessageOrBuilder(); } else { return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.60469735
30
.RegistrationRequest registrationRequest = 14;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.RegistrationRequest, entities.Torrent.RegistrationRequest.Builder, entities.Torrent.RegistrationRequestOrBuilder> getRegistrationRequestFieldBuilder() { if (registrationRequestBuilder_ == null) { registrationRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.RegistrationRequest, entities.Torrent.RegistrationRequest.Builder, entities.Torrent.RegistrationRequestOrBuilder>( getRegistrationRequest(), getParentForChildren(), isClean()); registrationRequest_ = null; } return registrationRequestBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.RegistrationRequest getRegistrationRequest();", "Register.Req getRegisterReq();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "public RegistrationInfo getRegistrationInfo();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public void confirmRegistration(RegistrationData d) {}", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "boolean hasRegistrationRequest();", "void onNewRegistrationId(String registrationId);", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public void register(RegistrationData d) {}", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "public String mo56450e() {\n return \"registration\";\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "private RegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "void signUp(SignUpRequest signupRequest);", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public boolean isRegistrationRequiredForCalling()\n {\n return true;\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "boolean hasRegistrationResponse();", "public Builder setRegistrationRequest(\n entities.Torrent.RegistrationRequest.Builder builderForValue) {\n if (registrationRequestBuilder_ == null) {\n registrationRequest_ = builderForValue.build();\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "Register.Res getRegisterRes();", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public Boolean register(HttpServletRequest request) throws Exception;", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "RegistrationModule createRegistrationModule();", "public Register.Req getRegisterReq() {\n if (reqCase_ == 7) {\n return (Register.Req) req_;\n }\n return Register.Req.getDefaultInstance();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "@java.lang.Override\n public boolean hasRegistrationRequest() {\n return registrationRequest_ != null;\n }", "void onSignUpEmailRegistered();", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "@RequestMapping(value = \"/registrationRequests\", method = RequestMethod.GET)\n public String registrationRequests()\n {\n return \"registrationRequests\";\n }", "private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "User registration(User user);", "public void uidRegistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }", "public void register(){\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic void setRegistrationTag(String registrationTag) {\n\t\tthis.registrationTag = registrationTag;\n\t}", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "protected abstract void registerUser(Map<String, String> registrationInfo);", "RegisterParam getRegister();", "public void setRegistrationType(String registrationType) {\n\t\tthis.registrationType = registrationType;\n\t}", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private void sendRegistrationToServer(String token) {\n }", "private reg1() {\n }", "public void openRegister() {\n\n }", "@ApiModelProperty(value = \"设备id\")\n\tpublic String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "RegistrationRule createRegistrationRule();", "public void beginRegister() {}", "void register();", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "Registry getRequestRegistry();", "Registration registration(long idUser, long idTrail);", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}", "RegisterExtensionResponse registerExtension(RegisterExtensionRequest request);", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private void registToWX() {\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "private void RegisterGoogleSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\t// asName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\t// asValue.add(data.GetS(LocalData.LINK));\n\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\t\t\tString sURL = StringURLs.getQuery(StringURLs.GOOGLE_LOGIN, asName,\n\t\t\t\t\tasValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Object register(HttpServletRequest req);" ]
[ "0.7233358", "0.71100605", "0.6976915", "0.68521196", "0.67449516", "0.6739303", "0.6736614", "0.6677461", "0.65441483", "0.6469297", "0.6454303", "0.64468056", "0.6424221", "0.6415989", "0.6411507", "0.63573927", "0.6344257", "0.62753135", "0.6249816", "0.62416136", "0.6204122", "0.62041104", "0.6192585", "0.612472", "0.61222506", "0.6110624", "0.60934854", "0.6091507", "0.6058919", "0.604852", "0.60469735", "0.60133266", "0.59798783", "0.597912", "0.5969308", "0.5952056", "0.5949586", "0.59493333", "0.5938172", "0.5934768", "0.5933292", "0.5931173", "0.5916512", "0.5898057", "0.58926237", "0.5886961", "0.58564603", "0.5849956", "0.58483917", "0.58434063", "0.5836406", "0.58352965", "0.58304876", "0.5830054", "0.5824699", "0.58067477", "0.5801554", "0.580046", "0.57940316", "0.57810074", "0.57772267", "0.5765934", "0.5756114", "0.575403", "0.57516885", "0.5749925", "0.57478994", "0.5745311", "0.5733722", "0.5729516", "0.57288307", "0.57196796", "0.5706838", "0.5688524", "0.56859845", "0.5681032", "0.5679332", "0.56762904", "0.5674945", "0.5674945", "0.5674945", "0.5674945", "0.5666425", "0.56566715", "0.5638434", "0.56376845", "0.5631492", "0.56312543", "0.56263787", "0.56045574", "0.5601617", "0.55976486", "0.5590378", "0.5582115", "0.55758363", "0.5575439", "0.55629134", "0.55571353", "0.55511695", "0.5549986", "0.55473304" ]
0.0
-1
.RegistrationResponse registrationResponse = 15;
public boolean hasRegistrationResponse() { return registrationResponseBuilder_ != null || registrationResponse_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.60927355
30
.RegistrationResponse registrationResponse = 15;
public entities.Torrent.RegistrationResponse getRegistrationResponse() { if (registrationResponseBuilder_ == null) { return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_; } else { return registrationResponseBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.6394312
20
.RegistrationResponse registrationResponse = 15;
public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) { if (registrationResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } registrationResponse_ = value; onChanged(); } else { registrationResponseBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.68704987
6
.RegistrationResponse registrationResponse = 15;
public Builder setRegistrationResponse( entities.Torrent.RegistrationResponse.Builder builderForValue) { if (registrationResponseBuilder_ == null) { registrationResponse_ = builderForValue.build(); onChanged(); } else { registrationResponseBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.65217024
13
.RegistrationResponse registrationResponse = 15;
public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) { if (registrationResponseBuilder_ == null) { if (registrationResponse_ != null) { registrationResponse_ = entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial(); } else { registrationResponse_ = value; } onChanged(); } else { registrationResponseBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.5838247
49
.RegistrationResponse registrationResponse = 15;
public Builder clearRegistrationResponse() { if (registrationResponseBuilder_ == null) { registrationResponse_ = null; onChanged(); } else { registrationResponse_ = null; registrationResponseBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.59048766
44
.RegistrationResponse registrationResponse = 15;
public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() { onChanged(); return getRegistrationResponseFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.62898946
24
.RegistrationResponse registrationResponse = 15;
public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() { if (registrationResponseBuilder_ != null) { return registrationResponseBuilder_.getMessageOrBuilder(); } else { return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>\n getRegistrationResponseFieldBuilder() {\n if (registrationResponseBuilder_ == null) {\n registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>(\n getRegistrationResponse(),\n getParentForChildren(),\n isClean());\n registrationResponse_ = null;\n }\n return registrationResponseBuilder_;\n }", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.6027351", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.62917954
23
.RegistrationResponse registrationResponse = 15;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder> getRegistrationResponseFieldBuilder() { if (registrationResponseBuilder_ == null) { registrationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.RegistrationResponse, entities.Torrent.RegistrationResponse.Builder, entities.Torrent.RegistrationResponseOrBuilder>( getRegistrationResponse(), getParentForChildren(), isClean()); registrationResponse_ = null; } return registrationResponseBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder();", "public Builder setRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationResponse_ = value;\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasRegistrationResponse();", "public String getRegistrationNumber(){\n return registrationNumber;\n }", "public Response getRegisterResponse(){\n\t\treturn this.registerResponse;\n\t}", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "private void setRegistrationFlowResponse(final RegistrationFlowResponse registrationFlowResponse) {\n if (registrationFlowResponse != null) {\n mRegistrationResponse = registrationFlowResponse;\n }\n }", "public Builder setRegistrationResponse(\n entities.Torrent.RegistrationResponse.Builder builderForValue) {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = builderForValue.build();\n onChanged();\n } else {\n registrationResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "Register.Req getRegisterReq();", "public void confirmRegistration(RegistrationData d) {}", "public RegistrationInfo getRegistrationInfo();", "public ResponseRegister() {\n }", "private RegistrationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }", "@java.lang.Override\n public boolean hasRegistrationResponse() {\n return registrationResponse_ != null;\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "public UserRegisterResponse() {\n }", "@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "public boolean hasRegistrationResponse() {\n return registrationResponseBuilder_ != null || registrationResponse_ != null;\n }", "private static int requestRegNum() { // From Assignment2 Starter Code by Dave Houtman\r\n\t\treturn (Integer.parseInt(getResponseTo(\"Enter registration number : \")));\r\n\t}", "boolean hasRegistrationRequest();", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "public void setAWSUserRegistration_Agree() {\r\n\r\n Tx_RN171DeviceSetDeviceName();\r\n\r\n /////////////////////////////////////////////////\r\n //Register/Insert Customer\r\n /////////////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerURL(AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregistrationPassword,\r\n AppGlobals.userregInfo.userregistrationStreetAddress,\r\n AppGlobals.userregInfo.userregistrationSuburb,\r\n AppGlobals.userregInfo.userregistrationCityRegion,\r\n AppGlobals.userregInfo.userregistrationFirstName,\r\n AppGlobals.userregInfo.userregistrationLastName,\r\n AppGlobals.userregInfo.userregistrationPostcode,\r\n AppGlobals.userregInfo.userregistrationCountry,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n /////////////////////////////////////////\r\n //Register Appliance\r\n /////////////////////////////////////////\r\n\r\n //Call method and post appropriate values\r\n AWSconnection.insertCustomerApplianceURL(AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceSerial,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceType,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceModel,\r\n AppGlobals.fireplaceWifi.get(AppGlobals.selected_fireplaceWifi).UUID,\r\n AppGlobals.userregInfo.userregistrationEmail,\r\n AppGlobals.userregInfo.userregApplianceInfo_now.userregistrationApplianceName,\r\n\r\n //Call interface to retrieve Async results\r\n new AWSconnection.textResult() {\r\n @Override\r\n\r\n public void getResult(String result) {\r\n\r\n //Do stuff with results here\r\n //Returns either success or fail message\r\n //Log.i(\"Registration:\", result);\r\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }\r\n });\r\n }", "Register.Res getRegisterRes();", "void onNewRegistrationId(String registrationId);", "private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Successful Registration\\\"\")) {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "@Override\n protected JSONObject doInBackground(Void... params) {\n\n try {\n response = Requestor.requestRegister(requestQueue, REGISTER_URL, phone, name, email, password);\n // response = JSONParser.Register(REGISTER_URL, phone, name, email, password);\n Log.d(\"TEST\", response.toString());\n code = response.getString(CODE);\n msg = response.getString(MESSAGE);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return response;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.IdVerificationResponseData addNewIdVerificationResponseData();", "@GetMapping\n public String onRegistration() {\n return \"registration\";\n }", "public Builder clearRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n registrationResponse_ = null;\n onChanged();\n } else {\n registrationResponse_ = null;\n registrationResponseBuilder_ = null;\n }\n\n return this;\n }", "private void handleRegister(Business business) {\n\n Call<String> call = rtfBase.register(business); //we get id\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if(response.code() == 200)\n {\n // business.setId(response.body());\n // Toast.makeText(RegisterNewBusiness.this, \"registered successfully\",Toast.LENGTH_LONG).show();\n\n connectToApp(business);\n\n\n }\n if(response.code() == 400)\n {\n Toast.makeText(RegisterNewBusiness.this, \"you already registered\",Toast.LENGTH_LONG).show();\n\n }\n if(response.code() == 404)\n {\n Toast.makeText(RegisterNewBusiness.this, \"something wrong\",Toast.LENGTH_LONG).show();\n\n }\n }\n\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Toast.makeText(RegisterNewBusiness.this, t.getMessage(),Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void OnServerRespondedCallback(InternalRequest response) {\n switch (response.Status){\n case InternalRequest.STATUS_OK:\n Log.i(MY_TAG, \"got server callback registration ok\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, true);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_SUCCESS);\n break;\n case InternalRequest.STATUS_FAIL:\n Log.i(MY_TAG, \"got server callback registration fail\");\n CommonUtil.PutCommonPreferenceIsRegisteredDevice(this, false);\n// intent.putExtra(ServicesBroadcastReceiver.BROADCAST_REC_EXTRA_ACTION_KEY,\n// ServicesBroadcastReceiver.ACTION_CODE_REGISTRATION_FAIL);\n break;\n default:\n Log.i(MY_TAG, \"unexpected callback status from server!\");\n return;\n }\n// sendBroadcast(intent);\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"RESPONSE\", response);\n\n if (response.equals(\"success\")) {\n loading.dismiss();\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n Toasty.success(RegisterActivity.this, \"Registration successful\", Toast.LENGTH_SHORT).show();\n startActivity(intent);\n } else if (response.equals(\"exists\")) {\n\n Toasty.warning(RegisterActivity.this, \"User already exists!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n\n else if (response.equals(\"failure\")) {\n\n Toasty.error(RegisterActivity.this, \"Registration Failed!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n\n }\n }", "public String getRegisterNumber() { return registerNumber; }", "public Builder mergeRegistrationResponse(entities.Torrent.RegistrationResponse value) {\n if (registrationResponseBuilder_ == null) {\n if (registrationResponse_ != null) {\n registrationResponse_ =\n entities.Torrent.RegistrationResponse.newBuilder(registrationResponse_).mergeFrom(value).buildPartial();\n } else {\n registrationResponse_ = value;\n }\n onChanged();\n } else {\n registrationResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public String getRegisterId()\n/* */ {\n/* 273 */ return this.registerId;\n/* */ }", "@UpnpAction(out = {@UpnpOutputArgument(name = \"RegistrationRespMsg\", stateVariable = \"A_ARG_TYPE_RegistrationRespMsg\")})\n/* */ public byte[] registerDevice(@UpnpInputArgument(name = \"RegistrationReqMsg\", stateVariable = \"A_ARG_TYPE_RegistrationReqMsg\") byte[] registrationReqMsg) {\n/* 138 */ return new byte[0];\n/* */ }", "public void createSignUpSession(Registration registration, RegResult regResult) {\n editor.putString(KEY_ID, String.valueOf(regResult.getAUId()));\n editor.putString(KEY_EMAIL, registration.getEmail());\n editor.putString(KEY_NAME, registration.getName());\n editor.putString(KEY_NUMBER,registration.getMobile());\n //editor.putString(KEY_CARDNO,registration.getCardno());\n // Storing login value as TRUE\n editor.putBoolean(IS_LOGIN, true);\n editor.commit();\n }", "public String mo56450e() {\n return \"registration\";\n }", "public void register(RegistrationData d) {}", "@Override\n protected void onActivityResult(\n final int requestCode,\n final int resultCode,\n final Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode != FRAMEWORK_REQUEST_CODE) {\n return;\n }\n\n final String toastMessage;\n final AccountKitLoginResult loginResult = AccountKit.loginResultWithIntent(data);\n if (loginResult == null || loginResult.wasCancelled())\n {\n toastMessage = \"Cancelled\";\n Toast.makeText(RegisterUser.this,toastMessage,Toast.LENGTH_SHORT).show();\n }\n else if (loginResult.getError() != null) {\n Toast.makeText(RegisterUser.this,\"Error\",Toast.LENGTH_SHORT).show();\n } else {\n final AccessToken accessToken = loginResult.getAccessToken();\n if (accessToken != null) {\n\n AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {\n @Override\n public void onSuccess(final Account account) {\n String phoneNumber = account.getPhoneNumber().toString();\n\n if(phoneNumber.length()==14)\n phoneNumber = phoneNumber.substring(3);\n\n newUserRegistration(phoneNumber);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(final AccountKitError error) {\n }\n });\n } else {\n toastMessage = \"Unknown response type\";\n Toast.makeText(RegisterUser.this, toastMessage, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "private void sendRegistrationRequestToServer() {\r\n\t\tnew ServerAsyncTask(ApplicationConstant.appurl\r\n\t\t\t\t+ ApplicationConstant.registrationRequestType + \"&userid=62\"\r\n\t\t\t\t+ \"&email=\" + emailAddress.getText().toString().trim()\r\n\t\t\t\t+ \"&firstname=\" + firstName.getText().toString().trim()\r\n\t\t\t\t+ \"&lastname=\" + lastName.getText().toString().trim()\r\n\t\t\t\t+ \"&password=\" + password.getText().toString().trim()\r\n\t\t\t\t+ \"&roles=1\" + \"access=20\", context, new ResponseCallback() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccessRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage(\"Successfully register on app\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorRecieve(Object object) {\r\n\r\n\t\t\t\tloadingProgress.setVisibility(View.GONE);\r\n\t\t\t\tshowToastMessage((String) object);\r\n\t\t\t}\r\n\t\t}, ApplicationConstant.registrationRequestType).execute();\r\n\r\n\t}", "public void attemptRegistration(final Context context, final RegistrationListener listener) {\n final String registrationType;\n if (mRegistrationResponse != null && !TextUtils.isEmpty(mRegistrationResponse.session)) {\n AuthParams authParams = null;\n if (mPhoneNumber != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !TextUtils.isEmpty(mPhoneNumber.getSid())) {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_MSISDN;\n authParams = getThreePidAuthParams(mPhoneNumber.getClientSecret(), identityServerUri.getHost(),\n mPhoneNumber.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n } else if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (TextUtils.isEmpty(mEmail.getSid())) {\n // Email token needs to be requested before doing validation\n Log.d(LOG_TAG, \"attemptRegistration: request email validation\");\n requestValidationToken(context, mEmail, new ThreePidRequestListener() {\n @Override\n public void onIdentityServerMissing() {\n listener.onIdentityServerMissing();\n }\n\n @Override\n public void onThreePidRequested(ThreePid pid) {\n if (!TextUtils.isEmpty(pid.getSid())) {\n // The session id for the email validation has just been received.\n // We trigger here a new registration request without delay to attach the current username\n // and the pwd to the registration session.\n attemptRegistration(context, listener);\n\n // Notify the listener to wait for the email validation\n listener.onWaitingEmailValidation();\n }\n }\n\n @Override\n public void onThreePidRequestFailed(String errorMessage) {\n listener.onThreePidRequestFailed(errorMessage);\n }\n });\n return;\n } else {\n Uri identityServerUri = mHsConfig.getIdentityServerUri();\n if (identityServerUri == null) {\n listener.onIdentityServerMissing();\n return;\n } else {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY;\n authParams = getThreePidAuthParams(mEmail.getClientSecret(), identityServerUri.getHost(),\n mEmail.getSid(), LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n } else if (!TextUtils.isEmpty(mCaptchaResponse) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA;\n authParams = getCaptchaAuthParams(mCaptchaResponse);\n } else if (mTermsApproved && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_TERMS;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY)) {\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_DUMMY;\n authParams = new AuthParams(LoginRestClient.LOGIN_FLOW_TYPE_DUMMY);\n } else if (isPasswordBasedFlowSupported()) {\n // never has been tested\n registrationType = LoginRestClient.LOGIN_FLOW_TYPE_PASSWORD;\n authParams = new AuthParamsLoginPassword();\n\n if (null != mUsername) {\n ((AuthParamsLoginPassword) authParams).user = mUsername;\n }\n\n if (null != mPassword) {\n ((AuthParamsLoginPassword) authParams).password = mPassword;\n }\n } else {\n // others\n registrationType = \"\";\n }\n\n if (TextUtils.equals(registrationType, LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)\n && mEmail != null && !isCaptchaRequired()) {\n // Email will not be processed\n mShowThreePidWarning = true;\n mEmail = null;\n }\n\n final RegistrationParams params = new RegistrationParams();\n if (!registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)\n && !registrationType.equals(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (mUsername != null) {\n params.username = mUsername;\n }\n if (mPassword != null) {\n params.password = mPassword;\n }\n }\n\n if (authParams != null) {\n // Always send the current session\n authParams.session = mRegistrationResponse.session;\n\n params.auth = authParams;\n }\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n if (mShowThreePidWarning) {\n // An email was entered but was not attached to account\n listener.onRegistrationSuccess(context.getString(R.string.auth_threepid_warning_message));\n } else {\n listener.onRegistrationSuccess(null);\n }\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n if (TextUtils.equals(ERROR_MISSING_STAGE, message)\n && (mPhoneNumber == null || isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN))) {\n if (mEmail != null && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n attemptRegistration(context, listener);\n } else if (isTermsRequired()) {\n listener.onWaitingTerms(getLocalizedLoginTerms(context));\n } else {\n // At this point, only captcha can be the missing stage\n listener.onWaitingCaptcha(getCaptchaPublicKey());\n }\n } else {\n listener.onRegistrationFailed(message);\n }\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onResourceLimitExceeded(e);\n }\n });\n }\n }", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public void registrationPost(String regID){\n String type = \"android\";\n String name = LoginActivity.username;\n Callback<Events> callback = new Callback<Events>() {\n\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postRegistration(regID, type, name, callback);\n }", "@Override\r\n\r\n public void getResult(String result) {\n Log.d(\"myApp_AWS\", \"Registration:\" + result);\r\n\r\n if (!result.equals(\"\\\"Appliance Registration Successful\\\"\")) {\r\n\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Web Services Error.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } else {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Toast.makeText(Rinnai11eRegistration.this, \"Update Successful.\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n }", "private void setRegisterReq(\n Register.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 7;\n }", "private void userSignUp(final int id, String agentNm, String fName, String sta, String localG, String tow, String phoneNm, String fmMr, String cbRg, String memSiz, String cggNam, String cFarmZz, String fcRg, String inFarm, String riceVarr, String qttyHarr, String afRg,\n String fertTldd, String noRzz, String qtyApll, String alRg, String szLoaa, String srcRicc, String qtyPdyRicc, String majByrss, String comSolcc, String qttyByy, String howMcc, String prcBb, String incDs,\n String reasnn, String hwSpyy, String stRg, String ysSptrr, String fm1, String t11, String cstCs11, String fm2, String t22, String cstCs22, String fm3, String t33, String cstCs33, String infPrcc, String salesDmm,\n String avgQtFcc, String whnCp, String whyCp, String whnEx, String whyExx, String mjCh, String adCh, String timSe, String othSe, String adInn) {\n Call<ResponseBody> call = RetrofitClient2\n .getInstance()\n .getNaSurvey()\n .submitResponse(agentNm, fName, sta, localG, tow, phoneNm, fmMr, cbRg, memSiz, cggNam, cFarmZz, fcRg, inFarm, riceVarr, qttyHarr, afRg, fertTldd, noRzz, qtyApll, alRg, szLoaa, srcRicc, qtyPdyRicc, majByrss, comSolcc, qttyByy, howMcc, prcBb, incDs, reasnn, hwSpyy, stRg, ysSptrr, fm1, t11, cstCs11,\n fm2, t22, cstCs22, fm3, t33, cstCs33, infPrcc, salesDmm, avgQtFcc, whnCp, whyCp, whnEx, whyExx, mjCh, adCh, timSe, othSe, adInn);\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\n try {\n JSONObject obj = new JSONObject(String.valueOf(response));\n if (!obj.getBoolean(\"error\")) {\n //updating the status in sqlite\n db.updateNameStatus(id, SurveyActivity.SYNC_STATUS_OK);\n\n //sending the broadcast to refresh the list\n context.sendBroadcast(new Intent(SurveyActivity.DATA_SAVED_BROADCAST));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Map<String, String> params = new HashMap<>();\n params.put(\"agentNm\", agentNm);\n params.put(\"fname\", fName);\n params.put(\"state\", sta);\n params.put(\"lga\", localG);\n params.put(\"town\", tow);\n params.put(\"phoneNm\", phoneNm);\n params.put(\"farmer\", fmMr);\n params.put(\"cogp\", cbRg);\n params.put(\"memsz\", memSiz);\n params.put(\"cgnam\", cggNam);\n params.put(\"cofmsz\", cFarmZz);\n params.put(\"frmcol\", fcRg);\n params.put(\"invfz\", inFarm);\n params.put(\"ricev\", riceVarr);\n params.put(\"qtyhv\", qttyHarr);\n params.put(\"apfert\", afRg);\n params.put(\"ysyld\", fertTldd);\n params.put(\"norz\", noRzz);\n params.put(\"qtyap\", qtyApll);\n params.put(\"aploa\", alRg);\n params.put(\"szloa\", szLoaa);\n params.put(\"srcric\", srcRicc);\n params.put(\"qtypdrc\", qtyPdyRicc);\n params.put(\"majby\", majByrss);\n params.put(\"comso\", comSolcc);\n params.put(\"qtby\", qttyByy);\n params.put(\"hwmch\", howMcc);\n params.put(\"pricbf\", prcBb);\n params.put(\"indcr\", incDs);\n params.put(\"rsn\", reasnn);\n params.put(\"hwspl\", hwSpyy);\n params.put(\"chsp\", stRg);\n params.put(\"yssptr\", ysSptrr);\n params.put(\"frm1\", fm1);\n params.put(\"to1\", t11);\n params.put(\"costc1\", cstCs11);\n params.put(\"frm2\", fm2);\n params.put(\"to2\", t22);\n params.put(\"costcs2\", cstCs22);\n params.put(\"frm3\", fm3);\n params.put(\"to3\", t33);\n params.put(\"costcs3\", cstCs33);\n params.put(\"infpr\", infPrcc);\n params.put(\"salsdm\", salesDmm);\n params.put(\"avqtf\", avgQtFcc);\n params.put(\"wncp\", whnCp);\n params.put(\"wycp\", whyCp);\n params.put(\"wnex\", whnEx);\n params.put(\"wyex\", whyExx);\n params.put(\"majch\", mjCh);\n params.put(\"addch\", adCh);\n params.put(\"timsl\",timSe);\n params.put(\"othsl\",othSe);\n params.put(\"adin\",adInn);\n\n return;\n }\n });\n\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "@Override\n public void onResponse(BaseBean response) {\n Log.i(\"TAG\", \"response=\" + response);\n progress.dismissAllowingStateLoss();\n if (tag == 0) {\n /** TAG==0表示这是验证验证码 */\n// if (response.getCode() == 0) {\n// String urlPath = FinalData.URL_VALUE + \"register\";\n// Map<String, Object> map = new HashMap<String, Object>();\n// map.put(\"mobile\", etPhone.getText().toString().trim());\n// try {\n// map.put(\"password\", etPassword);\n// } catch (Exception e) {\n// // TODO Auto-generated catch block\n// e.printStackTrace();\n// }\n// GsonRequest<BaseBean> custom = new GsonRequest<BaseBean>(Request.Method.POST, urlPath, BaseBean.class, map, getVerifyListener(1), getVerifyErrorListener(1));\n// VolleySingleton.getInstance(getActivity().getApplicationContext()).addToRequestQueue(custom);\n// } else {\n// ToastUtils.showToast(getActivity(), response.getMsg());\n// }\n } else if (tag == 1) {\n /** TAG==1 表示这是注册 */\n if (response.getCode() == 0) {\n ToastUtils.showToast(context, response.getMsg());\n\n }\n }\n }", "public interface LoginRegistrationCallBack {\n\n void onResponseSuccess(String token);\n void onResponseError();\n\n}", "private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void sendRegistrationIdToBackend()\n {\n\tLog.d(Globals.TAG, \"REGISTER USERID: \" + regid);\n\tString name = ((EditText)findViewById(R.id.name_edittext)).getText().toString();\n\tnew AsyncTask<String, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(String... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"name\", params[0]);\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.REGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent registration\";\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t }\n\t}.execute(name);\n }", "public AuthResponse registerAccount(Account acc){\n Call<AuthResponse> call = endpoints.registerAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public ChangeRegistrationResponse(Hashtable<String, Object> hash) {\r\n super(hash);\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "@GetMapping(value = \"/registration\")\n public String onRegistration() {\n return \"registration\";\n }", "private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }", "net.nyhm.protonet.example.proto.LoginProto.RegisterResponse.Decision getDecision();", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register.Res getRegisterRes() {\n if (rspCase_ == 7) {\n return (Register.Res) rsp_;\n }\n return Register.Res.getDefaultInstance();\n }", "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "private void setRegisterReq(Register.Req value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 7;\n }", "private CallResponse() {\n initFields();\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public Builder setRegistrationRequest(entities.Torrent.RegistrationRequest value) {\n if (registrationRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n registrationRequest_ = value;\n onChanged();\n } else {\n registrationRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "@PostMapping(path = \"/online-sales-service/registerForAnEvent\")\n\tpublic ResponseEntity<?> eventRegistration(@RequestBody final EventRegistration eventReg, final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tResponseEntity<?> responseEntity;\n\t\tEventRegistration thisEvent = null;\n\t\ttry {\n\t\t\tthisEvent = eventRegistrationService.createEventRegistration(eventReg);\n\t\t} catch (Exception e) {\n\t\t\tresponseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponseEntity = new ResponseEntity<EventRegistration>(thisEvent, HttpStatus.OK);\n\t\treturn responseEntity;\n\t}", "public void setDeviceRegistration(String deviceRegistration) {\n this.deviceRegistration = deviceRegistration;\n }", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "UserDTO registerUser(UserRegistrationDTO registrationDTO);", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "public void saveRegistrationInfo(RegistrationDTO registrationDTO)\r\n\t\t\tthrows Exception {\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void sendRegistrationToServer(String token) {\n }" ]
[ "0.7318", "0.72834706", "0.6999633", "0.69554013", "0.694663", "0.69263613", "0.68704987", "0.682534", "0.67842513", "0.67171884", "0.6681477", "0.66677725", "0.65256006", "0.65217024", "0.6508144", "0.64968556", "0.6471097", "0.6426032", "0.6403649", "0.6398991", "0.6394312", "0.6355629", "0.6338359", "0.62917954", "0.62898946", "0.6252552", "0.62231576", "0.6201459", "0.6152857", "0.61239725", "0.60927355", "0.6092429", "0.607144", "0.6030716", "0.60304034", "0.6029398", "0.60250914", "0.60087824", "0.60006815", "0.5975901", "0.5963247", "0.5936041", "0.5920562", "0.59048766", "0.5874698", "0.5862446", "0.5855555", "0.58501863", "0.5838247", "0.5837567", "0.58336854", "0.58271754", "0.5821312", "0.58021617", "0.57991564", "0.578513", "0.57737017", "0.5773256", "0.57665735", "0.5758664", "0.57346123", "0.57319164", "0.5728281", "0.5723886", "0.57182544", "0.5694033", "0.56902754", "0.5662591", "0.5642736", "0.5626005", "0.5625632", "0.5623964", "0.5623601", "0.5620659", "0.5605209", "0.5601017", "0.5597681", "0.5593491", "0.55819285", "0.557775", "0.55764633", "0.5570555", "0.5569714", "0.5563907", "0.55513847", "0.5547127", "0.55446255", "0.553952", "0.55329645", "0.55299026", "0.5529278", "0.5525127", "0.55149424", "0.55131716", "0.5509585", "0.55066067", "0.55039567", "0.5498068", "0.5490506", "0.5485802" ]
0.6027351
36
.SubnetRequest subnetRequest = 16;
public boolean hasSubnetRequest() { return subnetRequestBuilder_ != null || subnetRequest_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.55441946
51
.SubnetRequest subnetRequest = 16;
public entities.Torrent.SubnetRequest getSubnetRequest() { if (subnetRequestBuilder_ == null) { return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_; } else { return subnetRequestBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.60570663
27
.SubnetRequest subnetRequest = 16;
public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) { if (subnetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subnetRequest_ = value; onChanged(); } else { subnetRequestBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.6509426
11
.SubnetRequest subnetRequest = 16;
public Builder setSubnetRequest( entities.Torrent.SubnetRequest.Builder builderForValue) { if (subnetRequestBuilder_ == null) { subnetRequest_ = builderForValue.build(); onChanged(); } else { subnetRequestBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.60970443
26
.SubnetRequest subnetRequest = 16;
public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) { if (subnetRequestBuilder_ == null) { if (subnetRequest_ != null) { subnetRequest_ = entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial(); } else { subnetRequest_ = value; } onChanged(); } else { subnetRequestBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.58419013
39
.SubnetRequest subnetRequest = 16;
public Builder clearSubnetRequest() { if (subnetRequestBuilder_ == null) { subnetRequest_ = null; onChanged(); } else { subnetRequest_ = null; subnetRequestBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.568731
45
.SubnetRequest subnetRequest = 16;
public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() { onChanged(); return getSubnetRequestFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.6049343
28
.SubnetRequest subnetRequest = 16;
public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() { if (subnetRequestBuilder_ != null) { return subnetRequestBuilder_.getMessageOrBuilder(); } else { return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5268537", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.58707196
35
.SubnetRequest subnetRequest = 16;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder> getSubnetRequestFieldBuilder() { if (subnetRequestBuilder_ == null) { subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>( getSubnetRequest(), getParentForChildren(), isClean()); subnetRequest_ = null; } return subnetRequestBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetRequest getSubnetRequest();", "boolean hasSubnetRequest();", "@Required\n public String getSubnet() {\n return subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "java.lang.String getSubnet();", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public SubnetInner subnet() {\n return this.subnet;\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public String subnetId() {\n return this.subnetId;\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "byte[] networkMask();", "public TeIpv6() {\n }", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "void setNetworkMask(byte[] networkMask);", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "private void sumbit(String ip){\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public EthernetStaticIP() {\n }", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "int getS1Ip();", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeNegativeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(-1);\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "LabNetworkProfile networkProfile();", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public void enableIpv6(boolean val);", "public int\n setBitRate(int bitRate);", "public interface BitcoinNetworkConfiguration {\n /**\n * Network that we are using as Default in the platform\n */\n public static final NetworkParameters DEFAULT_NETWORK_PARAMETERS = RegTestParams.get();\n\n /**\n * RegTest client configuration\n */\n public static final String BITCOIN_FULL_NODE_1_IP = \"52.32.106.35\";\n public static final int BITCOIN_FULL_NODE_1_PORT = 19020;\n public static final String BITCOIN_FULL_NODE_2_IP = \"52.34.184.168\";\n public static final int BITCOIN_FULL_NODE_2_PORT = 19030;\n\n /**\n * Agent name and version\n */\n public static final String USER_AGENT_NAME = \"Fermat Agent\";\n public static final String USER_AGENT_VERSION =\"2.1.0\";\n\n /**\n * amount of blocks depth to consider transaction IRReversible\n */\n public static final int IRREVERSIBLE_BLOCK_DEPTH = 3;\n\n /**\n * Amount of Timeout minutes for broadcasting transactions\n */\n public static final int TRANSACTION_BROADCAST_TIMEOUT = 5;\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "int netid() {\n\t\t\treturn address & (-1 << mask);\n\t\t}", "@Override\n public void buildNetwork() {\n }", "public DefaultCniNetworkInner() {\n }", "public Call inviteAddress(Address addr);", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public TestBSSVRequest() {\r\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "public static void putDelegatedSubnet(com.azure.resourcemanager.delegatednetwork.DelegatedNetworkManager manager) {\n manager\n .delegatedSubnetServices()\n .define(\"delegated1\")\n .withRegion(\"West US\")\n .withExistingResourceGroup(\"TestRG\")\n .withSubnetDetails(\n new SubnetDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet\"))\n .withControllerDetails(\n new ControllerDetails()\n .withId(\n \"/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller\"))\n .create();\n }" ]
[ "0.79386127", "0.70175767", "0.70161825", "0.6881657", "0.68414843", "0.67907566", "0.67907566", "0.67907566", "0.678423", "0.6778312", "0.67452836", "0.6509426", "0.6475419", "0.6475419", "0.6475419", "0.63659567", "0.63659567", "0.6365822", "0.6313081", "0.63101864", "0.62503815", "0.62501603", "0.62501603", "0.6217703", "0.6172369", "0.6127176", "0.60970443", "0.60570663", "0.6049343", "0.596633", "0.59616446", "0.59117144", "0.5905863", "0.58951944", "0.58830285", "0.58707196", "0.5853389", "0.5852561", "0.5849698", "0.58419013", "0.5841874", "0.583815", "0.5777234", "0.5774304", "0.5703013", "0.568731", "0.56587374", "0.56587374", "0.56587374", "0.5639432", "0.5602681", "0.55441946", "0.5462927", "0.5447908", "0.5420193", "0.535556", "0.5345242", "0.529866", "0.5286624", "0.52759427", "0.5248087", "0.5226913", "0.52179223", "0.52047557", "0.520161", "0.5193373", "0.5150651", "0.51399666", "0.51238334", "0.50897264", "0.5057333", "0.50550455", "0.50508374", "0.50344324", "0.501738", "0.501426", "0.50073177", "0.50069237", "0.49969852", "0.498906", "0.49734187", "0.49515942", "0.49198756", "0.48868835", "0.48820335", "0.48781446", "0.48655596", "0.48631108", "0.48598573", "0.48457688", "0.48357537", "0.48356536", "0.4827102", "0.48084155", "0.47985503", "0.4794464", "0.478343", "0.4783339", "0.47632483", "0.47625104" ]
0.5268537
60
.SubnetResponse subnetResponse = 17;
public boolean hasSubnetResponse() { return subnetResponseBuilder_ != null || subnetResponse_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6009128
33
.SubnetResponse subnetResponse = 17;
public entities.Torrent.SubnetResponse getSubnetResponse() { if (subnetResponseBuilder_ == null) { return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_; } else { return subnetResponseBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6444723
14
.SubnetResponse subnetResponse = 17;
public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) { if (subnetResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subnetResponse_ = value; onChanged(); } else { subnetResponseBuilder_.setMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6913148
4
.SubnetResponse subnetResponse = 17;
public Builder setSubnetResponse( entities.Torrent.SubnetResponse.Builder builderForValue) { if (subnetResponseBuilder_ == null) { subnetResponse_ = builderForValue.build(); onChanged(); } else { subnetResponseBuilder_.setMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.64691067
13
.SubnetResponse subnetResponse = 17;
public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) { if (subnetResponseBuilder_ == null) { if (subnetResponse_ != null) { subnetResponse_ = entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial(); } else { subnetResponse_ = value; } onChanged(); } else { subnetResponseBuilder_.mergeFrom(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6139454
29
.SubnetResponse subnetResponse = 17;
public Builder clearSubnetResponse() { if (subnetResponseBuilder_ == null) { subnetResponse_ = null; onChanged(); } else { subnetResponse_ = null; subnetResponseBuilder_ = null; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.64112115
16
.SubnetResponse subnetResponse = 17;
public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() { onChanged(); return getSubnetResponseFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6758578
5
.SubnetResponse subnetResponse = 17;
public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() { if (subnetResponseBuilder_ != null) { return subnetResponseBuilder_.getMessageOrBuilder(); } else { return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.59152865", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.6127022
30
.SubnetResponse subnetResponse = 17;
private com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder> getSubnetResponseFieldBuilder() { if (subnetResponseBuilder_ == null) { subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>( getSubnetResponse(), getParentForChildren(), isClean()); subnetResponse_ = null; } return subnetResponseBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "entities.Torrent.SubnetRequest getSubnetRequest();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "boolean hasSubnetResponse();", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "@Required\n public String getSubnet() {\n return subnet;\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "java.lang.String getSubnet();", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "boolean hasSubnetRequest();", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public DelegatedSubnetUsage() {\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "public String subnetId() {\n return this.subnetId;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public void receiveResultsub(\n loadbalance.LoadBalanceStub.SubResponse result\n ) {\n }", "public void receiveResultsub2(\n loadbalance.LoadBalanceStub.Sub2Response result\n ) {\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@JSON(serialize=false)\r\n\tpublic String listShowHuaSanSubnet() throws Exception {\n\t\treturn SUCCESS;\r\n\t}", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "@Test\n public void testReceiverRegionEndpointBloodType() {\n ResponseEntity response = dataController.getReceiverDataRegion(null, \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "public boolean hasSubnetRequest() {\n return subnetRequestBuilder_ != null || subnetRequest_ != null;\n }", "public BtcRpcGetAddressInfoEmbeddedResponse() {\n super();\n }", "@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }", "private void setFriendlistRes(\n FriendList.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 10;\n }", "@Test\n public void testReceiverRegionEndpointCombo() {\n ResponseEntity response = dataController.getReceiverDataRegion(\"F\", \"B+\", null);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "@GET\n @Path(\"/{version:[vV][1]}/subnetCapabilityQuery\")\n @Operation(description = \"Provides subnet capability based on subnet types\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response getSliceSubnetCapabilities(QuerySubnetCapability request, @PathParam(\"version\") String version)\n throws ApiException {\n logger.debug(\"Request received {}\", request);\n List<SubnetTypes> subnetTypes = request.getSubnetTypes();\n return getSubnetCapabilities(subnetTypes, version);\n }", "com.google.protobuf.ByteString getResponseAddress();", "private void setS2InfoRsp(\n PToP.S2InfoRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 25;\n }", "public Animal getSIP(){\n return sIP;\n }", "public int getResponse() {return response;}", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "private void setS1Rsp(\n PToP.S1Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 22;\n }", "public static String look_for_any_node(final Context context,final String subnet) {\n String host;\n for (int i = 98; i < 255; i++) {\n host = subnet + i;\n try {\n MyClientTask myClientTask = new MyClientTask(\n context,\n NodeDB.getNode_db(context),\n host,\n 2121,\n new RequestObj(\"HeartBeat\", null).toString());\n String rs = myClientTask.sendData();\n\n if (rs.contains(\"HeartBeat\")){\n return host;\n }\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n\n }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "lightpay.lnd.grpc.NewAddressRequest.AddressType getType();", "protected StochasticSamplingSubnetLayer(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n super(json, rs);\n samples = json.getAsJsonPrimitive(\"samples\").getAsInt();\n seed = json.getAsJsonPrimitive(\"seed\").getAsInt();\n layerSeed = json.getAsJsonPrimitive(\"layerSeed\").getAsInt();\n this.precision = Precision.valueOf(json.getAsJsonPrimitive(\"precision\").getAsString());\n }", "net.iGap.proto.ProtoResponse.Response getResponse();", "net.iGap.proto.ProtoResponse.Response getResponse();", "@Override\r\n protected IQ processRequest(IQ iq) {\n return iq.createResult(new Reachability(addresses));\r\n }", "public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }" ]
[ "0.80094415", "0.7316418", "0.70941913", "0.6980239", "0.6913148", "0.6758578", "0.6656061", "0.6636072", "0.6636072", "0.6636072", "0.6625", "0.6561992", "0.64939827", "0.64691067", "0.6444723", "0.6444312", "0.64112115", "0.6392961", "0.63906795", "0.6339518", "0.6339518", "0.6339518", "0.63058805", "0.6305288", "0.6305288", "0.6290188", "0.62598944", "0.62598944", "0.6259801", "0.6139454", "0.6127022", "0.6103149", "0.6045881", "0.6009128", "0.59910786", "0.5970031", "0.59358037", "0.58726203", "0.58142984", "0.5758658", "0.5686976", "0.56856835", "0.5673864", "0.566707", "0.5622551", "0.5588529", "0.5582166", "0.55127573", "0.5446455", "0.54356813", "0.54356813", "0.54356813", "0.5421622", "0.5380341", "0.53753316", "0.53592855", "0.53556913", "0.53283983", "0.5309167", "0.52720684", "0.5265198", "0.5261006", "0.5247202", "0.5226841", "0.5203047", "0.51922965", "0.5160736", "0.51027024", "0.5057624", "0.5046455", "0.5031164", "0.50066626", "0.5000196", "0.4929497", "0.4919928", "0.4915548", "0.48970777", "0.4894673", "0.48855895", "0.48679003", "0.48467362", "0.48419526", "0.48280776", "0.48279998", "0.482478", "0.4802069", "0.47966695", "0.47953743", "0.47853798", "0.47775456", "0.47691274", "0.47668108", "0.47659156", "0.47582003", "0.4756894", "0.47419718", "0.47372925", "0.47372925", "0.47318769", "0.47263497" ]
0.59152865
37
Create a new ActHiAttachmentDao without any configuration
public ActHiAttachmentDao() { super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired\n public ActHiAttachmentDao(Configuration configuration) {\n super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class, configuration);\n }", "@Override\n\tpublic AttachmentHibernateDAO getAttachmentDAO() {\n\t\treturn (AttachmentHibernateDAO)instantiateDAO(AttachmentHibernateDAO.class);\n\t}", "public ArAgingDetailReportDAO () {}", "private SimpleAttachment() {\n }", "public TAssignmentGradingAttachmentDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public OnibusDAO() {}", "public PurchaseRequestAttachment() {\r\n }", "public abstract AttachmentPart createAttachmentPart();", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public ActorDtoDAOImpl() {\n super();\n }", "public EpAssetsDAOImpl() {\n super();\n }", "public PostDao() {\n\t}", "public static Allegato createEntity(EntityManager em) {\n Allegato allegato = new Allegato()\n .nomeAttachment(DEFAULT_NOME_ATTACHMENT)\n .algoritmoCompressione(DEFAULT_ALGORITMO_COMPRESSIONE)\n .formatoAttachment(DEFAULT_FORMATO_ATTACHMENT)\n .descrizioneAttachment(DEFAULT_DESCRIZIONE_ATTACHMENT)\n .attachment(DEFAULT_ATTACHMENT);\n return allegato;\n }", "public DBDataInitializer(ArtifactDao artifactDao) {\n this.artifactDao = artifactDao;\n// this.wizardDao = wizardDao;\n// this.userService = userService;\n }", "public static FileAttachement createEntity(EntityManager em) {\n FileAttachement fileAttachement = new FileAttachement()\n .file(DEFAULT_FILE)\n .fileContentType(DEFAULT_FILE_CONTENT_TYPE);\n return fileAttachement;\n }", "protected ContaCapitalCadastroDaoFactory() {\n\t\t\n\t}", "public SimpleContactDao() {\n\t\ttry {\n\t\t\tFile contactFile = new File(DB_FILE_NAME);\n\t\t\tif (!contactFile.exists()) {\n\t\t\t\tif (contactFile.createNewFile()) {\n\t\t\t\t\tFileWriter fwriter = new FileWriter(contactFile);\n\t\t\t\t\tfwriter.write(\"{}\");\n\t\t\t\t\tfwriter.close();\n\t\t\t\t\tcontactDtoMap = new HashMap<>();\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"File could not created.\");\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"created file : {}\", contactFile.getAbsolutePath());\n\t\t\t} else {\n\t\t\t\tlog.info(\"file exists : {}\", contactFile.getAbsolutePath());\n\t\t\t\tloadFile(contactFile);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tlog.error(\"something went wrong while initializong contact information.\");\n\t\t}\n\t}", "private FirebaseDAO() {}", "public DaoFactory()\n\t{\n\n\t}", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public ProjectFilesDAOImpl() {\r\n super();\r\n }", "public interface AttachmentService extends DAO {\n\n /**\n * 查找合同对应的附件\n *\n * @param contract 合同编号\n * @return 附件列表\n */\n public List<Attachment> findByContractId(String contract);\n\n /**\n * 上传附件\n *\n * @param attachment 文件信息\n * @param attachmentName 文件名\n * @return 文件名\n */\n public String uploadAttachment(File attachment, String attachmentName);\n}", "@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}", "public PurchaseRequestAttachmentContent() {\r\n }", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public ETLLogDAOImpl() {\r\n this(new Configuration());\r\n }", "public ArticleDao() {\n super(Article.ARTICLE, cn.edu.kmust.flst.domain.flst.tables.pojos.Article.class);\n }", "public RoomServiceImpl(RoomDao roomDao) {\n this.roomDao=roomDao;\n }", "public LogEmailSendrecordDao() {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class);\n }", "protected AbstractDao()\n {\n\n }", "private Attachment createAttachment(String assetId, String name, Attachment originalAttachmentMetadata, String contentType,\n InputStream attachmentContentStream, UriInfo uriInfo) throws InvalidJsonAssetException, AssetPersistenceException, NonExistentArtefactException {\n try {\n persistenceBean.retrieveAsset(assetId);\n } catch (NonExistentArtefactException e) {\n // The message from the PersistenceLayer is unhelpful in this context, so send back a better one\n throw new NonExistentArtefactException(\"The parent asset for this attachment (id=\"\n + assetId + \") does not exist in the repository.\");\n }\n\n Attachment attachmentMetadata = new Attachment(originalAttachmentMetadata);\n\n // Add necessary fields to the attachment (JSON) metadata\n if (attachmentMetadata.get_id() == null) {\n attachmentMetadata.set_id(persistenceBean.allocateNewId());\n }\n attachmentMetadata.setAssetId(assetId);\n if (contentType != null) {\n attachmentMetadata.setContentType(contentType);\n }\n attachmentMetadata.setName(name);\n attachmentMetadata.setUploadOn(IsoDate.format(new Date()));\n\n // Create the attachment content\n if (attachmentContentStream != null) {\n AttachmentContentMetadata contentMetadata = persistenceBean.createAttachmentContent(name, contentType, attachmentContentStream);\n\n // TODO perhaps we should try to clean up after ourselves and delete the attachmentMetadata\n // TODO seriously, this is one of the places where we reaslise that using a DB that doesn't\n // support transactions means we don't get some of the guarantees that we might be used to.\n\n attachmentMetadata.setGridFSId(contentMetadata.filename);\n attachmentMetadata.setSize(contentMetadata.length);\n }\n\n Attachment returnedAttachment = persistenceBean.createAttachmentMetadata(attachmentMetadata);\n\n computeAttachmentURL(returnedAttachment, uriInfo);\n\n return returnedAttachment;\n }", "public DepartmentsDaoImpl() {\n\t\tsuper();\n\t}", "public void create(){}", "private LabelDbmsDao() {\r\n }", "public MediaServiceImpl(/*TagDao tagDao, BoardDao boardDao,*/ MediaDao MediaDao) {\n this.MediaDao = MediaDao;\n// this.mainDao = mainDao;\n// this.tagDao = tagDao;\n }", "private DAOJPAFactory() {\r\n }", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public ProfesorDAOImpl() {\n super();\n }", "PublicationDAO(DAOFactory factory) {\n\t\tsuper( factory );\n\t}", "public DetailVORowImpl() {\n }", "private AttendantDatabase() {}", "public TelefoneDao() {\n\t\tconnection = SingleConnection.getConnection();\n\t}", "private CmmTagMasterVDao() {\r\n\t}", "public AlarmEntity(){}", "public BlogDaoHibernateFactoryImpl() {\n\t\tsuper();\n\t}", "protected MedicoDao() {\n super(Medico.class);\n }", "public ProductDAO() {\n }", "private CommentDAO() {\n\n\t}", "public ProtocoloDAO() {\n }", "public TaskDefNotificationDao() {\n super(TaskDefNotification.TASK_DEF_NOTIFICATION, cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification.class);\n }", "public StockCardReportDAO () {}", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "public interface DAOFactory {\n\n /**\n *\n * @param context\n * @return\n */\n public abstract DAO createPersonBeaconDAO(Context context);\n}", "public DescritoresDAO() {\n\t\t\n\t}", "D getDao();", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "public abstract NoteDao noteDao();", "void create(Authority authority) throws ExTrackDAOException;", "T create() throws PersistException;", "private EntityFactory() {}", "@Override\n\tpublic StudentDao createDao() {\n\t\treturn new SqliteStudentDaoImpl();\n\t}", "public interface IFileDao extends CrudDao<IFileEntity, IFileDto, Long> {\n\n IFileEntity createFile();\n\n Long saveFileUsingStream(IFileEntity fileEntity, InputStream inputStream) throws Exception;\n\n void writeFileContent(Long fileId, OutputStream outputStream) throws Exception;\n}", "public TOfferGoodsDao() {\n super(TOfferGoods.T_OFFER_GOODS, cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods.class);\n }", "public SqliteModelFactoryImpl()\n {\n super();\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "private OrderFacade(){\n\t\tAbstractDAOFactory f = new MySQLDAOFactory();\n \tthis.odao = f.getOrderDAO();\n\t}", "private DaoManager() {\n }", "public interface ArtMasterAttachmentManager {\n Map saveArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n\n Map deleteArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n}", "public SufficientFundsDaoOjb() {\n }", "private PurchaseDAO(){\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "Foco createFoco();", "public NotificationDAO(DatabaseSQLHelper databaseSQLHelper) {\n\n log = new DLog(\"ClientNotificationDAO\");\n this.databaseSQLHelper = databaseSQLHelper;\n }", "public PacienteDAO(){ \n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public NewDigitalMediaObject() {\n this(DSL.name(\"new_digital_media_object\"), null);\n }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "Motivo create(Motivo motivo);", "public Attachment createAttachmentNoContent(String assetId, String name, Attachment attachmentMetadata, UriInfo uriInfo) throws InvalidJsonAssetException,\n AssetPersistenceException, NonExistentArtefactException {\n\n // There is no content, so an external URL must be set, and the link\n // type must be DIRECT or WEB_PAGE\n String url = attachmentMetadata.getUrl();\n if (url == null) {\n throw new InvalidJsonAssetException(\"The URL of the supplied attachment was null\");\n }\n\n String stringType = attachmentMetadata.getLinkType();\n if (stringType == null) {\n throw new InvalidJsonAssetException(\"The link type for the attachment was not set.\");\n }\n\n Attachment.LinkType linkType = Attachment.LinkType.forValue(stringType);\n if (linkType == null || (linkType != Attachment.LinkType.DIRECT && linkType != Attachment.LinkType.WEB_PAGE)) {\n throw new InvalidJsonAssetException(\"The link type for the attachment was set to an invalid value: \" + stringType);\n }\n\n return createAttachment(assetId, name, attachmentMetadata, null, null, uriInfo);\n\n }", "public static guitarDao createguitarDao() {\n\t\tguitarDao result = null;\n\t\ttry {\n\t\t\tObject o = Class.forName(daoName + \".\" + \"guitarImpl\").newInstance();\n\t\t\tresult = (guitarDao)o;\n\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "@Inject\n public DamageTableDaoDbImpl(SQLiteOpenHelper helper) {\n super(helper);\n }", "private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }", "public interface DocumentDAO extends UniqueNamedEntityCrudDAO<Document> {\n\n Document createIfNotExists(String documentName, String documentUrl);\n}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "Passive_Digital_Artifact createPassive_Digital_Artifact();", "public LogEmailSendrecordDao(Configuration configuration) {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class, configuration);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "public SourceDataFileJpa() {\n // n/a\n }", "@POST\n @StatusCreated\n public PhotoAlbumDetailDTO createPhotoAlbum(PhotoAlbumDetailDTO dto) {\n \n return new PhotoAlbumDetailDTO(photoAlbumLogic.createPhotoAlbum(bicyclesId, dto.toEntity()));\n }", "private ORMServiceFactory() { }", "public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }", "protected ETLLogDAOImpl(Configuration config) {\r\n config.addClass(ETLLog.class);\r\n factory = config.buildSessionFactory();\r\n }", "@Override\n\tprotected VtbObject createImpl(Connection conn, VtbObject domainObject)\n\t\t\tthrows SQLException, MappingException {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Idao getDao() {\n\t\treturn new FilesystemIdao();\r\n\t}", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "Active_Digital_Artifact createActive_Digital_Artifact();", "public static Media createEntity(EntityManager em) {\n Media media = new Media().fileName(DEFAULT_FILE_NAME).fileType(DEFAULT_FILE_TYPE).fileDesc(DEFAULT_FILE_DESC);\n return media;\n }" ]
[ "0.66398203", "0.64023817", "0.6195479", "0.6121484", "0.6072905", "0.60350484", "0.5816665", "0.5731626", "0.5730849", "0.56943774", "0.56890416", "0.56609064", "0.5621533", "0.5577858", "0.5551536", "0.5549433", "0.5526013", "0.5475118", "0.5474827", "0.5474705", "0.54665804", "0.545933", "0.54479796", "0.5437008", "0.5423182", "0.5413466", "0.54114497", "0.5403158", "0.5399155", "0.5394207", "0.5380003", "0.5371874", "0.5342266", "0.53419185", "0.5333213", "0.53313535", "0.5327951", "0.5322266", "0.53217995", "0.5320494", "0.53076273", "0.53052425", "0.5287189", "0.52789646", "0.527788", "0.5273352", "0.5269595", "0.526001", "0.5252628", "0.52520984", "0.5251288", "0.524403", "0.5237906", "0.521675", "0.52070427", "0.5202876", "0.5197894", "0.5196416", "0.5188822", "0.5188597", "0.51833725", "0.51638556", "0.51635927", "0.516106", "0.51609045", "0.51494414", "0.514846", "0.51466566", "0.51401556", "0.51391506", "0.51381993", "0.5131163", "0.5125972", "0.51247436", "0.5114504", "0.51104844", "0.5107884", "0.51061183", "0.51031905", "0.50980115", "0.5094105", "0.50779885", "0.5074772", "0.50732845", "0.50693214", "0.50647414", "0.50643003", "0.50616616", "0.505422", "0.50520325", "0.5049772", "0.5046894", "0.5046414", "0.5035418", "0.5035118", "0.50318336", "0.50314635", "0.50280756", "0.5026842", "0.50225776" ]
0.7681968
0
Create a new ActHiAttachmentDao with an attached configuration
@Autowired public ActHiAttachmentDao(Configuration configuration) { super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class, configuration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ActHiAttachmentDao() {\n super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class);\n }", "@Override\n\tpublic AttachmentHibernateDAO getAttachmentDAO() {\n\t\treturn (AttachmentHibernateDAO)instantiateDAO(AttachmentHibernateDAO.class);\n\t}", "public abstract AttachmentPart createAttachmentPart();", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "public TAssignmentGradingAttachmentDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public LogEmailSendrecordDao(Configuration configuration) {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class, configuration);\n }", "public static Allegato createEntity(EntityManager em) {\n Allegato allegato = new Allegato()\n .nomeAttachment(DEFAULT_NOME_ATTACHMENT)\n .algoritmoCompressione(DEFAULT_ALGORITMO_COMPRESSIONE)\n .formatoAttachment(DEFAULT_FORMATO_ATTACHMENT)\n .descrizioneAttachment(DEFAULT_DESCRIZIONE_ATTACHMENT)\n .attachment(DEFAULT_ATTACHMENT);\n return allegato;\n }", "public static FileAttachement createEntity(EntityManager em) {\n FileAttachement fileAttachement = new FileAttachement()\n .file(DEFAULT_FILE)\n .fileContentType(DEFAULT_FILE_CONTENT_TYPE);\n return fileAttachement;\n }", "private Attachment createAttachment(String assetId, String name, Attachment originalAttachmentMetadata, String contentType,\n InputStream attachmentContentStream, UriInfo uriInfo) throws InvalidJsonAssetException, AssetPersistenceException, NonExistentArtefactException {\n try {\n persistenceBean.retrieveAsset(assetId);\n } catch (NonExistentArtefactException e) {\n // The message from the PersistenceLayer is unhelpful in this context, so send back a better one\n throw new NonExistentArtefactException(\"The parent asset for this attachment (id=\"\n + assetId + \") does not exist in the repository.\");\n }\n\n Attachment attachmentMetadata = new Attachment(originalAttachmentMetadata);\n\n // Add necessary fields to the attachment (JSON) metadata\n if (attachmentMetadata.get_id() == null) {\n attachmentMetadata.set_id(persistenceBean.allocateNewId());\n }\n attachmentMetadata.setAssetId(assetId);\n if (contentType != null) {\n attachmentMetadata.setContentType(contentType);\n }\n attachmentMetadata.setName(name);\n attachmentMetadata.setUploadOn(IsoDate.format(new Date()));\n\n // Create the attachment content\n if (attachmentContentStream != null) {\n AttachmentContentMetadata contentMetadata = persistenceBean.createAttachmentContent(name, contentType, attachmentContentStream);\n\n // TODO perhaps we should try to clean up after ourselves and delete the attachmentMetadata\n // TODO seriously, this is one of the places where we reaslise that using a DB that doesn't\n // support transactions means we don't get some of the guarantees that we might be used to.\n\n attachmentMetadata.setGridFSId(contentMetadata.filename);\n attachmentMetadata.setSize(contentMetadata.length);\n }\n\n Attachment returnedAttachment = persistenceBean.createAttachmentMetadata(attachmentMetadata);\n\n computeAttachmentURL(returnedAttachment, uriInfo);\n\n return returnedAttachment;\n }", "private SimpleAttachment() {\n }", "public ArAgingDetailReportDAO () {}", "public interface AttachmentService extends DAO {\n\n /**\n * 查找合同对应的附件\n *\n * @param contract 合同编号\n * @return 附件列表\n */\n public List<Attachment> findByContractId(String contract);\n\n /**\n * 上传附件\n *\n * @param attachment 文件信息\n * @param attachmentName 文件名\n * @return 文件名\n */\n public String uploadAttachment(File attachment, String attachmentName);\n}", "public DBDataInitializer(ArtifactDao artifactDao) {\n this.artifactDao = artifactDao;\n// this.wizardDao = wizardDao;\n// this.userService = userService;\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public PurchaseRequestAttachment() {\r\n }", "protected ETLLogDAOImpl(Configuration config) {\r\n config.addClass(ETLLog.class);\r\n factory = config.buildSessionFactory();\r\n }", "public ETLLogDAOImpl() {\r\n this(new Configuration());\r\n }", "public PensionParametersDAO(Configuration properties) {\n this.properties = properties;\n\n }", "public void buildAttachments(Connection db) throws SQLException {\n\t messageAttachments = new MessageAttachmentList(db,Constants.MESSAGE_FILE_ATTACHMENTS,this.getId());\n\t attachmentList = new ArrayList();\n\t}", "public MediaServiceImpl(/*TagDao tagDao, BoardDao boardDao,*/ MediaDao MediaDao) {\n this.MediaDao = MediaDao;\n// this.mainDao = mainDao;\n// this.tagDao = tagDao;\n }", "public interface ArtMasterAttachmentManager {\n Map saveArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n\n Map deleteArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n}", "private ExcelAttachment(T attachment){\n\t\tthis.attachment=attachment;\n\t}", "public TOfferGoodsDao(Configuration configuration) {\n super(TOfferGoods.T_OFFER_GOODS, cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods.class, configuration);\n }", "AttachmentDTO findOne(Long id);", "org.hl7.fhir.Attachment addNewValueAttachment();", "public interface SMTPAttachment extends SMTPComponent {\n\n // Attribute names\n public static final String ATTR_ATTACHMENT_CONTENT_PART = \"attachmentContentPart\";\n public static final String ATTR_ATTACHMENT_FILE_NAME_PART = \"attachmentFileNamePart\";\n public static final String ATTR_READ_FROM_FILE = \"readFromFile\";\n public static final String ATTR_CONTENT_TYPE = \"contentType\";\n public static final String ATTR_DISPOSITION = \"disposition\";\n\n public void setAttachmentContentPart(String attachmentContentPart);\n\n public String getAttachmentContentPart();\n\n public void setAttachmentFileNamePart(String attachmentFileNamePart);\n\n public String getAttachmentFileNamePart();\n\n public void setReadFromFile(String filePath);\n\n public String getReadFromFile();\n\n public void setContentType(String contentType);\n\n public String getContentType();\n\n public void setDisposition(String disposition);\n\n public String getDisposition();\n}", "public PurchaseRequestAttachmentContent() {\r\n }", "public abstract void addAttachmentPart(AttachmentPart attachmentpart);", "public LogEmailSendrecordDao() {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class);\n }", "@Override\r\n\tpublic int createAdvertisement(AdvertisementDto dto) {\n\t\treturn session.insert(\"kdc.advertisement.createAdvertisement\", dto);\r\n\t}", "@SuppressWarnings(\"unused\") private VeemContextBuilder attachmentApi(AttachmentApi a) {return this; }", "public DataHandler getAttachment(String id) {\n if (attachments != null && attachments.get(id) != null) {\n return new DataHandler((DataSource) attachments.get(id));\n }\n return null;\n }", "public static Media createEntity(EntityManager em) {\n Media media = new Media().fileName(DEFAULT_FILE_NAME).fileType(DEFAULT_FILE_TYPE).fileDesc(DEFAULT_FILE_DESC);\n return media;\n }", "@Autowired\n public ArticleDao(Configuration configuration) {\n super(Article.ARTICLE, cn.edu.kmust.flst.domain.flst.tables.pojos.Article.class, configuration);\n }", "public SimpleContactDao() {\n\t\ttry {\n\t\t\tFile contactFile = new File(DB_FILE_NAME);\n\t\t\tif (!contactFile.exists()) {\n\t\t\t\tif (contactFile.createNewFile()) {\n\t\t\t\t\tFileWriter fwriter = new FileWriter(contactFile);\n\t\t\t\t\tfwriter.write(\"{}\");\n\t\t\t\t\tfwriter.close();\n\t\t\t\t\tcontactDtoMap = new HashMap<>();\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"File could not created.\");\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"created file : {}\", contactFile.getAbsolutePath());\n\t\t\t} else {\n\t\t\t\tlog.info(\"file exists : {}\", contactFile.getAbsolutePath());\n\t\t\t\tloadFile(contactFile);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tlog.error(\"something went wrong while initializong contact information.\");\n\t\t}\n\t}", "public interface AttachmentService {\n\n /**\n * Save a attachment.\n *\n * @param attachmentDTO the entity to save\n * @return the persisted entity\n */\n AttachmentDTO save(AttachmentDTO attachmentDTO);\n\n /**\n * Get all the attachments.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<AttachmentDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" attachment.\n *\n * @param id the id of the entity\n * @return the entity\n */\n AttachmentDTO findOne(Long id);\n\n /**\n * Delete the \"id\" attachment.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n *根据转运编码获取转运上传的图片\n * @param code\n * @param request\n * @return\n */\n List<AttachmentDTO> findFilesByTranshipCode(String code, HttpServletRequest request);\n\n /**\n * 修改附件的基本信息\n * @param attachmentDTO\n * @return\n */\n AttachmentDTO updateAttachment(AttachmentDTO attachmentDTO);\n}", "@Test\n public void attach() {\n String channelName = \"attach_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* wait until connected */\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", ably.connection.state, ConnectionState.connected);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "@Autowired\n\tpublic ExamDao(Configuration configuration) {\n\t\tsuper(Exam.EXAM, ro.ghasachi.bt.persistence.tables.pojos.Exam.class, configuration);\n\t}", "Passive_Digital_Artifact createPassive_Digital_Artifact();", "public ProfileWorkexpDao(Configuration configuration) {\n super(ProfileWorkexp.PROFILE_WORKEXP, com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp.class, configuration);\n }", "@Autowired\n public TaskDefNotificationDao(Configuration configuration) {\n super(TaskDefNotification.TASK_DEF_NOTIFICATION, cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification.class, configuration);\n }", "Active_Digital_Artifact createActive_Digital_Artifact();", "public OnibusDAO() {}", "public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo addNewAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().add_element_user(ATTACHMENTINFO$0);\n return target;\n }\n }", "private static DBConnectionFactory createDBConnectionFactory(ConfigurationObject config) {\r\n ConfigurationObject dbConnectionFactoryConfig = Helper.getChildConfig(config,\r\n DB_CONNECTION_FACTORY_CONFIG);\r\n\r\n // Create database connection factory using the extracted configuration\r\n try {\r\n return new DBConnectionFactoryImpl(dbConnectionFactoryConfig);\r\n } catch (UnknownConnectionException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\r\n \"Fails to create database connection factory.\", e);\r\n } catch (ConfigurationException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\r\n \"Fails to create database connection factory.\", e);\r\n }\r\n }", "public static PostponeRecord createEntity(EntityManager em) {\n PostponeRecord postponeRecord = new PostponeRecord()\n .driverId(DEFAULT_DRIVER_ID)\n .vehicleId(DEFAULT_VEHICLE_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .receiptNumber(DEFAULT_RECEIPT_NUMBER)\n .operationTime(DEFAULT_OPERATION_TIME)\n .plateNumber(DEFAULT_PLATE_NUMBER)\n .driverName(DEFAULT_DRIVER_NAME)\n .postponeData(DEFAULT_POSTPONE_DATA)\n .remark(DEFAULT_REMARK);\n return postponeRecord;\n }", "private void addAttachment(MimeMultipart multipart, String filePath) throws MessagingException, IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n Tika tika = new Tika();\n String fileContentType = tika.detect(file);\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin,\n fileContentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "public void addAttachment(String tiid, IAttachment attachment)\n throws HumanTaskManagerException {\n try {\n sdap.beginTx();\n TaskStructure taskStructure = new TaskStructure(tiid);\n taskStructure.addSelectedTaskAttachment(attachment);\n sdap.commitTx();\n } catch (HumanTaskManagerException e) {\n sdap.rollbackTx();\n throw new HumanTaskManagerException(e);\n } finally {\n sdap.close();\n }\n }", "public SimpleAttachment build() {\n \t\treturn new SimpleAttachment(this);\n \t}", "@Override\n public Configuration createConfigurationFT(Connection connection, Configuration configuration) throws SQLException {\n PreparedStatement ps = null;\n try{\n String insertSQL = \"INSERT INTO Configuration (configurationID, displayName, defaultType, defaultArg1, defaultArg2) VALUES (?, ?, ?, ?, ?);\";\n ps = connection.prepareStatement(insertSQL);\n ps.setString(1, configuration.getConfigurationID().toString());\n ps.setString(2, configuration.getDisplayName());\n ps.setString(3, configuration.getDefaultType());\n ps.setString(4, configuration.getDefaultArg1()); \n ps.setString(5, configuration.getDefaultArg2()); \n ps.executeUpdate();\n \n return configuration;\n }\n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in ConfigurationDaoImpl.create(2 arg)\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n }\n return configuration;\n }", "public EpAssetsDAOImpl() {\n super();\n }", "protected void configureEmbeddedDB() {\n final EmbeddedDBProvider embeddedDBProvider = new EmbeddedDBProvider(daoConfig);\n embeddedDB = embeddedDBProvider.get();\n bind(EmbeddedDB.class).toInstance(embeddedDB);\n }", "public PostDao() {\n\t}", "public NewDigitalMediaObject() {\n this(DSL.name(\"new_digital_media_object\"), null);\n }", "public Attachment createAttachmentNoContent(String assetId, String name, Attachment attachmentMetadata, UriInfo uriInfo) throws InvalidJsonAssetException,\n AssetPersistenceException, NonExistentArtefactException {\n\n // There is no content, so an external URL must be set, and the link\n // type must be DIRECT or WEB_PAGE\n String url = attachmentMetadata.getUrl();\n if (url == null) {\n throw new InvalidJsonAssetException(\"The URL of the supplied attachment was null\");\n }\n\n String stringType = attachmentMetadata.getLinkType();\n if (stringType == null) {\n throw new InvalidJsonAssetException(\"The link type for the attachment was not set.\");\n }\n\n Attachment.LinkType linkType = Attachment.LinkType.forValue(stringType);\n if (linkType == null || (linkType != Attachment.LinkType.DIRECT && linkType != Attachment.LinkType.WEB_PAGE)) {\n throw new InvalidJsonAssetException(\"The link type for the attachment was set to an invalid value: \" + stringType);\n }\n\n return createAttachment(assetId, name, attachmentMetadata, null, null, uriInfo);\n\n }", "public BandaProtectionDao(Configuration configuration) {\n\t\tsuper(BandaProtection.BANDA_PROTECTION, com.psygate.minecraft.spigot.sovereignty.banda.db.model.tables.pojos.BandaProtection.class, configuration);\n\t}", "public NotificationDAO(DatabaseSQLHelper databaseSQLHelper) {\n\n log = new DLog(\"ClientNotificationDAO\");\n this.databaseSQLHelper = databaseSQLHelper;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public RoomServiceImpl(RoomDao roomDao) {\n this.roomDao=roomDao;\n }", "@Override\r\n\tprotected void startUpEmbeddedDatabase(AppConfig config) throws WrappedDatabaseException {\n\t}", "@Dao(CfgHisTableConfigEntity.class)\npublic interface ICfgHisTableConfigDao extends CrudDao<CfgHisTableConfigEntity, String> {\n}", "@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}", "Delivery createDelivery();", "void SaveInvPreFileDetailDao(InvPreFileDetailEntity invPreFileDetailEntity);", "int insert(NjOrderAttachment record);", "public void crearAsistente(AsistenteDTO dto) throws SQLException {\n artFacade.crear(dto);\n }", "public AlarmEntity(){}", "@Override\n public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {\n List<String> segments = uri.getPathSegments();\n String accountId = segments.get(0);\n String id = segments.get(1);\n String format = segments.get(2);\n if (FORMAT_THUMBNAIL.equals(format)) {\n int width = Integer.parseInt(segments.get(3));\n int height = Integer.parseInt(segments.get(4));\n String filename = \"thmb_\" + accountId + \"_\" + id;\n File dir = getContext().getCacheDir();\n File file = new File(dir, filename);\n if (!file.exists()) {\n Uri attachmentUri = getAttachmentUri(Long.parseLong(accountId), Long.parseLong(id));\n Cursor c = query(attachmentUri,\n new String[] { AttachmentProviderColumns.DATA }, null, null, null);\n if (c != null) {\n try {\n if (c.moveToFirst()) {\n attachmentUri = Uri.parse(c.getString(0));\n } else {\n return null;\n }\n } finally {\n c.close();\n }\n }\n String type = getContext().getContentResolver().getType(attachmentUri);\n try {\n InputStream in =\n getContext().getContentResolver().openInputStream(attachmentUri);\n Bitmap thumbnail = createThumbnail(type, in);\n thumbnail = Bitmap.createScaledBitmap(thumbnail, width, height, true);\n FileOutputStream out = new FileOutputStream(file);\n thumbnail.compress(Bitmap.CompressFormat.PNG, 100, out);\n out.close();\n in.close();\n }\n catch (IOException ioe) {\n return null;\n }\n }\n return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);\n }\n else {\n return ParcelFileDescriptor.open(\n new File(getContext().getDatabasePath(accountId + \".db_att\"), id),\n ParcelFileDescriptor.MODE_READ_ONLY);\n }\n }", "void create(Feedback entity);", "@Override\n public AttachmentType addAttachment() {\n \treturn this;\n }", "public Attachment attachment(String owner, String repo, long id, long attachmentId) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId)),\n Attachment.class);\n }", "public UserEmailDao(Configuration configuration) {\n super(UserEmail.USER_EMAIL, com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail.class, configuration);\n }", "public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "public interface BlossomMailAttachment {\n void appendTo(MimeMessageHelper mimeMessageHelper) throws MessagingException;\n}", "public static Foto createEntity(EntityManager em) {\n Foto foto = new Foto()\n .coordenadaa(DEFAULT_COORDENADAA)\n .coordenadae(DEFAULT_COORDENADAE)\n .coordenadan(DEFAULT_COORDENADAN)\n .data(DEFAULT_DATA)\n .descricaoString(DEFAULT_DESCRICAO_STRING)\n .foto(DEFAULT_FOTO)\n .lado(DEFAULT_LADO)\n .link(DEFAULT_LINK)\n .numero(DEFAULT_NUMERO)\n .picasaId(DEFAULT_PICASA_ID)\n .ponto(DEFAULT_PONTO)\n .thumb(DEFAULT_THUMB);\n return foto;\n }", "@POST\n @StatusCreated\n public PhotoAlbumDetailDTO createPhotoAlbum(PhotoAlbumDetailDTO dto) {\n \n return new PhotoAlbumDetailDTO(photoAlbumLogic.createPhotoAlbum(bicyclesId, dto.toEntity()));\n }", "public DocumentItem addAttachment(DocumentItemType type, Date date, String title, String mimeType, String body, String href) {\n final WindowViewer w = Platform.getWindowViewer();\n RenderableDataItem row = w.createRow(5, true);\n\n row.get(0).setValue(type.toString().toLowerCase(Locale.US));\n row.get(1).setValue(title);\n\n RenderableDataItem item = row.get(2);\n\n item.setType(RenderableDataItem.TYPE_DATETIME);\n item.setValue(date);\n row.get(3).setValue(\"false\");\n row.get(4).setValue(href);\n\n DocumentItem di = new DocumentItem(body, mimeType, type);\n\n di.rowData = row;\n\n if (docAttachments == null) {\n docAttachments = new ArrayList<Document.DocumentItem>(5);\n }\n\n docAttachments.add(di);\n return di;\n }", "Motivo create(Motivo motivo);", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "void create(Authority authority) throws ExTrackDAOException;", "public static FileUploads createEntity(EntityManager em) {\n FileUploads fileUploads = new FileUploads()\n .fileName(DEFAULT_FILE_NAME)\n .fileData(DEFAULT_FILE_DATA)\n .fileDataContentType(DEFAULT_FILE_DATA_CONTENT_TYPE);\n // Add required entity\n UserFiles userFiles = UserFilesResourceIntTest.createEntity(em);\n em.persist(userFiles);\n em.flush();\n fileUploads.setUserFiles(userFiles);\n return fileUploads;\n }", "public InternalDestinationEVO create(InternalDestinationEVO evo) throws Exception {\n\t internalDestinationEjb.ejbCreate(evo);\r\n\t InternalDestinationEVO newevo = internalDestinationEjb.getDetails(\"<UseLoadedEVOs>\");\r\n\t InternalDestinationPK pk = newevo.getPK();\r\n\t this.mLocals.put(pk, internalDestinationEjb);\r\n\t return newevo;\r\n }", "public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }", "public MessageDestinationFactory() {\n this.properties = new ConfigMap();\n }", "public interface AttachmentCommunicator {\n void postFileAttachment(Controller controller, Activity activity, String ticket_id, String user_id, FileAttachment fileAttachment, Controller.MethodTypes methodTypes);\n void getFileAttachmentList(Controller controller, Activity activity, String ticket_id, String user_id, Controller.MethodTypes methodTypes);\n void deleteFile(Controller controller, Activity activity, FileAttachment fileAttachment, Controller.MethodTypes methodTypes);\n}", "void setupEmbeddedConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String embeddedConnectionGUID,\n EmbeddedConnectionProperties properties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public AttachmentPart createAttachmentPart(Object content,\n String contentType) {\n\n AttachmentPart attachmentpart = createAttachmentPart();\n\n attachmentpart.setContent(content, contentType);\n\n return attachmentpart;\n }", "@Test\n public void attachmentTest() {\n // TODO: test attachment\n }", "int setAttachment(Attachment attachment) throws NotAuthorizedException;", "@Test\n public void attach_detach() {\n String channelName = \"attach_detach_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* detach */\n channel.detach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.detached);\n assertEquals(\"Verify detached state reached\", channel.state, ChannelState.detached);\n\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "public TaskDefNotificationDao() {\n super(TaskDefNotification.TASK_DEF_NOTIFICATION, cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification.class);\n }", "public ActiveDbAppender( DbAppenderConfiguration appenderConfiguration ) {\n\n super(\"ActiveDbAppender\", null, null, appenderConfiguration);\n\n /**\n * Create dummy event request processor.\n * This processor will be replaced once config from log4j2.xml is loaded\n * */\n eventProcessor = new DbEventRequestProcessor();\n\n // set the layout to the event processor as well\n if (eventProcessor != null) {\n eventProcessor.setLayout(this.getLayout());\n }\n\n }", "public void setOrderDetailDao(OrderDetailDao orderDetailDAO);", "public TelefoneDao() {\n\t\tconnection = SingleConnection.getConnection();\n\t}", "public void create(PraiseDiary bean) {\n\t\tdao.create(bean);\n\t}", "private AttendantDatabase() {}", "@POST\n\t\t\t@Path(\"/post\")\n\t\t\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n\t\t\t@Produces({MediaType.APPLICATION_XML})\n\t\t\tpublic Rows postAttachment(@Context UriInfo uriInfo,@Context HttpHeaders header,@FormParam(\"body\") String xml) {\n\t\t\t\tRows rows = null;\n\t\t\t\tAttachmentDao post;\n\t\t\t\ttry {\n\t\t\t\t\tpost=new AttachmentDao(uriInfo,header);\n\t\t\t\t\tpost.setPostXml(xml.trim());\n\t\t\t\t\tpost.postAttachmentContainer();\n\t\t\t\t\trows=post.getAttachmentRowModified();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (DaoException d) {\n\t\t\t\t\t d.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public BLFacadeImplementation() {\t\t\r\n\t\tSystem.out.println(\"Creating BLFacadeImplementation instance\");\r\n\t\tConfigXML c=ConfigXML.getInstance();\r\n\t\t\r\n\t\tif (c.getDataBaseOpenMode().equals(\"initialize\")) {\r\n\t\t\tDataAccess dbManager=new DataAccess(c.getDataBaseOpenMode().equals(\"initialize\"));\r\n\t\t\tdbManager.initializeDB();\r\n\t\t\tdbManager.close();\r\n\t\t\t}\r\n\t\t\r\n\t}", "@Inject\n public DamageTableDaoDbImpl(SQLiteOpenHelper helper) {\n super(helper);\n }", "public ETLLogDAOImpl(Properties properties) {\r\n this(new Configuration().addProperties(properties));\r\n }" ]
[ "0.68570477", "0.6124613", "0.56988984", "0.55398905", "0.54471564", "0.5437932", "0.54146874", "0.54061496", "0.52877665", "0.52686715", "0.5203791", "0.51507163", "0.51394904", "0.51302475", "0.5077872", "0.5022418", "0.497163", "0.49373898", "0.49126464", "0.49107987", "0.49084106", "0.4852723", "0.48472416", "0.4811571", "0.4791474", "0.47901413", "0.47800776", "0.47561944", "0.47471517", "0.474542", "0.47272402", "0.47219878", "0.46994522", "0.46807665", "0.4660325", "0.46585712", "0.46565259", "0.46544176", "0.46461868", "0.46378967", "0.46308184", "0.46227312", "0.46165976", "0.46133772", "0.46004173", "0.46001846", "0.45978117", "0.45909628", "0.45871317", "0.45847067", "0.45770997", "0.45726553", "0.45722395", "0.4571669", "0.45488524", "0.45488256", "0.45442626", "0.45434257", "0.4529618", "0.45088443", "0.45083508", "0.45057112", "0.4503366", "0.45032543", "0.450257", "0.44918236", "0.4486432", "0.44749263", "0.44696182", "0.4461423", "0.4453298", "0.44507316", "0.44497487", "0.44438285", "0.4443667", "0.4443354", "0.44379732", "0.44377884", "0.4434103", "0.4433991", "0.44253606", "0.4418457", "0.44132894", "0.4413172", "0.4412749", "0.4407498", "0.43955362", "0.43937266", "0.4390046", "0.43867052", "0.4386543", "0.43836215", "0.4377293", "0.43749005", "0.43721738", "0.4372083", "0.43621987", "0.43599302", "0.43554005", "0.43546948" ]
0.69823164
0
Fetch records that have id_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchById_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Produto> findByIdIn(Integer... ids);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}", "long countByIdInAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids);", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "Condition in(QueryParameter parameter, Object... values);", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "List<String> findAllIds();", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public List getAllIds();", "List<T> findAllById(List<Object> ids) throws Exception;", "@Query(\"SELECT e.stations FROM EmployeeEntity e where e.id in :employeeId\")\n List<StationEntity> getStationsOfEmployee(@Param(\"employeeId\") long employeeId);", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "private boolean isIdInCollectionOfSingleIDVOs (int id, Collection vos)\n\t{\n\t\tboolean found = false;\n\t\t\n\t\tfor (Iterator i = vos.iterator(); !found && i.hasNext(); ) {\n\t\t\tSingleIdVO sivo = (SingleIdVO) i.next();\n\t\t\tfound = (sivo.getId() == id);\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "Collection<?> idValues();", "java.util.List<java.lang.Long> getIdsList();", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public BeanIdList findIds() throws SQLException {\n/* 154 */ boolean useBackgroundToContinueFetch = false;\n/* */ \n/* 156 */ this.startNano = System.nanoTime();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 162 */ List<Object> idList = this.query.getIdList();\n/* 163 */ if (idList == null) {\n/* */ \n/* 165 */ idList = Collections.synchronizedList(new ArrayList());\n/* 166 */ this.query.setIdList(idList);\n/* */ } \n/* */ \n/* 169 */ BeanIdList result = new BeanIdList(idList);\n/* */ \n/* 171 */ SpiTransaction t = this.request.getTransaction();\n/* 172 */ Connection conn = t.getInternalConnection();\n/* 173 */ this.pstmt = conn.prepareStatement(this.sql);\n/* */ \n/* 175 */ if (this.query.getBufferFetchSizeHint() > 0) {\n/* 176 */ this.pstmt.setFetchSize(this.query.getBufferFetchSizeHint());\n/* */ }\n/* */ \n/* 179 */ if (this.query.getTimeout() > 0) {\n/* 180 */ this.pstmt.setQueryTimeout(this.query.getTimeout());\n/* */ }\n/* */ \n/* 183 */ this.bindLog = this.predicates.bind(new DataBind(this.pstmt));\n/* */ \n/* 185 */ ResultSet rset = this.pstmt.executeQuery();\n/* 186 */ this.dataReader = new RsetDataReader(rset);\n/* */ \n/* 188 */ boolean hitMaxRows = false;\n/* 189 */ boolean hasMoreRows = false;\n/* 190 */ this.rowCount = 0;\n/* */ \n/* 192 */ DbReadContext ctx = new DbContext();\n/* */ \n/* 194 */ while (rset.next()) {\n/* 195 */ Object idValue = this.desc.getIdBinder().read(ctx);\n/* 196 */ idList.add(idValue);\n/* */ \n/* 198 */ this.dataReader.resetColumnPosition();\n/* 199 */ this.rowCount++;\n/* */ \n/* 201 */ if (this.maxRows > 0 && this.rowCount == this.maxRows) {\n/* 202 */ hitMaxRows = true;\n/* 203 */ hasMoreRows = rset.next();\n/* */ break;\n/* */ } \n/* 206 */ if (this.bgFetchAfter > 0 && this.rowCount >= this.bgFetchAfter) {\n/* 207 */ useBackgroundToContinueFetch = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 212 */ if (hitMaxRows) {\n/* 213 */ result.setHasMore(hasMoreRows);\n/* */ }\n/* */ \n/* 216 */ if (useBackgroundToContinueFetch) {\n/* */ \n/* */ \n/* 219 */ this.request.setBackgroundFetching();\n/* */ \n/* */ \n/* 222 */ BackgroundIdFetch bgFetch = new BackgroundIdFetch(t, rset, this.pstmt, ctx, this.desc, result);\n/* 223 */ FutureTask<Integer> future = new FutureTask<Integer>(bgFetch);\n/* 224 */ this.backgroundExecutor.execute(future);\n/* */ \n/* */ \n/* 227 */ result.setBackgroundFetch(future);\n/* */ } \n/* */ \n/* 230 */ long exeNano = System.nanoTime() - this.startNano;\n/* 231 */ this.executionTimeMicros = (int)exeNano / 1000;\n/* */ \n/* 233 */ return result;\n/* */ } finally {\n/* */ \n/* 236 */ if (!useBackgroundToContinueFetch)\n/* */ {\n/* */ \n/* 239 */ close();\n/* */ }\n/* */ } \n/* */ }", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "public UsState[] findWhereIdEquals(int id) throws UsStateDaoException;", "@Query(\"{ 'id': {$in: ?0} }\")\r\n\tpublic Page<Answer> findAll(List<ObjectId> ids, Pageable pageable);", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "Set<II> getIds();", "public Items[] findWhereIdEquals(int id) throws ItemsDaoException;", "List<Team> findByIds(List<Long> teamIds);", "@Override\n\tpublic <T extends BasePojo> List<T> queryByIds(String ids) {\n\t\treturn null;\n\t}", "protected abstract List performQuery(String[] ids);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public static void assertContainsIds(Bundle bundle, String... ids) throws FHIRPathException {\n FHIRPathEvaluator evaluator = FHIRPathEvaluator.evaluator();\n EvaluationContext evaluationContext = new EvaluationContext(bundle);\n Collection<FHIRPathNode> tmpResults = evaluator.evaluate(evaluationContext, EXPRESSION_BUNDLE_IDS);\n Collection<String> listOfIds = tmpResults.stream().map(x -> x.toString()).collect(Collectors.toList());\n for (String id : ids) {\n assertTrue(listOfIds.contains(id));\n }\n }", "public interface DemoRepositoryCustom {\n\n List<Demo> findInSet(Collection<Long> ids);\n}", "private List<Integer> filterDocIds(FilterQueryTree filterQueryTree, List<Integer> inputDocIds) {\n if (filterQueryTree == null) {\n List<Integer> allDocs = new ArrayList<>(_totalDocs);\n for (int i = 0; i < _totalDocs; ++i) {\n allDocs.add(i);\n }\n return allDocs;\n }\n\n final List<FilterQueryTree> childFilters = filterQueryTree.getChildren();\n final boolean isLeaf = (childFilters == null) || childFilters.isEmpty();\n\n if (isLeaf) {\n FilterOperator filterType = filterQueryTree.getOperator();\n String column = filterQueryTree.getColumn();\n final List<String> value = filterQueryTree.getValue();\n return getMatchingDocIds(inputDocIds, filterType, column, value);\n }\n\n List<Integer> result = filterDocIds(childFilters.get(0), inputDocIds);\n final FilterOperator operator = filterQueryTree.getOperator();\n for (int i = 1; i < childFilters.size(); ++i) {\n// List<Integer> childResult = operator.equals(FilterOperator.AND) ? filterDocIds(childFilters.get(i), result)\n// : filterDocIds(childFilters.get(i), inputDocIds);\n List<Integer> childResult = filterDocIds(childFilters.get(i), inputDocIds);\n result = combine(result, childResult, operator);\n }\n return result;\n }", "private static boolean checkForMultipleIDs(String id)\n\t{\n\t\tif (id.indexOf(',') >= 0)\n\t\t{\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\treturn true; \n\t}", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "public interface QuestionRepository extends CrudRepository<QuestionEntity,Long> {\n\n @Query(\"select count(id) from QuestionEntity where id in :questionIds\")\n Long validateQuestionNumbers(@Param(\"questionIds\") List<Long>questionIds);\n}", "private boolean contains(Collection<Long> bundleIds, Long bundleId) {\n for (Long id : bundleIds) {\n if (id.longValue() == bundleId.longValue()) {\n return true;\n }\n }\n return false;\n }", "List<MemberAdvisoryComment> selectByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NetraNominationRepository extends NominationRepository{\n\n\n\n @Query(\"select nominations from Nomination nominations where nominations.contract.id in :contractIdList\")\n List<Nomination> findAllNomsByContractIdList(@Param(\"contractIdList\") List<Long> contractIdList);\n\n}", "@Test\n public void testNamedParamWithImmediateValue() {\n List<Long> ids = Arrays.asList(10L, 5L);\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1, ids);\n\n validate(\" from Person hobj1 where hobj1.id in (:np1)\", ids);\n }", "List<T> getEntitiesByIds(List<ID_TYPE> ids) throws NotImplementedException;", "private boolean isInList(int id){\n for (Module module :event.getModules()){\n if(module.getInt_type() == id+1){\n return true;\n }\n }\n return false;\n }", "@Query(\"SELECT * FROM user_table WHERE id IN (:climberIds)\")\n LiveData<List<Climber>> loadAllByIds(int[] climberIds);", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "public static boolean in(Integer integer, Integer... integers) {\n\treturn null != integers && null != integer && Arrays.asList(integers).contains(integer);\n }", "java.util.List<java.lang.Integer> getOtherIdsList();", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "List<E> findAll(Iterable<ID> identifiers);", "List<UserInfo> getUserListByIdLists(List<Integer> idList);", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids);", "private Map<CollectionCacheableTestId, CollectionCacheableTestValue> findByIdsInternal(Collection<CollectionCacheableTestId> ids) {\n Map<CollectionCacheableTestId, CollectionCacheableTestValue> result = new HashMap<>();\n for (CollectionCacheableTestId id : ids) {\n CollectionCacheableTestValue value = myDbRepository.findById(id);\n // do not explicitly put null values into map\n if (value != null) {\n result.put(id, value);\n }\n }\n return result;\n }", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value=\"SELECT s FROM Shelf s, IN(s.book) b WHERE b.id = ?1\", nativeQuery=false\n )\n Optional<Shelf> findShelfByBookId(Integer bookId);", "List findByFilterText(Set<String> words, boolean justIds);", "private boolean in(Integer e, ArrayList<Integer> l) {\n for (int i=0; i<l.size();i++) {\n if (l.get(i) == e) {\n return true;\n }\n }\n return false;\n }", "boolean hasFromId();", "static private boolean isArray(Object[] ids) \n { \n boolean result = true; \n for (Object id : ids) \n { \n if (id instanceof Integer == false) \n { \n result = false; \n break; \n } \n } \n return result; \n }", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "List<Long> getAuthorisedList( Long id) ;", "List<FecetDocExpediente> findWhereIdPropuestaEquals(BigDecimal idPropuesta);", "List<Godown> findByCompanyCodeAndIsLogFalseAndIdNotIn(@Param(\"companyCode\") int companyCode, @Param(\"id\") List<BigInteger> id);", "Collection<T> findAll(Iterable<I> ids);", "public Cliente[] findWhereIdEstatusEquals(int idEstatus) throws ClienteDaoException;", "public abstract List<CustomerOrder> findAll(Iterable<Long> ids);", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "public ArrayList<ArrayList<Integer>> selectForQuoiEntre(int id) throws DAOException;", "public Long[] getQueryIDs(){\n\t\treturn DataStructureUtils.toArray(ids_ranks.keySet(), Long.class);\n\t}", "@Query(\"select l from Location l where idLocation not in (select location.idLocation from LocationStore lo)\")\n List<Location> findAvailableLocation();", "public List<Short> searchIdsInRange(long fromValue, long toValue, boolean fromInclusive,\n boolean toInclusive) {\n\n List<Short> list = new ArrayList<Short>();\n searchIdsInRange(root, fromValue, toValue, fromInclusive, toInclusive, list);\n return list;\n }", "@Repository\npublic interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "public List<models.garaDB.tables.pojos.Ride> fetchByMemberid(Integer... values) {\n return fetch(Ride.RIDE.MEMBERID, values);\n }", "public String createWhereIN(int iterations) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" IN (\");\n for (int ndx = 0; ndx < iterations; ndx++) {\n sb.append(\"?,\");\n }\n sb.deleteCharAt(sb.length() - 1); // remove last comma.\n sb.append(\")\");\n return sb.toString();\n }", "List<RoleMenu> queryByRoleIds(Set<String> _roleIds);", "public void getUsersList(List<Long> ids, AsyncHttpResponseHandler handler) {\n if (ids == null) {\n return;\n }\n\n String apiUrl = getApiUrl(\"users/lookup.json\");\n RequestParams params = new RequestParams();\n\n String strIds = android.text.TextUtils.join(\",\", ids);\n params.put(\"user_id\", strIds);\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "private ArrayList<String> obtenerIds(ArrayList<String> values){\n\t\tArrayList<String> ids = new ArrayList<>();\n\t\tfor(String valor : values){\n\t\t\tids.add(postresId.get(valor));\n\t\t}\n\t\treturn ids;\n\t}", "public ArrayList<Course> findCoursesById(String id) {\n ArrayList<Course> coursesById = new ArrayList<>(); \r\n for(int i=0; i < courses.size(); i++) {\r\n if (courses.get(i).getId().contains(id)) \r\n coursesById.add(courses.get(i));\r\n } \r\n return coursesById;\r\n }", "@Override\n public List<FecetProrrogaOrden> findWhereIdOrdenEquals(BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" WHERE ID_ORDEN = ? ORDER BY ID_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(), idOrden);\n\n }", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "long findValues(List<Object> values, List<Column> columns);", "boolean contains(int value);", "boolean contains(int value);", "private List<Long> getListOfAuthorizedById(\n List<Long> ids,\n String username,\n ResponseToFailedAuthorization failureResponse,\n AccessLevel accessLevel,\n Session session,\n String securedIdsQuery,\n String openAndSecuredIdsQuery,\n String securedParamListName,\n String openParamListName,\n String returnVarName\n ) throws Exception {\n\n ids = uniquifyIds(ids);\n\n String queryStr;\n if ( accessLevel == AccessLevel.View ) {\n queryStr = openAndSecuredIdsQuery.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );\n }\n else {\n queryStr = securedIdsQuery.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );\n }\n NativeQuery query = session.createNativeQuery( queryStr );\n query.addScalar( returnVarName, StandardBasicTypes.STRING );\n if ( accessLevel == AccessLevel.View ) {\n query.setParameterList( openParamListName, ids );\n }\n query.setParameterList( securedParamListName, ids );\n String queryUsername = username == null ? UNLOGGED_IN_USER : username;\n query.setParameter( USERNAME_PARAM, queryUsername );\n\n logger.debug(query.getQueryString());\n List<Long> rtnVal = query.list();\n if ( failureResponse == ResponseToFailedAuthorization.ThrowException &&\n rtnVal.size() < ids.size() ) {\n String idStr = joinIdList( ids );\n String message = makeUserReadableMessage( username, idStr );\n logger.error( message );\n throw new ForbiddenResourceException( message );\n }\n\n return rtnVal;\n }", "Collect selectByPrimaryKey(Integer id);", "@GET\n @Path(\"/search/{ids}\")\n @Produces(\"application/json;charset=UTF-8\")\n @GZIP\n @NoCache\n public List<SourceVo> searchSourcesById(\n @PathParam(\"ids\") String ids) {\n\n Set<Integer> idSet = Arrays.stream(ids.split(\",\"))\n .map(Integer::valueOf)\n .collect(Collectors.toSet());\n\n return sourceService.findByIds(idSet).stream()\n .map(p -> p.toVo(DataFilter.get()))\n .collect(Collectors.toList());\n }", "boolean contains(int val);", "public List<RoleItemDetail> findRoleItemsByRoleIds(List id) {\n\t\tList<RoleItemDetail> list = null;\n\n\t\ttry {\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\tmap.put(\"ids\", id);\n\t\t\tlist = sqlMapperFlight.queryForList(\"findRoleItemsByIds\", map);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn list;\n\t}", "public Future<List<io.remicro.saga.entities.tables.pojos.Person>> findManyByUserId(List<String> values) {\n return findManyByCondition(Person.PERSON.USER_ID.in(values));\n }", "public abstract Page<CustomerInfo> findAllByIdsIn(List<Long> ids, GlobalSearch globalSearch, Pageable pageable);", "@Override\n public List<T> findAllById(Iterable<Integer> ids) {\n List<T> entities = new ArrayList<>();\n for (int id : ids) {\n entities\n .add(findById(id).orElseThrow(() -> new EntityNotFoundException(\"ID Not found:\" + id)));\n }\n return entities;\n }", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "protected List<Integer> filterIndexes(String columnId) {\n List<Integer> result = new ArrayList<Integer>();\n List<Interval> selected = columnSelectionMap.get(columnId);\n if (selected == null) return result;\n\n for (Interval interval : selected) {\n result.add(interval.getIndex());\n }\n return result;\n }", "List<ProductInfoOutput> findList(List<String> productIdList);", "<T> List<T> findByIds(String typeName, Class<T> clazz, String... ids);", "List<Authority> findByNameIn(List<AuthorityName> names);" ]
[ "0.58662325", "0.5810234", "0.58083963", "0.57870597", "0.57788134", "0.5769095", "0.57598215", "0.5743116", "0.56512684", "0.56425244", "0.5625833", "0.5606511", "0.5604198", "0.5464839", "0.54632276", "0.5457428", "0.54458475", "0.54453105", "0.5426851", "0.5383132", "0.5362905", "0.5362708", "0.5361303", "0.53547657", "0.5335453", "0.5272899", "0.52476335", "0.5243217", "0.52244455", "0.52226996", "0.5207721", "0.5206765", "0.52015084", "0.5199711", "0.51544166", "0.515409", "0.5143762", "0.51400787", "0.5109103", "0.5102544", "0.5090782", "0.50728947", "0.5044722", "0.5044154", "0.5030014", "0.49989587", "0.49980506", "0.49930733", "0.49824283", "0.4965391", "0.4952802", "0.49339023", "0.4930122", "0.49238545", "0.49013603", "0.49000517", "0.48913243", "0.48818985", "0.48721403", "0.4871125", "0.4869487", "0.4857061", "0.48563904", "0.48562837", "0.48472476", "0.48471865", "0.484185", "0.48399487", "0.48361263", "0.48177874", "0.4798199", "0.47977993", "0.479642", "0.47918382", "0.47878653", "0.4765256", "0.4758182", "0.4748177", "0.4743337", "0.47396463", "0.47396165", "0.47378597", "0.47334975", "0.47326356", "0.47280785", "0.47233212", "0.470649", "0.470649", "0.46988", "0.46932393", "0.46864432", "0.46824816", "0.4671151", "0.46681312", "0.46562743", "0.4655239", "0.46499762", "0.46385399", "0.46287665", "0.46251726", "0.46177524" ]
0.0
-1
Fetch a unique record that has id_ = value
public cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment fetchOneById_(String value) { return fetchOne(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RecordLike selectByPrimaryKey(String id);", "Abum selectByPrimaryKey(String id);", "PrhFree selectByPrimaryKey(Integer id);", "public o selectById(long id);", "Yqbd selectByPrimaryKey(Integer id);", "Caiwu selectByPrimaryKey(Integer id);", "Dormitory selectByPrimaryKey(Integer id);", "ExtraQuery id(Object value);", "Shareholder selectByPrimaryKey(Integer id);", "IceApp selectByPrimaryKey(Long id);", "public abstract T byId(ID id);", "Procdef selectByPrimaryKey(String id);", "SysId selectByPrimaryKey(String id);", "TCpySpouse selectByPrimaryKey(Integer id);", "DataSync selectByPrimaryKey(Integer id);", "AccuseInfo selectByPrimaryKey(Integer id);", "Collect selectByPrimaryKey(Integer id);", "Disease selectByPrimaryKey(Integer id);", "AccessModelEntity selectByPrimaryKey(String id);", "Clazz selectByPrimaryKey(Integer id);", "HuoDong selectByPrimaryKey(Integer id);", "OrgMemberRecord selectByPrimaryKey(String id);", "T get(PK id);", "Model selectByPrimaryKey(Integer id);", "HpItemParamItem selectByPrimaryKey(Long id);", "public Data findById(Object id);", "Owner selectByPrimaryKey(String id);", "@Override\n public JurUrl selectByPrimaryKey(Integer id) {\n return jurUrlMapper.selectByPrimaryKey(id);\n }", "Thing selectByPrimaryKey(String thingid);", "SupplyNeed selectByPrimaryKey(Integer id);", "Notice selectByPrimaryKey(Integer id);", "public T selectById(int id) {\n Logger logger = getLogger();\n T object = null;\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getSelectById())) {\n\n preparedStatement.setInt(1, id);\n logger.info(\"Executing statement: \" + preparedStatement);\n ResultSet rs = preparedStatement.executeQuery();\n\n while (rs.next()) {\n object = setObjectParams(rs);\n setObjectId(rs, object);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Select by id: success\");\n return object;\n }", "NjOrderWork2 selectByPrimaryKey(String id);", "Prueba selectByPrimaryKey(Integer id);", "Promo selectByPrimaryKey(Integer id);", "T getById(PK id);", "T queryForId(ID id) throws SQLException, DaoException;", "SwipersDO selectByPrimaryKey(Integer id);", "EtpBase selectByPrimaryKey(String id);", "NjProductTaticsRelation selectByPrimaryKey(String id);", "Tourst selectByPrimaryKey(String id);", "CptDataStore selectByPrimaryKey(String id);", "TempletLink selectByPrimaryKey(String id);", "Dish selectByPrimaryKey(String id);", "Ltsprojectpo selectByPrimaryKey(Long id);", "V get(UniqueId uniqueId);", "User selectByPrimaryKey(String id);", "Account selectByPrimaryKey(String id);", "Factory selectByPrimaryKey(Long id);", "BaseReturn selectByPrimaryKey(String guid);", "TRepairs selectByPrimaryKey(Integer id);", "Mallscroerule selectByPrimaryKey(Long id);", "D getById(K id);", "CraftAdvReq selectByPrimaryKey(Integer id);", "Book selectByPrimaryKey(String id);", "PaasCustomAutomationRecord selectByPrimaryKey(Integer id);", "public org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698 fetchOneById(java.lang.Integer value) {\n\t\treturn fetchOne(org.jooq.test.jdbc.generatedclasses.tables.T_2698.ID, value);\n\t}", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "PageFunc selectByPrimaryKey(Integer id);", "public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Product selectByPrimaryKey(Long id);", "SysCode selectByPrimaryKey(String id);", "Dress selectByPrimaryKey(Integer did);", "Report selectByPrimaryKey(Integer id);", "TDwBzzxBzflb selectByPrimaryKey(String objId);", "FileRecordAdmin selectByPrimaryKey(String id);", "mailIdentify selectByPrimaryKey(Integer id);", "LoginRecordDO selectByPrimaryKey(Long id);", "Appraise selectByPrimaryKey(Integer id);", "Powers selectByPrimaryKey(Integer id);", "CommunityInform selectByPrimaryKey(String id);", "Product selectByPrimaryKey(Integer id);", "Subject selectByPrimaryKey(Integer id);", "QuestionOne selectByPrimaryKey(Integer id);", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "ItoProduct selectByPrimaryKey(Integer id);", "E getById(long id);", "Device selectByPrimaryKey(Integer id);", "public Profesor selectByPrimaryKey(Integer id) {\n Profesor key = new Profesor();\n key.setId(id);\n Profesor record = (Profesor) getSqlMapClientTemplate().queryForObject(\"tbl_profesor.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "FetchRequest<Customer> byId(String id);", "Register selectByPrimaryKey(Integer id);", "Storage selectByPrimaryKey(Integer recordId);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "T findById(ID id) ;", "Member selectByPrimaryKey(Long id);", "@Override\n public BorrowDO selectByPrimaryKey(Long id){\n return borrowExtMapper.selectByPrimaryKey(id);\n }", "T get(Integer id);", "WechatDemo selectByPrimaryKey(Long id);", "Sequipment selectByPrimaryKey(Integer id);", "ProSchoolWare selectByPrimaryKey(String id);", "User selectByPrimaryKey(Long id);", "CartDO selectByPrimaryKey(Integer id);", "String getExistingId();", "Object getId();", "LuckyBag selectByPrimaryKey(Integer id);", "public T from_id(int id) {\n\t\ttry {\n\t\t\treturn first(id_name(), new Integer(id));\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "HomeWork selectByPrimaryKey(Long id);" ]
[ "0.6981539", "0.67056054", "0.66914046", "0.6658543", "0.6648931", "0.661224", "0.6600517", "0.6586981", "0.65345067", "0.6533823", "0.65305287", "0.6522564", "0.6409673", "0.63900495", "0.63728046", "0.637189", "0.63705975", "0.63635194", "0.6357094", "0.6356804", "0.6351056", "0.6346755", "0.6288508", "0.6281172", "0.62722445", "0.6268446", "0.62501335", "0.623718", "0.6233162", "0.6232176", "0.62214065", "0.6204432", "0.6203585", "0.6200172", "0.61948144", "0.618", "0.6179932", "0.617304", "0.6169625", "0.61693096", "0.61674136", "0.6149664", "0.6143144", "0.612754", "0.61253357", "0.61250955", "0.6123235", "0.612204", "0.6120283", "0.6108151", "0.60960406", "0.60957897", "0.6094469", "0.6082202", "0.6081352", "0.6081049", "0.60776436", "0.60741925", "0.6071115", "0.6068674", "0.60622066", "0.6058832", "0.60565764", "0.60497165", "0.60414463", "0.60352886", "0.6024117", "0.60180724", "0.601148", "0.6001024", "0.5999262", "0.59989583", "0.5989876", "0.59855294", "0.5984395", "0.59690374", "0.59652257", "0.59650093", "0.5962355", "0.5961575", "0.5960479", "0.5956308", "0.59557605", "0.59557605", "0.59557605", "0.59557605", "0.59557605", "0.5953528", "0.59489596", "0.59478945", "0.5945875", "0.5943688", "0.593908", "0.5937464", "0.593481", "0.5931827", "0.59293896", "0.59246844", "0.592365", "0.59167653", "0.59115666" ]
0.0
-1
Fetch records that have rev_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByRev_(Integer... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.REV_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByRecVersion(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.REC_VERSION, values);\n\t}", "public String createWhereIN(int iterations) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" IN (\");\n for (int ndx = 0; ndx < iterations; ndx++) {\n sb.append(\"?,\");\n }\n sb.deleteCharAt(sb.length() - 1); // remove last comma.\n sb.append(\")\");\n return sb.toString();\n }", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND accept=1)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersAcceptPaper(int paper_id);", "public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByPublishedIn(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.PUBLISHED_IN, values);\n\t}", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "List<Address> findByStateIn(List<String> stateList);", "Iterable<Part> findAllByStatusTrueAndByArchivedTrue();", "public PaypalIpn[] findWhereValsEquals(String vals) throws PaypalIpnDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE vals = ? ORDER BY vals\", new Object[] { vals } );\r\n\t}", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND accept=0 AND reject=0)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersUnDecided(int paper_id);", "public UsState[] findWhereStateEquals(String state) throws UsStateDaoException;", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "@Override\n public List<StorePickStatus> queryByList(QueryParam params) {\n return getSqlSession().getMapper(StorePickStatusDao.class).queryByList(params);\n }", "public List<String> revList(RevSort[] sortings, String fromRev, String toRev, Date fromDate, Date toDate, int maxLines) \n \tthrows IOException {\n \t\tList<String> revisions = new ArrayList<String>();\n \t\tList<RevCommit> revs = getRevCommits(sortings, fromRev, toRev, fromDate, toDate, maxLines);\n \n \t\tfor (RevCommit c : revs) {\n \t\t\trevisions.add(c.getId().name());\n \t\t}\n \t\treturn revisions;\n \t}", "public List<Object> queryByWhere(String col_name, String dto, List<List<Triple>> filter, List<String> keys) {\n\t\tList<Object> res = new ArrayList<Object>();\n\t\tDBCollection dbc = db.getCollection(col_name);\n\t\t// filter\n\t\tBasicDBObject all_ref = new BasicDBObject();\n\t\tDBObject _keys = new BasicDBObject();\n\t\t\n\t\tif(keys != null)\n\t\t\tfor(String key : keys) \n\t\t\t\t_keys.put(key, true);\n\t\t\n\t\tBasicDBList list = new BasicDBList();\n\t\tfor(List<Triple> and : filter) {\n\t\t\tBasicDBObject ref = new BasicDBObject();\n\t\t\tfor(Triple tri : and) {\n\t\t\t\tif(!ref.containsField(tri.key_name)) {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) \n\t\t\t\t\t\tref.put(tri.key_name, tri.value);\n\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tref.put(tri.key_name, new BasicDBObject(tri.condition, tri.value));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) {\n\t\t\t\t\t\t// TODO It is impossible\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tBasicDBObject bo = (BasicDBObject)ref.get(tri.key_name);\n\t\t\t\t\t\tbo.append(tri.condition, tri.value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} // end an \"and\" query\n\t\t\tlist.add(ref);\n\t\t}\n\t\t\n\t\tall_ref.put(\"$or\", list);\n\t\t\n\t\ttry {\n\t DBCursor cur = dbc.find(all_ref, _keys);\n\t \twhile (cur.hasNext()) {\n\t \t\tDBObject doc = cur.next();\n\t \t\ttry {\n\t \t\t\tres.add(Util.deserialize(doc, dto));\n\t \t\t} catch(InvocationTargetException ite) {\n\t \t\t\tite.printStackTrace();\n\t \t\t} \t\t\n\t \t\t//System.out.println(doc);\n\t }\n\n\t\t} catch(ClassNotFoundException cnfe) {\n \tcnfe.printStackTrace();\n } catch(InstantiationException ie) {\n \tie.printStackTrace();\n } catch(IllegalAccessException iae) {\n \tiae.printStackTrace();\n }\n\n \treturn res;\n\t}", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND reject=1)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersRejectPaper(int paper_id);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "long findValues(List<Object> values, List<Column> columns);", "public Iterable<Order> getOrdersByCheckInOrStatus(Business business, Key<CheckIn> checkInKey, String status) {\n\t\t//Return empty list if we have no checkin\n\t\tif(checkInKey == null)\n\t\t\treturn new ArrayList<Order>();\n\t\tQuery<Order> query = orderRepo.query().ancestor(business).filter(\"checkIn\", checkInKey); \n\t\t\n\t\tif(status != null && !status.isEmpty()) {\n\t\t\t// Filter by status if set.\n\t\t\tquery = query.filter(\"status\", status.toUpperCase());\n\t\t}\n\t\telse {\n\t\t\t// Only retrieve placed or retrieved orders.\n\t\t\tquery.filter(\"status in\", EnumSet.of(OrderStatus.PLACED, OrderStatus.RECEIVED));\n\t\t}\n\t\t\n\t\treturn query;\n\t}", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}", "@Query(value=\"SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))\", nativeQuery = true)\n Page<User> findAuthors(@Param(\"status\") int status, Pageable pageable);", "Set<URI> getInverses(int columnIndex);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public List<Integer> getInactiveSubIdsForNoRebill();", "List<Authority> findByNameIn(List<AuthorityName> names);", "public static void findByOR() {\n\t\tFindIterable<Document> findIterable = collection.find(or(eq(\"status\", \"A\"), lt(\"qty\", 30)));\r\n\t\tprint(findIterable);\r\n\t}", "private String idsConstrain(ArrayList <String> uids){\n String query = \"\";\n if(uids.size() > 0){\n query = \" ( \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(0).replace(\"PMC\", \"\") \n + \"[UID] \";\n\n for(int i = 1; i < uids.size() ; i++){\n query += \"OR \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(i).replace(\"PMC\", \"\") \n + \"[UID] \";\n }\n query += \") \"; \n }\n return query; \n }", "List<E> list(String field, String contains);", "public List<QueryVersionDTO> queryAllVersions(AppUserDetails user, String query, String branch, String config,\n\t String providedManifest) {\n\t\t// TODO impl\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean hasNext() {\n\t\tthis.res = new Row();\n\t\ttry{\n\t\t\twhile(index < dataCopy.size()){\n\t\t\t\tdata2 = dataCopy.get(index++);\t\t\t\t\t\t\t\n\t\t\t\tif(whereExp != null && !eval1.eval(whereExp).toBool()) continue;\t\n\t\t\t\t\n\t\t\t\tTableContainer.orderByData.add(new Row());\n\t\t\t\tfor(PrimitiveValue v : data2.rowList)\n\t\t\t\t\tTableContainer.orderByData.get(count).rowList.add(v);\t\n\t\t\t\tcount++;\n\t\t\t\n\t\t\t\t/*if the query is SELECT * FROM R*/\n\t\t\t\tif(flag2){\n\t\t\t\t\tres = data2;\n\t\t\t\t}else{\n\t\t\t\t\t/*if it is the regular query*/\n\t\t\t\t\tfor (int i = 0; i < itemLen; i++) res.rowList.add(eval1.eval((selectItemsExpression.get(i))));\n\t\t\t\t}\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public static void findByAND_OR() {\n\t\tFindIterable<Document> findIterable = collection.find(\r\n\t\t and(eq(\"status\", \"A\"),\r\n\t\t or(lt(\"qty\", 30), regex(\"item\", \"^p\")))\r\n\t\t);\r\n\t\tprint(findIterable);\r\n\t}", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}", "public List<ViewXwZqkh> Query(String filters, String orders, Object... values);", "public Cliente[] findWhereExtensionEquals(String extension) throws ClienteDaoException;", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByActive(Collection<Boolean> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.ACTIVE.in(values));\n }", "@Query(\"select r from Record r where r.finalMode = true\")\r\n\tpublic Collection<Record> findRecordsFinalModeTrue();", "public java.util.List<Todo> filterFindByG_S(long groupId, int[] statuses);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByApprovedBy(Collection<String> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.APPROVED_BY.in(values));\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "@Query(value = \"SELECT u FROM Car u WHERE u.automatic IN :automatics\")\n\tList<Car> findIsAutomatic(@Param(\"automatics\") boolean automatic);", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByActive(Collection<Boolean> values, int limit) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.ACTIVE.in(values),limit);\n }", "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"names\") Collection<String> brandName);", "public Set<Version> versionsIn(CloudName cloud) {\n return versions.keySet().stream()\n .filter(osVersion -> osVersion.cloud().equals(cloud))\n .map(OsVersion::version)\n .collect(Collectors.toUnmodifiableSet());\n }", "List<ConsentRevocationTermsVersions> findAllByVersionDisabledOrderByAddedDateTimeDesc(Boolean disabled);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public static void findByAND() {\n\t\tFindIterable<Document> findIterable = collection.find(and(eq(\"status\", \"A\"), lt(\"qty\", 30)));\r\n\t\tprint(findIterable);\r\n\t}", "boolean filter(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "private Criteria buildCriteria(Map<String, ?> fieldValues) {\r\n Criteria criteria = new Criteria();\r\n for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();\r\n\r\n String key = e.getKey();\r\n Object value = e.getValue();\r\n if (value instanceof Collection) {\r\n criteria.addIn(key, (Collection) value);\r\n } else {\r\n criteria.addEqualTo(key, value);\r\n }\r\n }\r\n\r\n return criteria;\r\n }", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public static List<Revision> fromRepositoryExpression(\n RepositoryExpression repoEx, ProjectContext context) {\n Repository repo = context.repositories.get(repoEx.getRepositoryName());\n if (repo == null) {\n throw new MoeProblem(\"No repository \" + repoEx.getRepositoryName());\n }\n if (Strings.isNullOrEmpty(repoEx.getOption(\"revision\"))) {\n throw new MoeProblem(\n \"Repository expression must have a 'revision' option, e.g. internal(revision=3,4,5).\");\n }\n\n RevisionHistory rh = repo.revisionHistory;\n ImmutableList.Builder<Revision> revBuilder = ImmutableList.builder();\n for (String revId : repoEx.getOption(\"revision\").split(\",\")) {\n revBuilder.add(rh.findHighestRevision(revId));\n }\n return revBuilder.build();\n }", "public OpenERPRecordSet subset(HashMap<String, Object> keyvalues) {\r\n\t\tOpenERPRecordSet r = new OpenERPRecordSet();\r\n\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\r\n\t\t\tboolean acceptedRecord = true;\r\n\r\n\t\t\tIterator<String> keys = keyvalues.keySet().iterator();\r\n\t\t\twhile (keys.hasNext()) {\r\n\t\t\t\tString key = keys.next();\r\n\t\t\t\tObject value = keyvalues.get(key);\r\n\r\n\t\t\t\tif (!n.containsKey(key)) {\r\n\t\t\t\t\tacceptedRecord = false;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif ((n.get(key) == null) && (value != null)) {\r\n\t\t\t\t\tacceptedRecord = false;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (!(n.get(key).equals(value))) {\r\n\t\t\t\t\tacceptedRecord = false;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (acceptedRecord)\r\n\t\t\t\tr.add(n);\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public Set<PrepSelRelType> selectionalRes(boolean valid) {\n return DefaultVnRestrictions.map(prep.restrictions(), PrepSelRelType::fromString).stream()\n .map(valid ? VnRestrictions::include : VnRestrictions::exclude)\n .flatMap(Set::stream)\n .collect(Collectors.toSet());\n }", "@Repository\npublic interface HistoryEventRepository extends CrudRepository<HistoryEvent,HistoryID> {\n\n List<HistoryEvent> findAllByIdDateBetween(Date from,Date to);\n\n @Query(\"SELECT h FROM HistoryEvent h WHERE h.id.date between :from and :to and h.id.name IN :names\")\n List<HistoryEvent> findByList(@Param(\"from\") Date from, @Param(\"to\") Date to, @Param(\"names\") List<String> names );\n\n @Query(\"SELECT distinct h.id.name FROM HistoryEvent h WHERE h.id.date between :from and :to\")\n List<String> getEventNames(@Param(\"from\") Date from, @Param(\"to\") Date to);\n\n}", "public boolean checkVentureCheckListByMemberSubID(String account, int id) {\n\t\tSl = \"SELECT * FROM venture_checklist WHERE memberAccount=? AND mapSubClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, account);\r\n\t\t\tsmt.setInt(2, id);\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NetraNominationRepository extends NominationRepository{\n\n\n\n @Query(\"select nominations from Nomination nominations where nominations.contract.id in :contractIdList\")\n List<Nomination> findAllNomsByContractIdList(@Param(\"contractIdList\") List<Long> contractIdList);\n\n}", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "public LearningResultHasActivity[] findWhereVersionEquals(String version) throws LearningResultHasActivityDaoException;", "private static List<Filter> enumAtomicFiltersLR(List<ValNode> L, List<ValNode> R, EnumContext ec, boolean allowExists) {\n // L contains all left values, and R contains all right values in a comparator\n List<Filter> atomics = new ArrayList<>();\n for (ValNode l : L) {\n for (ValNode r : R) {\n if (l.equalsToValNode(r)) continue;\n if (l instanceof ConstantVal && r instanceof ConstantVal) continue;\n\n if (l.getType(ec).equals(r.getType(ec))) {\n if (l.getType(ec).equals(ValType.DateVal) || l.getType(ec).equals(ValType.NumberVal)) {\n for (BiFunction<Value, Value, Boolean> func : VVComparator.getAllFunctions()) {\n atomics.add(new VVComparator(Arrays.asList(l, r), func));\n }\n } else {\n atomics.add(new VVComparator(Arrays.asList(l, r), VVComparator.eq));\n atomics.add(new VVComparator(Arrays.asList(l, r), VVComparator.neq));\n\n }\n }\n }\n }\n\n // Enumerate Filter with EXISTS clause, we don't want exists to\n if (allowExists) {\n List<ValNode> allValues = new ArrayList<>();\n allValues.addAll(L);\n allValues.addAll(R);\n allValues.addAll(ec.getValNodes());\n\n List<List<ValNode>> llvns = CombinationGenerator.genCombination(\n allValues, EnumParamTN.numberOfParams);\n for (List<ValNode> vns : llvns) {\n InstantiateEnv ie = new InstantiateEnv(vns, ec);\n atomics.addAll(\n ec.getParameterizedTables().stream().map(tn -> tn.instantiate(ie))\n .filter(t -> t.getAllHoles().size() == 0)\n .map(tn -> new ExistsFilter(tn))\n .collect(Collectors.toList()));\n // Also enumerate not exists\n atomics.addAll(\n ec.getParameterizedTables().stream().map(tn -> tn.instantiate(ie))\n .filter(t -> t.getAllHoles().size() == 0)\n .map(tn -> new ExistsFilter(tn, true))\n .collect(Collectors.toList()));\n }\n }\n\n // Add IS NULL for atomic filters\n // TODO: possibly just ignore it\n Set<ValNode> allValues = new HashSet<>();\n allValues.addAll(L);\n allValues.addAll(R);\n allValues.addAll(ec.getValNodes());\n\n for (ValNode vn : allValues) {\n if (vn instanceof ValHole)\n continue;\n atomics.add(new IsNullFilter(vn, true));\n atomics.add(new IsNullFilter(vn, false));\n }\n\n atomics.add(new EmptyFilter());\n\n return atomics;\n }", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByApprovedBy(Collection<String> values, int limit) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.APPROVED_BY.in(values),limit);\n }", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "public Cliente[] findWhereEstadoEquals(String estado) throws ClienteDaoException;", "@Override\n public List<StorePickStatus> queryByListStore(QueryParam params) {\n return getSqlSession().getMapper(StorePickStatusDao.class).queryByListStore(params);\n }", "public Set<RecordPair> match(Record record) throws ApplicationException;", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchByIsArchived(Boolean... values) {\n return fetch(Document.DOCUMENT.IS_ARCHIVED, values);\n }", "public List<DomainObject> getListByKeyandValue(String colname, List<Object> keyValue) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.in(colname, keyValue));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue with List<Values> Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "String getVersionFilter(String tableAlias);", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}", "public interface AccountTransactionRepository extends CrudRepository<AccountTransaction, Long> {\n\n @Query(\"select u from AccountTransaction u where u.src_acc_id= ?1 and trn_category in(?2)\")\n List<AccountTransaction> findBySrc_acc_id(Long src_acc_id, List<Integer> trn_category);\n @Query(\"select u from AccountTransaction u where u.tgt_acc_id= ?1 and trn_category in(?2)\")\n List<AccountTransaction> findByTgt_acc_id(Long tgt_acc_id, List<Integer> trn_category);\n}", "List<StatusReplies> selectByExample(StatusRepliesExample example);", "@Query(value = \"SELECT * FROM proveedor WHERE (:idTipoProveedor = 0 OR\"\n + \" idTipoProveedor=:idTipoProveedor) AND (:idCondCompra=0 OR idCondCompra=:idCondCompra)\"\n + \" AND (:estadoCuenta = 2 OR estaActiva=:estadoCuenta)AND (:idLocalidad=0 OR \"\n + \"idLocalidad=:idLocalidad)\" , nativeQuery = true)\n public List<Proveedor> listarPorFiltros(@Param(\"idTipoProveedor\") int idTipoProveedor,\n @Param(\"idCondCompra\") int idCondCompra,@Param(\"estadoCuenta\") \n int estadoCuenta,@Param(\"idLocalidad\") int idLocalidad);", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findByIV_FU_TOR_ID(java.lang.String IV_FU_TOR_ID, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByIV_FU_TOR_ID\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bm\\\" = ?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FU_TOR_ID,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "public UsState[] findWhereIdEquals(int id) throws UsStateDaoException;", "List<StatusReplies> selectByExampleWithBLOBs(StatusRepliesExample example);", "List<RepaymentPlanInfoUn> selectByExample(RepaymentPlanInfoUnExample example);", "String booleanQueryMultipleFields(String[] fields, String[] vals,\n\t\t\tString[] parsed, String operator, int from, int size,\n\t\t\tboolean isSubdoc, DomeoPermissions permissions3) {\n\t\tString query = buildGenericBooleanQuery(fields, vals, parsed, operator,\n\t\t\t\tfrom, size, permissions3);\n\t\tSystem.out.println(query);\n\t\tString searchUrl = isSubdoc ? esSearchSubdocUrl : esSearchUrl;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(searchUrl, HTTP_POST, query);\n\t\treturn decodeNS(lastResponse);\n\t}", "public interface SysRoleRepository extends CrudRepository<SysRole, Long> {\n\n List<SysRole> findAllByDescriptionIn(Collection<String> roleNames);\n}", "List<Customers> selectByCustomers(Customers customers);", "List<StatusByUser> selectByExample(StatusByUserExample example);", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "@Override\n\tpublic List<Map<String, Object>> searchList(Map<String, Object> map) {\n\t\treturn approvalDao.searchList(map);\n\t}", "boolean hasContains();", "public Cliente[] findWhereIdEstatusEquals(int idEstatus) throws ClienteDaoException;", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfIsArchived(Boolean lowerInclusive, Boolean upperInclusive) {\n return fetchRange(Document.DOCUMENT.IS_ARCHIVED, lowerInclusive, upperInclusive);\n }", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByStatus(Collection<String> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.STATUS.in(values));\n }", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses, int start, int end);", "public java.lang.String[][] queryAbleDptList (java.lang.String in_opr_cde, \n java.lang.String auth_opr_cde) throws com.mcip.orb.CoException {\n return this._delegate.queryAbleDptList(in_opr_cde, auth_opr_cde);\n }", "DeltaFileEntry[] query(long lastSeqNo, int limit);", "@Query(value = \"SELECT u FROM Car u WHERE u.fuel IN :fuels\")\n\tList<Car> findAllCarWithSameFuel(@Param(\"fuels\") String fuel);", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findByIV_FO_TOR_ID(java.lang.String IV_FO_TOR_ID, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByIV_FO_TOR_ID\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }", "@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();", "public List selectByVO(ResourcesvalueQuery queryVO){\n\t\tif(queryVO==null)\n\t\t\treturn selectAll();\n\t\tList list = this.queryForList(\"Resourcesvalue.selectByVO\", queryVO);\n\t\treturn list;\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchBySuburb(String... values) {\n return fetch(User.USER.SUBURB, values);\n }" ]
[ "0.5269245", "0.5233617", "0.50077045", "0.4998458", "0.48654607", "0.4770388", "0.46974868", "0.4662384", "0.46582988", "0.46048743", "0.46003783", "0.4586126", "0.4566003", "0.45487463", "0.45423874", "0.45069987", "0.45061874", "0.44741756", "0.44725433", "0.4471209", "0.44689643", "0.44508246", "0.4442178", "0.44344598", "0.44272348", "0.44225094", "0.44185925", "0.44029778", "0.43959573", "0.4383611", "0.4383358", "0.437445", "0.43368027", "0.4320347", "0.43183225", "0.43158484", "0.43128812", "0.43100488", "0.43087116", "0.4307595", "0.43065947", "0.43019083", "0.42972487", "0.42926458", "0.42860746", "0.42833504", "0.42818648", "0.42788327", "0.42693418", "0.42676705", "0.42659003", "0.42547086", "0.4243237", "0.4241495", "0.42393357", "0.4236378", "0.42307088", "0.4216262", "0.42141554", "0.42126086", "0.42081788", "0.4207434", "0.42063642", "0.42052734", "0.42027643", "0.41957423", "0.4192592", "0.41882184", "0.41796088", "0.41763207", "0.41695288", "0.41685882", "0.41630596", "0.41620108", "0.41459328", "0.41442773", "0.41431978", "0.41310546", "0.41309065", "0.41302586", "0.4129696", "0.41288188", "0.41260147", "0.412443", "0.41217065", "0.4117426", "0.41158307", "0.4114871", "0.41147417", "0.4111243", "0.411071", "0.40997186", "0.40979654", "0.40960532", "0.40958667", "0.40939683", "0.4089258", "0.4088452", "0.40878284", "0.40876138" ]
0.426162
51
Fetch records that have user_id_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByUserId_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.USER_ID_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "Condition in(QueryParameter parameter, Object... values);", "List<IDiscussionUser> getUsersByIds(Collection<String> userIds);", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses, int start, int end);", "public Future<List<io.remicro.saga.entities.tables.pojos.Person>> findManyByUserId(List<String> values) {\n return findManyByCondition(Person.PERSON.USER_ID.in(values));\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public void getUsersList(List<Long> ids, AsyncHttpResponseHandler handler) {\n if (ids == null) {\n return;\n }\n\n String apiUrl = getApiUrl(\"users/lookup.json\");\n RequestParams params = new RequestParams();\n\n String strIds = android.text.TextUtils.join(\",\", ids);\n params.put(\"user_id\", strIds);\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "long countByIdInAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Query(value = \"select subscribers from User u where u.id =:userId\")\n List<User> findSubscribers(@Param(\"userId\") long userId);", "List<UserInfo> getUserListByIdLists(List<Integer> idList);", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses);", "private boolean isUserInArrayLisyOfUsers( String email, ArrayList<User> users){\n \tboolean isInsideMM = false;\n \t\tfor(User u : users){\n \t\t\tif(u.getEmail().equals(email)&&users.isEmpty()==false){\n \t\t\t\tisInsideMM = true;\n \t\t\t}\n \t\t} \t\n \treturn isInsideMM;\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "@Query(\"SELECT * FROM user_table WHERE id IN (:climberIds)\")\n LiveData<List<Climber>> loadAllByIds(int[] climberIds);", "public java.util.List<Todo> filterFindByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end);", "public List<com.ims.dataAccess.tables.pojos.User> fetchByUserid(Integer... values) {\n return fetch(User.USER.USERID, values);\n }", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "@Query(\"SELECT e.stations FROM EmployeeEntity e where e.id in :employeeId\")\n List<StationEntity> getStationsOfEmployee(@Param(\"employeeId\") long employeeId);", "public UserRow[] getUsersBySpecificIds(int domainId, List<String> specificIds)\n throws AdminPersistenceException {\n if (specificIds == null || specificIds.size() == 0)\n return null;\n \n StringBuffer clauseIN = new StringBuffer(\"(\");\n String specificId = null;\n for (int s = 0; s < specificIds.size(); s++) {\n if (s != 0)\n clauseIN.append(\", \");\n specificId = specificIds.get(s);\n clauseIN.append(\"'\").append(\n LDAPUtility.dblBackSlashesForDNInFilters(specificId)).append(\"'\");\n }\n clauseIN.append(\")\");\n String query = SELECT_USERS_BY_SPECIFICIDS + clauseIN;\n return (UserRow[]) getRows(query, domainId).toArray(new UserRow[0]);\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchBySuburb(String... values) {\n return fetch(User.USER.SUBURB, values);\n }", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value=\"SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))\", nativeQuery = true)\n Page<User> findAuthors(@Param(\"status\") int status, Pageable pageable);", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "public List<UserJoins> listUserJoinsbyUid(int uid);", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public static List<Integer> findAllIdsUsers( )\n {\n return _dao.selectAllIdsUser( _plugin );\n }", "@Query(value = \"select subscriptions from User u where u.id =:userId\")\n List<User> findUserSubscriptions(@Param(\"userId\") long userId);", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "public boolean containsId(String key, Long userId) {\n if(index.containsKey(key)) {\n return index.get(key).contains(userId);\n }\n return false;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Set<String> getIdSet(UserId userId, GroupId groupId,\r\n\t\t\tCollectionOptions options, SecurityToken token)\r\n\t\t\tthrows JSONException {\r\n\r\n\t\tString user = userId.getUserId(token);\r\n\r\n\t\tif (groupId == null) {\r\n\t\t\treturn ImmutableSortedSet.of(user);\r\n\t\t}\r\n\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\t\r\n\t\tSession hs = HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tTransaction tran = null;\r\n\r\n\t\tswitch (groupId.getType()) {\r\n\t\tcase all:\r\n\t\t\t// idSet.add(user);\r\n\t\t\tList<String> allUserIds = null;\r\n\t\t\ttry {\r\n\t\t\t\t// List<String> allUserIds = sqlMap.queryForList(\r\n\t\t\t\t// \"getAllUserIds\" );\r\n\t\t\t\ttran = hs.beginTransaction();\r\n\r\n\t\t\t\t// Criteria crit = hs.createCriteria(User.class);\r\n\t\t\t\tQuery q = hs.createQuery(\"select id from User\");\r\n\t\t\t\tallUserIds = (List<String>) q.list();\r\n\r\n\t\t\t\ttran.commit();\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tif (tran != null)\r\n\t\t\t\t\ttran.rollback();\r\n\t\t\t\tHibernateUtil.getSessionFactory().getCurrentSession()\r\n\t\t\t\t\t\t.getTransaction().rollback();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tfor (String id : allUserIds) {\r\n\t\t\t\tidSet.add(id);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase groupId:\r\n\t\t\t\r\n\t\tcase friends:\r\n\t\t\ttry {\r\n\t\t\t\t/**\r\n\t\t\t\t * <p>\r\n\t\t\t\t * This filter can be any field of the object being filtered or\r\n\t\t\t\t * the special js filters, hasApp or topFriends. Other special\r\n\t\t\t\t * Filters defined in the OpenSocial v.9 specification are\r\n\t\t\t\t * </p>\r\n\t\t\t\t * <dl>\r\n\t\t\t\t * <dt>all</dt>\r\n\t\t\t\t * <dd>Retrieves all friends</dd>\r\n\t\t\t\t * <dt>hasApp</dt>\r\n\t\t\t\t * <dd>Retrieves all friends with any data for this application.\r\n\t\t\t\t * </dd>\r\n\t\t\t\t * <dt>'topFriends</dt>\r\n\t\t\t\t * <dd>Retrieves only the user's top friends.</dd>\r\n\t\t\t\t * <dt>isFriendsWith</dt>\r\n\t\t\t\t * <dd>Only \"hasApp filter\" is implemented here</dd>\r\n\t\t\t\t * </dl>\r\n\t\t\t\t */\r\n\r\n\t\t\t\ttran = hs.beginTransaction();\r\n\t\t\t\t\r\n\t\t\t\t//List<String> friendsIds = sqlMap.queryForList(\"getFriendsIds\",user);\r\n\r\n\t\t\t\tList<String> friendsIds = new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\t\tUser userObject = (User)hs.get(User.class, user);\r\n\t\t\t\t\r\n\t\t\t\tSet<User> friends = userObject.getFriendsByMe();\r\n\t\t\t\tSet<User> friendsByOthers = userObject.getFriendsByOther();\r\n\t\t\t\t\r\n\t\t\t\tfriends.addAll(friendsByOthers);\r\n\t\t\t\t\r\n\t\t\t\tif (options.getFilter() != null\r\n\t\t\t\t\t\t&& options.getFilter().equals(\"hasApp\")) {\r\n\r\n\t\t\t\t\tSet<User> tempFriends = new HashSet<User>();\r\n\t\t\t\t\ttempFriends.addAll(friends);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (User friend : tempFriends) {\r\n\t\t\t\t\t\tif (!friend.getPerson().getHasapp())\r\n\t\t\t\t\t\t\tfriends.remove(friend);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor(User friend: friends) {\r\n\t\t\t\t\tfriendsIds.add(friend.getId());\r\n\t\t\t\t}\r\n\t\t\t\tidSet.addAll(friendsIds);\r\n\r\n\r\n\t\t\t\ttran.commit();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tif (tran != null)\r\n\t\t\t\t\ttran.rollback();\r\n\t\t\t\t\r\n\t\t\t\tHibernateUtil.getSessionFactory().getCurrentSession().getTransaction().rollback();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase self:\r\n\t\t\tidSet.add(user);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn idSet;\r\n\t}", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "List<UserOrder> findUserOrdersByUserId(Long userId);", "public List<User> findUsersByFirstNameContainsOrLastNameContains(String firstName, String lastName);", "public static boolean in(Integer integer, Integer... integers) {\n\treturn null != integers && null != integer && Arrays.asList(integers).contains(integer);\n }", "public List<ro.ghasachi.bt.persistence.tables.pojos.Exam> fetchByUserid(Integer... values) {\n\t\treturn fetch(Exam.EXAM.USERID, values);\n\t}", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "public static List<Integer> findIdsUser( int nIdUnit )\n {\n return _dao.selectIdsUser( nIdUnit, _plugin );\n }", "public List<Active> findByUser_UserID(String userID);", "List<UserRole> searchUserRole(UserRole userRole);", "public List<Produto> findByIdIn(Integer... ids);", "public ArrayList<Customer> findValidCustomers(Integer UserId);", "public ArrayList<ProductType> findValidProducts(Integer UserId);", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end);", "@Override\n\tpublic Set<Long> getAllUserId() {\n\t\tfinal Set<Long> allUserIds = new HashSet<>();\n\t\tfinal Object[][] result = SQL.select(SQLs.USER_SELECT_ID_ONLY);\n\t\tif (null != result && result.length > 0) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tif (null != result[i]) {\n\t\t\t\t\tallUserIds.add((Long) result[i][0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allUserIds;\n\t}", "public static List<user> getAll() throws SQLException {\n\t\ttry {\n\t\t\tuserExample example = new userExample();\n\t\t\tList<Integer> values = new ArrayList<Integer>();\n\t\t\tvalues.add(0);\n\t\t\tvalues.add(1);\n\t\t\texample.or().andStatusIn(values);\n\n\t\t\treturn mapper.selectByExample(example);\n\n\t\t} finally {\n\t\t\tsqlSession.close();\n\t\t}\n\t}", "public List<EOSUser> findUsers(List<String> logins);", "List<Joined> findByUserId(String userId);", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "private List<String> searchForPosts(){\n String userId = searchForUser();\n List <String> postIds;\n String response = given().\n get(\"/posts\").then().extract().asString();\n postIds = from(response).getList(String.format(\"findAll { it.userId.equals(%s) }.id\", userId));\n return postIds;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Long> getActivityIds(final StreamView inCompositeStream, final long inUserId)\n {\n // check cache for ids and return if found.\n List<Long> activityKeys = getIdListFromCache(inCompositeStream, inUserId);\n\n if (activityKeys != null)\n {\n return activityKeys;\n }\n\n // build critera for getting id list from datastore\n Criteria criteria = getHibernateSession().createCriteria(Activity.class);\n ProjectionList fields = Projections.projectionList();\n fields.add(getColumn(\"id\"));\n criteria.setProjection(fields);\n\n // Get restrictions from loader and add them to criteria. This is basically the\n // \"where\" clause for the query.\n Hashtable restrictionParams = getActivityRestrictions(inCompositeStream, inUserId);\n if (restrictionParams != null)\n {\n // if false, abort query and just return no results.\n if (!addRestrictions(criteria, restrictionParams))\n {\n activityKeys = new ArrayList<Long>(0);\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n return activityKeys;\n }\n }\n\n // set the max results to return.\n criteria.setMaxResults(MAX_LIST_SIZE);\n\n // set the order by date descending\n criteria.addOrder(Order.desc(\"id\"));\n\n // get the list of ids from datastore\n activityKeys = criteria.list();\n\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n\n return activityKeys;\n }", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "public List<User> searchUser(String searchValue);", "public boolean isCurrentProfile(int userId) {\n boolean contains;\n synchronized (this.mLock) {\n contains = ArrayUtils.contains(this.mCurrentProfileIds, userId);\n }\n return contains;\n }", "private List<Long> getListOfAuthorizedById(\n List<Long> ids,\n String username,\n ResponseToFailedAuthorization failureResponse,\n AccessLevel accessLevel,\n Session session,\n String securedIdsQuery,\n String openAndSecuredIdsQuery,\n String securedParamListName,\n String openParamListName,\n String returnVarName\n ) throws Exception {\n\n ids = uniquifyIds(ids);\n\n String queryStr;\n if ( accessLevel == AccessLevel.View ) {\n queryStr = openAndSecuredIdsQuery.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );\n }\n else {\n queryStr = securedIdsQuery.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );\n }\n NativeQuery query = session.createNativeQuery( queryStr );\n query.addScalar( returnVarName, StandardBasicTypes.STRING );\n if ( accessLevel == AccessLevel.View ) {\n query.setParameterList( openParamListName, ids );\n }\n query.setParameterList( securedParamListName, ids );\n String queryUsername = username == null ? UNLOGGED_IN_USER : username;\n query.setParameter( USERNAME_PARAM, queryUsername );\n\n logger.debug(query.getQueryString());\n List<Long> rtnVal = query.list();\n if ( failureResponse == ResponseToFailedAuthorization.ThrowException &&\n rtnVal.size() < ids.size() ) {\n String idStr = joinIdList( ids );\n String message = makeUserReadableMessage( username, idStr );\n logger.error( message );\n throw new ForbiddenResourceException( message );\n }\n\n return rtnVal;\n }", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "@Override\n public List<Long> findContactsWithoutUser() {\n\tList<Long> ids = from(USER).where(USER.contact.isNotNull()).list(USER.contact.id);\n\n\t// id of contacts that hasn't user\n\tList<Long> result = from(CONTACT).where(CONTACT.id.notIn(ids)).list(CONTACT.id);\n\n\treturn result;\n }", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public static List<Job> filterFindByUserId_G(long groupId, long userId) {\n\t\treturn getPersistence().filterFindByUserId_G(groupId, userId);\n\t}", "public Set<Integer> getProfileIds(int userId) {\n Set<Integer> userIds = new HashSet<>();\n for (UserInfo user : this.mInjector.getUserManager().getProfiles(userId, false)) {\n userIds.add(Integer.valueOf(user.id));\n }\n return userIds;\n }", "public Future<List<UUID>> checkDelegate(List<UUID> provider_ids, String userId) {\n Promise<List<UUID>> p = Promise.promise();\n Collector<Row, ?, List<UUID>> idCollector =\n Collectors.mapping(row -> row.getUUID(ID), Collectors.toList());\n\n try {\n pool.withConnection(\n conn ->\n conn.preparedQuery(CHECK_DELEGATION)\n .collecting(idCollector)\n .execute(\n Tuple.of(authUrl, UUID.fromString(userId))\n .addArrayOfUUID(provider_ids.toArray(UUID[]::new)))\n .onSuccess(obj -> p.complete(obj.value()))\n .onFailure(\n obj -> {\n LOGGER.error(\"checkDelegate db fail :: \" + obj.getLocalizedMessage());\n p.fail(INTERNALERROR);\n }));\n } catch (Exception e) {\n LOGGER.error(\"Fail checkDelegate:\" + e.toString());\n p.fail(INTERNALERROR);\n }\n return p.future();\n }", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids);", "GroupQueryBuilder addUsersIdsConnectedByRole(Collection<String> ids);", "public java.util.List<Todo> findByUserId(long userId, int start, int end);", "@Override\n\tpublic List<Member> getMembersByUsersIds(PerunSession sess, List<Integer> usersIds, Vo vo) {\n\t\tif (usersIds.size() == 0) {\n\t\t\treturn new ArrayList<>();\n\t\t}\n\n\t\tMapSqlParameterSource parameters = new MapSqlParameterSource();\n\t\tparameters.addValue(\"ids\", usersIds);\n\t\tparameters.addValue(\"vo\", vo.getId());\n\n\t\ttry {\n\t\t\treturn this.namedParameterJdbcTemplate.query(\"SELECT \" + memberMappingSelectQuery +\n\t\t\t\t\t\t\t\" FROM members JOIN users ON members.user_id=users.id WHERE members.user_id IN ( :ids ) AND members.vo_id=:vo \" +\n\t\t\t\t\t\t\t\"ORDER BY users.last_name, users.first_name\",\n\t\t\t\t\tparameters, MEMBER_MAPPER);\n\t\t} catch (EmptyResultDataAccessException ex) {\n\t\t\treturn new ArrayList<>();\n\t\t} catch (RuntimeException ex) {\n\t\t\tthrow new InternalErrorException(ex);\n\t\t}\n\t}", "public int filterCountByG_U_S(long groupId, long userId, int[] statuses);", "List<Team> findByIds(List<Long> teamIds);", "@Override\n public List<UserInfo> findList(UserListFilterDto dto) {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<UserInfo> criteriaQuery = criteriaBuilder.createQuery(UserInfo.class);\n Root<UserInfo> root = criteriaQuery.from(UserInfo.class);\n Predicate predicate1\n = criteriaBuilder.equal(root.get(\"office\").get(\"id\"), dto.getOfficeId());\n Predicate finalPredicate = criteriaBuilder.and(predicate1);\n if (dto.getFirstName() != null) {\n Predicate predicate2\n = criteriaBuilder.equal(root.get(\"firstName\"), dto.getFirstName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate2);\n }\n if (dto.getSecondName() != null) {\n Predicate predicate3\n = criteriaBuilder.equal(root.get(\"secondName\"), dto.getSecondName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate3);\n }\n if (dto.getMiddleName() != null) {\n Predicate predicate4\n = criteriaBuilder.equal(root.get(\"middleName\"), dto.getMiddleName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate4);\n }\n if (dto.getPosition() != null) {\n Predicate predicate5\n = criteriaBuilder.equal(root.get(\"position\"), dto.getPosition());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate5);\n }\n if (dto.getDocCode() != null) {\n Predicate predicate6\n = criteriaBuilder.equal(root.get(\"userDoc\").get(\"doc\").get(\"code\"), dto.getDocCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate6);\n }\n if (dto.getCitizenshipCode() != null) {\n Predicate predicate7\n = criteriaBuilder.equal(root.get(\"country\").get(\"code\"), dto.getCitizenshipCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate7);\n }\n criteriaQuery.select(root).where(finalPredicate);\n return entityManager.createQuery(criteriaQuery).getResultList();\n }", "@SafeVarargs\n public static <T> boolean in(T value, T... values) {\n if (set(values).isEmpty()) return false;\n\n for (T element : values) {\n if (Objects.equals(value, element)) return true;\n }\n\n return false;\n }", "public TimeOffRequestQueryBody userIds(List<String> userIds) {\n this.userIds = userIds;\n return this;\n }", "public interface QuestionRepository extends CrudRepository<QuestionEntity,Long> {\n\n @Query(\"select count(id) from QuestionEntity where id in :questionIds\")\n Long validateQuestionNumbers(@Param(\"questionIds\") List<Long>questionIds);\n}", "public PagedList<String> getFriendListIds(String userId) {\n return facebook.friendOperations().getFriendIds(userId);\n }", "public static boolean in(int target, int... values) {\n for (int v : values) {\n if (target == v) {\n return true;\n }\n }\n return false;\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchByUsertypeid(Integer... values) {\n return fetch(User.USER.USERTYPEID, values);\n }", "public List<FollowItem> queryFollowsByUserId(Integer userId)\r\n {\r\n String sql=\"select * from Follows where userid =\"+ userId + \";\";\r\n return query(sql);\r\n }", "List<StatusEntity> findByUserId(String userId, Integer limit);", "List<RoleMenu> queryByRoleIds(Set<String> _roleIds);", "public java.util.List<Todo> filterFindByUserIdGroupId(\n\t\tlong userId, long groupId);", "private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public List<Short> searchIdsInRange(long fromValue, long toValue, boolean fromInclusive,\n boolean toInclusive) {\n\n List<Short> list = new ArrayList<Short>();\n searchIdsInRange(root, fromValue, toValue, fromInclusive, toInclusive, list);\n return list;\n }", "public String[] getUserIdsByAccessLevel(String accessLevel)\n throws AdminPersistenceException {\n String[] params = new String[1];\n params[0] = accessLevel;\n \n return (String[]) getIds(SELECT_USER_IDS_BY_ACCESS_LEVEL, new int[0],\n params).toArray(new String[0]);\n }", "List<SkuAvailability> lookupSKUAvailability(List<Long> skuIds, boolean realTime);", "public final List<String> isRegisteredUser() {\n return queryForAll();\n }", "List<UserEntityPermissionsState> getEntityPermissions(Set<Long> usersPrincipalIds, List<Long> entityIds);", "@Query(value = \"SELECT * FROM (reviewer AS r JOIN user AS u ON user_ID=reviewer_ID) WHERE r.reviewer_ID IN (SELECT rp.reviewer_ID FROM review_paper AS rp WHERE rp.paper_ID=?1 AND accept=1)\",\n nativeQuery = true)\n List<Reviewer> findApprovedReviewersAcceptPaper(int paper_id);", "Set<Transaction> getTransactionsByUserIdAndAmountCy(String userId, String txAmountCy);", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "private String idsConstrain(ArrayList <String> uids){\n String query = \"\";\n if(uids.size() > 0){\n query = \" ( \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(0).replace(\"PMC\", \"\") \n + \"[UID] \";\n\n for(int i = 1; i < uids.size() ; i++){\n query += \"OR \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(i).replace(\"PMC\", \"\") \n + \"[UID] \";\n }\n query += \") \"; \n }\n return query; \n }", "public UserEntity containsUserAndValid(long id) {\n Query query = manager.createQuery(\"select e from UserEntity e where e.id=:id\");\n List<UserEntity> list = query.setParameter(\"id\", id).getResultList();\n if (list.size() > 0) {\n UserEntity entity = list.get(0);\n FindIterable<Document> users = database.getCollection(\"users\").find(Filters.and(\n Filters.eq(UserMongo.objectId, new ObjectId(entity.getMongoId())),\n Filters.eq(UserMongo.isAccept, true),\n Filters.eq(UserMongo.isActive, true),\n Filters.or(\n Filters.eq(UserMongo.role, Role.manager),\n Filters.eq(UserMongo.role, Role.teacher)\n )\n ));\n if (users.iterator().hasNext()) {\n return entity;\n }\n }\n return null;\n }", "private boolean isIdInCollectionOfSingleIDVOs (int id, Collection vos)\n\t{\n\t\tboolean found = false;\n\t\t\n\t\tfor (Iterator i = vos.iterator(); !found && i.hasNext(); ) {\n\t\t\tSingleIdVO sivo = (SingleIdVO) i.next();\n\t\t\tfound = (sivo.getId() == id);\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByIsDeleted(ULong... values) {\n return fetch(UserEmail.USER_EMAIL.IS_DELETED, values);\n }", "public List<Long> getListOfAuthorizedById(\n List<Long> ids,\n String username,\n ResponseToFailedAuthorization failureResponse,\n AccessLevel accessLevel,\n Session session,\n QueryEntityType queryEntityType\n ) throws Exception {\n\n if ( queryEntityType == QueryEntityType.Project ) {\n logger.debug( \"Getting list of authorized projects for user \" + username );\n return getListOfAuthorizedById(\n ids, username, failureResponse, accessLevel, session,\n SECURED_PROJECT_IDS_SQL_QUERY,\n OPEN_AND_SECURED_PROJECT_IDS_SQL_QUERY,\n SECURE_PROJECTS_PARAM_LIST_NAME,\n OPEN_PROJECTS_PARAM_LIST_NAME,\n RTN_PROJECT_VAR_NAME\n );\n\n }\n else {\n logger.debug( \"Getting list of authorized samples for user \" + username );\n return getListOfAuthorizedById(\n ids, username, failureResponse, accessLevel, session,\n SECURED_SAMPLE_IDS_SQL_QUERY,\n OPEN_AND_SECURED_SAMPLE_IDS_SQL_QUERY,\n SECURE_SAMPLES_PARAM_LIST_NAME,\n OPEN_SAMPLES_PARAM_LIST_NAME,\n RTN_SAMPLE_VAR_NAME\n );\n\n }\n }", "public List<User> getEnabledUsers();", "List<Subscription> findActiveSubscriptions(User user);" ]
[ "0.5786486", "0.5770025", "0.5587673", "0.5491175", "0.5477217", "0.5404409", "0.5361056", "0.5352386", "0.5349261", "0.5310687", "0.5271295", "0.52585715", "0.5247036", "0.524248", "0.52049893", "0.5190293", "0.51530725", "0.51324964", "0.51160085", "0.51113045", "0.51090956", "0.5098733", "0.5092075", "0.50883013", "0.5073404", "0.5067125", "0.5066885", "0.5055207", "0.5023241", "0.50177217", "0.5007306", "0.5001789", "0.49973103", "0.49959505", "0.49953327", "0.49933046", "0.49689013", "0.49621817", "0.49456945", "0.4936507", "0.4929832", "0.49136358", "0.4911142", "0.49075663", "0.48627484", "0.48584178", "0.48499057", "0.48484066", "0.48446986", "0.48353654", "0.4832413", "0.4825885", "0.4821611", "0.48076567", "0.48005292", "0.48004177", "0.47972363", "0.47898334", "0.47888705", "0.47811294", "0.47807658", "0.47733387", "0.47673047", "0.47609803", "0.47555137", "0.47524637", "0.47511223", "0.47446695", "0.47303867", "0.47243398", "0.4719328", "0.47089803", "0.46988097", "0.469695", "0.46968514", "0.46931112", "0.46899825", "0.46801713", "0.4678375", "0.4676541", "0.4675516", "0.46738088", "0.46722645", "0.46640414", "0.466241", "0.46619907", "0.46574628", "0.46533853", "0.4636754", "0.46341968", "0.46338612", "0.4632041", "0.46227053", "0.46210295", "0.46185425", "0.46101224", "0.46035287", "0.4601842", "0.4594382", "0.4592715", "0.45838332" ]
0.0
-1
Fetch records that have name_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByName_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.NAME_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"names\") Collection<String> brandName);", "Condition in(QueryParameter parameter, Object... values);", "List<Authority> findByNameIn(List<AuthorityName> names);", "public List<Employee> findEmployee(String name) {\n\t\tCriteriaQuery<Employee> createQuery = emp.getCriteriaBuilder().createQuery(Employee.class);\n\t\tRoot<Employee> root = createQuery.from(Employee.class);\n\t\tcreateQuery.where(root.get(\"name\").in(name));\n\t\treturn emp.createQuery(createQuery).getResultList();\n\t}", "public List<Product> findByNameIs(String name);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "@Query(value = \"SELECT u FROM Car u WHERE u.modelName IN :modelNames\")\n\tList<Car> findCarsByModelName(@Param(\"modelNames\") String modelName);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "@Test\n public void testNamedParamWithImmediateValue() {\n List<Long> ids = Arrays.asList(10L, 5L);\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1, ids);\n\n validate(\" from Person hobj1 where hobj1.id in (:np1)\", ids);\n }", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public Items[] findWhereNameEquals(String name) throws ItemsDaoException;", "boolean contains(String name);", "private Set<String> projectSelectIn(GenericDAO genericDAO, String relationName, String projectAttributeName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tString query = String.format(PROJET_SELECTIN_SQL_STATEMENT, projectAttributeName, relationName,\n\t\t\t\tinputAttributeName, inputAttributeKnownTerms);\n\t\tGenericTableObject result = genericDAO.executeQuery(query);\n\t\tif (result != null) {\n\t\t\tfor (Tuple tuple : result.getTable()) {\n\t\t\t\tvalues.add(tuple.getStringValues().get(0));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "public List<Eetakemon> findEetakemonContain(String name){\n List<Eetakemon>resultlist = new ArrayList<Eetakemon>();\n for (String key: eetakemonmap.keySet()){\n Eetakemon e = eetakemonmap.get(key);\n if(e.getName().contains(name)){\n resultlist.add(e);\n }\n }\n return resultlist;\n }", "@Query(\"SELECT u FROM Car u WHERE u.brandName IN :names AND u.modelName IN :models\")\n\tList<Car> findAllByBrandAndModel(@Param(\"names\") Collection<String> brandName,\n\t\t\t@Param(\"models\") Collection<String> model);", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public void addInFilter(@Nullable String fieldName, @NonNull String values) {\n addInFilter(fieldName, SdkUtils.parseListString(values));\n }", "List<Item> findByNameContainingIgnoreCase(String name);", "@Query(\"SELECT u FROM Car u WHERE u.brandName IN :names AND u.fuel IN :fuels\")\n\tList<Car> findAllByBrandAndFuel(@Param(\"names\") Collection<String> brandName,\n\t\t\t@Param(\"fuels\") Collection<String> fuel);", "public List<User> findUsersByFirstNameContainsOrLastNameContains(String firstName, String lastName);", "public ConditionItem in(String fieldName, Object...value) {\n\t\treturn singleCondition(ConditionType.IN, fieldName, value);\n\t}", "private List<String> projectSelectIn(GenericDAO genericDAO, String relationName, String projectAttributeName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms, int queryLimit) {\n\t\tList<String> values = new ArrayList<String>();\n\t\tString query = String.format(PROJET_SELECTIN_SQL_STATEMENT, projectAttributeName, relationName, inputAttributeName, inputAttributeKnownTerms, queryLimit);\n\t\tquery += \" LIMIT \" + queryLimit;\n\t\tGenericTableObject result = genericDAO.executeQuery(query);\n\t\tif (result != null) {\n\t\t\tfor (Tuple tuple : result.getTable()) {\n\t\t\t\tvalues.add(tuple.getStringValues().get(0));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "List<E> list(String field, String contains);", "public List<Resource> findByNameContaining(String nameFragment) {\n\t\tMap<String, Object> nameFilter = new HashMap<>();\n\t\tnameFilter.put(\"name\", new ValueParameter(\"%\" + nameFragment + \"%\"));\n\t\treturn this.filter(nameFilter);\n\t}", "List<Cloth> findByNameContaining(String name);", "boolean containsStudentWith(String name);", "@In String search();", "@Repository\npublic interface HistoryEventRepository extends CrudRepository<HistoryEvent,HistoryID> {\n\n List<HistoryEvent> findAllByIdDateBetween(Date from,Date to);\n\n @Query(\"SELECT h FROM HistoryEvent h WHERE h.id.date between :from and :to and h.id.name IN :names\")\n List<HistoryEvent> findByList(@Param(\"from\") Date from, @Param(\"to\") Date to, @Param(\"names\") List<String> names );\n\n @Query(\"SELECT distinct h.id.name FROM HistoryEvent h WHERE h.id.date between :from and :to\")\n List<String> getEventNames(@Param(\"from\") Date from, @Param(\"to\") Date to);\n\n}", "@Repository\npublic interface TagRepository extends JpaRepository<Tag, Long> {\n Set<Tag> findByNameIn(Set<String> tagNames);\n}", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "public String createWhereIN(int iterations) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" IN (\");\n for (int ndx = 0; ndx < iterations; ndx++) {\n sb.append(\"?,\");\n }\n sb.deleteCharAt(sb.length() - 1); // remove last comma.\n sb.append(\")\");\n return sb.toString();\n }", "@Query(value = \"{'name': {$regex : ?0, $options: 'i'}}\", sort = \"{ name: 1}\")\n List<Item> findByName(String name);", "public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }", "boolean hasContains();", "public List<Employe> findByEnameInOrEaddIn(List<String> names,List<String> addresses);", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "private boolean containsName(String name, Human ... human) {\n boolean result = false;\n\n for(Human h : human) {\n if(h.getName().toLowerCase().contains(name.toLowerCase())) {\n result = true;\n break;\n }\n }\n\n return result;\n }", "@Test\n public void testNamedParamValueInCollectionTypeValidationPassesWhenCorrect() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, 20d));\n }", "List<Student> findByNameContainingIgnoringCase(String name);", "public List<DomainObject> getListByKeyandValue(String colname, List<Object> keyValue) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.in(colname, keyValue));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue with List<Values> Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "@Query(\"SELECT u FROM Car u WHERE u.brandName IN :names AND u.modelName IN :models AND u.fuel IN :fuels\")\n\tList<Car> findAllByBrandModelAndFuel(@Param(\"names\") Collection<String> brandName,\n\t\t\t@Param(\"models\") Collection<String> modelName, @Param(\"fuels\") Collection<String> fuel);", "@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}", "List<Contact> findByNameLike(String name);", "List<E> queryAll(String namedQuery);", "@Query(value = \"SELECT u FROM Car u WHERE lower (u.color) IN :colors\")\n\tList<Car> findCarsByColor(@Param(\"colors\") String color);", "public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "List<User> findByfnameContaining(String search);", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "public static SetExpression in(String propertyName, Object[] values) {\n return new SetExpression(Operator.IN, propertyName, values);\n }", "public Future<List<io.remicro.saga.entities.tables.pojos.Person>> findManyByNickName(List<String> values) {\n return findManyByCondition(Person.PERSON.NICK_NAME.in(values));\n }", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "List<Address> findByStateIn(List<String> stateList);", "@Query(value = \"select * from account_details where name ILIKE concat('%',?1,'%')\"+\n \" or country ILIKE concat('%',?1,'%') or address ILIKE concat('%',?1,'%')\"+\n \" or state ILIKE concat('%',?1,'%')\"+\n \" or city ILIKE concat('%',?1,'%')\",nativeQuery = true)\n List<AccountDetail> retrieveAllBySearchCriteria(String pattern);", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}", "boolean contains();", "List<Employee> findByNameContaining(String keyword, Sort sort);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public List<T> searchByName(String name) throws DAOException {\n Helper.checkNullAndEmpty(name, \"name\");\n Helper.checkEntityManager(entityManager);\n\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName() + \" as e\"\n + \" where e.name = :name\" + \" and e.deleted = false\";\n\n try {\n return Helper.getEntities(\"name\", name, entityManager, queryString);\n } catch (Exception e) {\n throw new DAOException(\"Failed to search entities by name:\" + name + \".\", e);\n }\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "List<Map<String, Object>> searchIngredient(String name);", "private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }", "@Query(value = \"SELECT u FROM Car u WHERE u.fuel IN :fuels\")\n\tList<Car> findAllCarWithSameFuel(@Param(\"fuels\") String fuel);", "@Test(expected=IllegalArgumentException.class)\n public void testNamedParamValueInCollectionTypeValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, \"Moo\"));\n }", "@Test\n\tpublic void selectFromCourseTable_where() {\n\t\tList arrayList = em.createNamedQuery(\"query_with_where_name_like_call\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c WHERE name like '%call%' -> {}\", arrayList);\n\t}", "public static boolean in(String strs, String str) {\n\treturn null != strs && null != str && Arrays.asList(strs.split(\",\")).contains(str);\n }", "@RequestMapping(value = \"/getAllNamesStartWith\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getNamesStartWith(@RequestParam String name){\r\n\t\treturn repository.getAllEmpoyees().stream().filter(emp -> emp.getEmpName().startsWith(name)).collect(Collectors.toList());\r\n\t}", "@Query(nativeQuery = true, value = \"select i.name from item i\")\n List<String> findNames();", "List<User> findAllByUsernameContains(String username);", "public abstract Set<String> getQueryNames();", "long findValues(List<Object> values, List<Column> columns);", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "public interface SysRoleRepository extends CrudRepository<SysRole, Long> {\n\n List<SysRole> findAllByDescriptionIn(Collection<String> roleNames);\n}", "public Usuario[] findWhereNombreEquals(String nombre) throws SQLException;", "public static boolean isInList(String pkgname,String []arylist)\n\t{\n\t \tif(arylist == null)return false;\n\t\tfor(int i=0;i<arylist.length;i++)\n\t\t{\n\t\t\tif(pkgname.contains(arylist[i]))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static SetExpression in(String propertyName, Collection<? extends Object> values) {\n return in(propertyName, values.toArray());\n }", "public List<Student> findAllStudentsByName(String name) {\n\t\t\n\t\tArrayList<Student> list = new ArrayList<Student>();\n\t\t\n\t\tname = name.toLowerCase();\n\t\t\n\t\tfor(Student s : students) {\n\t\t\tString sName = s.getName().toLowerCase();\n\t\t\tif (sName.startsWith(name)) {\n\t\t\t\tlist.add(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Query(\"select new com.vpa.core.models.LabelValueBean(c.id,c.name) from City c where c.enable = 1 and c.name like :alphabets\")\n\tList<LabelValueBean> findAutoSelectCityNames(@Param(\"alphabets\") String alphabets);", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "public Collection<CheckIn> findByUname(@Param(PatientSvcApi.USERNAME_PARAMETER) String uname);", "public List<Object> queryByWhere(String col_name, String dto, List<List<Triple>> filter, List<String> keys) {\n\t\tList<Object> res = new ArrayList<Object>();\n\t\tDBCollection dbc = db.getCollection(col_name);\n\t\t// filter\n\t\tBasicDBObject all_ref = new BasicDBObject();\n\t\tDBObject _keys = new BasicDBObject();\n\t\t\n\t\tif(keys != null)\n\t\t\tfor(String key : keys) \n\t\t\t\t_keys.put(key, true);\n\t\t\n\t\tBasicDBList list = new BasicDBList();\n\t\tfor(List<Triple> and : filter) {\n\t\t\tBasicDBObject ref = new BasicDBObject();\n\t\t\tfor(Triple tri : and) {\n\t\t\t\tif(!ref.containsField(tri.key_name)) {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) \n\t\t\t\t\t\tref.put(tri.key_name, tri.value);\n\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tref.put(tri.key_name, new BasicDBObject(tri.condition, tri.value));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(tri.condition.equals(Condition.EQUAL)) {\n\t\t\t\t\t\t// TODO It is impossible\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tBasicDBObject bo = (BasicDBObject)ref.get(tri.key_name);\n\t\t\t\t\t\tbo.append(tri.condition, tri.value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} // end an \"and\" query\n\t\t\tlist.add(ref);\n\t\t}\n\t\t\n\t\tall_ref.put(\"$or\", list);\n\t\t\n\t\ttry {\n\t DBCursor cur = dbc.find(all_ref, _keys);\n\t \twhile (cur.hasNext()) {\n\t \t\tDBObject doc = cur.next();\n\t \t\ttry {\n\t \t\t\tres.add(Util.deserialize(doc, dto));\n\t \t\t} catch(InvocationTargetException ite) {\n\t \t\t\tite.printStackTrace();\n\t \t\t} \t\t\n\t \t\t//System.out.println(doc);\n\t }\n\n\t\t} catch(ClassNotFoundException cnfe) {\n \tcnfe.printStackTrace();\n } catch(InstantiationException ie) {\n \tie.printStackTrace();\n } catch(IllegalAccessException iae) {\n \tiae.printStackTrace();\n }\n\n \treturn res;\n\t}", "public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchByFirstName(String... values) {\n return fetch(Voter.VOTER.FIRST_NAME, values);\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> in(String field, String... values);", "public List<T> getAll(String name) {\n\t\tList<T> result = new ArrayList<T>();\n\t\tint sz = size();\n\t\tfor (int i = 0; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == n || (name != null && name.equals(n))) {\n\t\t\t\tresult.add(getVal(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "List<Member> findByName(String name);", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "@Override\n\tpublic Set<Person> getfindByNameContainingIgnoreCase(String name) {\n\t\treturn null;\n\t}", "public List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "public List<User> searchUser(String searchValue);", "public List<Service> list(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",\"%\"+name+\"%\"));\r\n \treturn criteria.list();\r\n }", "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "List findByFilterText(Set<String> words, boolean justIds);", "public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByIndustryName(String... values) {\n return fetch(ProfileWorkexp.PROFILE_WORKEXP.INDUSTRY_NAME, values);\n }", "public boolean searchCertainItem(String itemname, String tableName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }" ]
[ "0.61632127", "0.6072342", "0.6063199", "0.59093076", "0.59064865", "0.5901031", "0.58707196", "0.58491534", "0.5659526", "0.55961734", "0.55929244", "0.5580172", "0.55295336", "0.54678077", "0.54515797", "0.5441944", "0.5409668", "0.5395992", "0.5384765", "0.53813946", "0.53650695", "0.53452915", "0.53431094", "0.53175485", "0.5303731", "0.53003156", "0.5249611", "0.5242396", "0.5242058", "0.5211669", "0.52091146", "0.5200106", "0.5193643", "0.5183219", "0.5181857", "0.5178884", "0.5172286", "0.5164088", "0.51605934", "0.51571953", "0.5155429", "0.5145812", "0.5114282", "0.51116973", "0.51098824", "0.5102028", "0.5094039", "0.5089288", "0.50798523", "0.5078785", "0.50669825", "0.50559133", "0.5040727", "0.5031261", "0.5004504", "0.49788466", "0.4966985", "0.49473166", "0.4943321", "0.49418738", "0.49307114", "0.4919396", "0.49138516", "0.49128354", "0.4912026", "0.48966205", "0.48875013", "0.48871484", "0.48739988", "0.486804", "0.48583847", "0.4857055", "0.48518008", "0.48483282", "0.48366505", "0.48340034", "0.48250517", "0.4814036", "0.4813989", "0.48051286", "0.4802589", "0.4798538", "0.47734937", "0.47660643", "0.47605932", "0.4756752", "0.47477573", "0.4745809", "0.47400573", "0.473961", "0.47357544", "0.47339457", "0.47313032", "0.4725085", "0.47099", "0.47078416", "0.4707506", "0.46927094", "0.46875632", "0.46811274", "0.4677383" ]
0.0
-1
Fetch records that have description_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByDescription_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.DESCRIPTION_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}", "@Query(value = INGREDIENT_SELECT + DESCRIPTION_SEARCH + EXT_DESCRIPTION + NOT_DELETES)\n List<Ingredient> findByIngredientDescriptionContaining(@Param(\"description\")String description, Pageable request);", "Condition in(QueryParameter parameter, Object... values);", "@Override\n public List<Event> searchByDescription(String description) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.description = :description \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"description\", description);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "public Project[] findWhereDescriptionEquals(String description) throws ProjectDaoException {\n\t\treturn findByDynamicSelect(SQL_SELECT + \" WHERE DESCRIPTION = ? ORDER BY DESCRIPTION\", new Object[] { description });\n\t}", "public List<Product> findByDescription(String description);", "public interface SysRoleRepository extends CrudRepository<SysRole, Long> {\n\n List<SysRole> findAllByDescriptionIn(Collection<String> roleNames);\n}", "List<E> list(String field, String contains);", "public boolean descriptionContains(String value){\n return(((MvwDefinitionDMO) core).descriptionContains(value));\n }", "@Query(\"SELECT a FROM Appointment a WHERE a.description like ?1\")\n\t public List<Appointment> searchByDescription(String searchstr);", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "List<ProductInfoOutput> findList(List<String> productIdList);", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "public List<CatalogDescription> getCatalogDescriptions(Map<String, String> eqCriteria, Map<String, String> searchCriteria);", "boolean hasContains();", "public boolean descriptionExists(String course_id);", "public SgfensPedidoProducto[] findWhereDescripcionEquals(String descripcion) throws SgfensPedidoProductoDaoException;", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value = INGREDIENT_SELECT + DESCRIPTION_SEARCH + EXT_DESCRIPTION + INCLUDE_CATEGORY + NOT_DELETES)\n List<Ingredient> findByIngredientDescriptionContainingAndCategoryCode(@Param(\"description\") String description,@Param(\"categoryCode\") Long categoryCode, Pageable pageRequest);", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "@Query(value = INGREDIENT_SELECT + DESCRIPTION_SEARCH + EXT_DESCRIPTION + EXCLUDE_CATEGORY + NOT_DELETES)\n List<Ingredient> findByIngredientDescriptionContainingAndCategoryCodeNot(@Param(\"description\") String description,@Param(\"categoryCode\") Long categoryCode, Pageable pageRequest);", "public NominaPuesto[] findWhereDescripcionEquals(String descripcion) throws NominaPuestoDaoException;", "public List<String> extractIllnesses(String description) {\n\t\tList<String> newSentences = this.getSentences(description);\n\t\t\n\t\t// For each sentence, generate valid word sequences\n\t\tList<String> allValidWordSequences = new ArrayList<String>();\n\t\tnewSentences.forEach(s -> allValidWordSequences.addAll(this.getWordCombinations(s)));\n\n\t\tSicknessMap medicalRecords = SicknessMap.getInstance();\n\t\tList<String> results = allValidWordSequences.stream()\n\t\t\t\t.filter(potentialIllness -> medicalRecords.contains(potentialIllness))\n\t\t\t\t.map(actualIllness -> medicalRecords.getByKey(actualIllness))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn results;\n\t}", "private Criteria buildCriteria(Map<String, ?> fieldValues) {\r\n Criteria criteria = new Criteria();\r\n for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();\r\n\r\n String key = e.getKey();\r\n Object value = e.getValue();\r\n if (value instanceof Collection) {\r\n criteria.addIn(key, (Collection) value);\r\n } else {\r\n criteria.addEqualTo(key, value);\r\n }\r\n }\r\n\r\n return criteria;\r\n }", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "boolean hasDescription();", "boolean hasDescription();", "boolean hasDescription();", "boolean contains();", "List<SpecValuePO> selectByExample(SpecValuePOExample example);", "long findValues(List<Object> values, List<Column> columns);", "@Repository\npublic interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "public static List<List<String>> filterRecords(List<List<String>> rows, Query query, List<String> header) {\r\n\r\n\t\tlogger.debug(\"filterRecords\");\r\n\r\n\t\tif (query.getRestrictions() != null) {\r\n\r\n\t\t\trows = evaluateRestrictions(rows, query);\r\n\t\t}\r\n\r\n\t\treturn rows;\r\n\t}", "public boolean inBag(String searchString) {\r\n\t\tboolean found = false;\r\n\t\tfor(Iterator<Item> it = items.iterator(); it.hasNext() && !found; ) {\r\n\t\t\tif(it.next().getDescription().contains(searchString)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t\t\r\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }", "@Test\n\tpublic void selectFromCourseTable_where() {\n\t\tList arrayList = em.createNamedQuery(\"query_with_where_name_like_call\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c WHERE name like '%call%' -> {}\", arrayList);\n\t}", "public SmsAgendaGrupo[] findWhereDescripcionGrupoEquals(String descripcionGrupo) throws SmsAgendaGrupoDaoException;", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value )\n {\n return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value );\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "@In String search();", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "public String createWhereIN(int iterations) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" IN (\");\n for (int ndx = 0; ndx < iterations; ndx++) {\n sb.append(\"?,\");\n }\n sb.deleteCharAt(sb.length() - 1); // remove last comma.\n sb.append(\")\");\n return sb.toString();\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NetraNominationRepository extends NominationRepository{\n\n\n\n @Query(\"select nominations from Nomination nominations where nominations.contract.id in :contractIdList\")\n List<Nomination> findAllNomsByContractIdList(@Param(\"contractIdList\") List<Long> contractIdList);\n\n}", "List<ConfigData> selectByExample(ConfigDataExample example);", "@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }", "List<Address> findByStateIn(List<String> stateList);", "boolean isSetDesc();", "public boolean searchItem(Connection conn, int item_no) {\r\n\t\ttry {\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\tResultSet rset = stmt.executeQuery(\"select item_no, description from item_XXXX where item_no=\" + item_no);\r\n\t\t\tif (rset.isBeforeFirst())\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByDescription(String... values) {\n return fetch(ProfileWorkexp.PROFILE_WORKEXP.DESCRIPTION, values);\n }", "List<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);", "boolean hasConditionList();", "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"names\") Collection<String> brandName);", "public List<Item> findItemByDescription(String description)\n {\n return auctionManager.findItemByDescription(description);\n }", "List<Post> findAllDescAndDeletedIsFalse();", "private List<String> projectSelectIn(GenericDAO genericDAO, String relationName, String projectAttributeName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms, int queryLimit) {\n\t\tList<String> values = new ArrayList<String>();\n\t\tString query = String.format(PROJET_SELECTIN_SQL_STATEMENT, projectAttributeName, relationName, inputAttributeName, inputAttributeKnownTerms, queryLimit);\n\t\tquery += \" LIMIT \" + queryLimit;\n\t\tGenericTableObject result = genericDAO.executeQuery(query);\n\t\tif (result != null) {\n\t\t\tfor (Tuple tuple : result.getTable()) {\n\t\t\t\tvalues.add(tuple.getStringValues().get(0));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "@Repository\npublic interface TagRepository extends JpaRepository<Tag, Long> {\n Set<Tag> findByNameIn(Set<String> tagNames);\n}", "List findByFilterText(Set<String> words, boolean justIds);", "boolean isSetDescription();", "boolean isSetDescription();", "public void processLargeInList(Set values);", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "public interface ProductCategoryRepository extends JpaRepository<ProductCategory,Integer>{\r\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\r\n //查询类目\r\n}", "public List<Product> findByNameIs(String name);", "public Criteria andDescriptionEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"description = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "List<Authority> findByNameIn(List<AuthorityName> names);", "private Set<String> projectSelectIn(GenericDAO genericDAO, String relationName, String projectAttributeName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tString query = String.format(PROJET_SELECTIN_SQL_STATEMENT, projectAttributeName, relationName,\n\t\t\t\tinputAttributeName, inputAttributeKnownTerms);\n\t\tGenericTableObject result = genericDAO.executeQuery(query);\n\t\tif (result != null) {\n\t\t\tfor (Tuple tuple : result.getTable()) {\n\t\t\t\tvalues.add(tuple.getStringValues().get(0));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "public boolean contains(Interest i);", "public TipologiaStruttura[] findWhereDescrizioneEquals(String descrizione) throws TipologiaStrutturaDaoException;", "Collection<? extends WrappedIndividual> getContains();", "public List getValidarSapExistencia(Map criteria);", "List<Blacklist> selectByExample(BlacklistExample example);", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "List<ReEducation> selectByExample(ReEducationExample example);", "List<ConfigData> selectByExampleWithBLOBs(ConfigDataExample example);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "List<Basicinfo> selectByExample(BasicinfoCriteria example);", "Iterable<Part> findAllByStatusTrueAndByArchivedTrue();", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "private List<ClinicItem> filter(List<ClinicItem> cList, String query){\n query = query.toLowerCase();\n final List<ClinicItem> filteredModeList = new ArrayList<>();\n\n for(ClinicItem vetClinic:cList){\n if(vetClinic.getName().toLowerCase().contains(query)){\n filteredModeList.add(vetClinic); }\n }\n return filteredModeList;\n }", "@DirtiesDatabase\n\t@Test\n\tpublic void testRetrieveByBundleConstituentList() {\n\t\tcreateBundles();\n\t\tcreatePA(\"P1\", \"PA1\", \"PLGUID\", \"CGUID\");\n\t\tcreatePA(\"P1\", \"PA2\", \"PLGUID\", \"C2GUID\");\n\t\t\n\t\t\n\t\tPriceAdjustmentDao dao = getBeanFactory().getBean(\"priceAdjustmentDao\");\n\t\tCollection<String> bcList = new ArrayList<String>();\n\t\tbcList.add(\"CGUID\");\n\t\tbcList.add(\"C2GUID\");\n\t\tCollection<PriceAdjustment> assignments = dao.findByPriceListBundleConstituents(\"PLGUID\", bcList);\n\t\tassertEquals(2, assignments.size());\n\t}", "@Query(value = \"select * from account_details where name ILIKE concat('%',?1,'%')\"+\n \" or country ILIKE concat('%',?1,'%') or address ILIKE concat('%',?1,'%')\"+\n \" or state ILIKE concat('%',?1,'%')\"+\n \" or city ILIKE concat('%',?1,'%')\",nativeQuery = true)\n List<AccountDetail> retrieveAllBySearchCriteria(String pattern);", "public List<DomainObject> getListByKeyandValue(String colname, List<Object> keyValue) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.in(colname, keyValue));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue with List<Values> Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "public static SetExpression contains(String propertyName, Object[] values) {\n return new SetExpression(Operator.CONTAINS, propertyName, values);\n }", "public interface AccountTransactionRepository extends CrudRepository<AccountTransaction, Long> {\n\n @Query(\"select u from AccountTransaction u where u.src_acc_id= ?1 and trn_category in(?2)\")\n List<AccountTransaction> findBySrc_acc_id(Long src_acc_id, List<Integer> trn_category);\n @Query(\"select u from AccountTransaction u where u.tgt_acc_id= ?1 and trn_category in(?2)\")\n List<AccountTransaction> findByTgt_acc_id(Long tgt_acc_id, List<Integer> trn_category);\n}", "List<Ad> selectByExample(AdExample example);", "List<Schedule> selectByExample(ScheduleCriteria example);", "public CrGrupoFormulario[] findWhereDescripcionEquals(String descripcion) throws CrGrupoFormularioDaoException;", "public boolean containsAll(OpenERPRecordSet c) {\r\n\t\tboolean allOK = true;\r\n\t\tIterator<OpenERPRecord> i = c.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord o = i.next();\r\n\t\t\tallOK = this.contains(o) && allOK;\r\n\t\t}\r\n\t\treturn allOK;\r\n\t}", "List<Resource> selectByExample(ResourceExample example);", "List<PcQualificationInfo> selectByExampleWithBLOBs(PcQualificationInfoExample example);" ]
[ "0.5498818", "0.54831564", "0.5439356", "0.5332733", "0.5211114", "0.5193609", "0.51746094", "0.5168236", "0.5151282", "0.5127352", "0.51055753", "0.5036228", "0.50112534", "0.50083923", "0.49791345", "0.49477097", "0.49430805", "0.49402982", "0.49136418", "0.48925707", "0.48905176", "0.4841282", "0.4837152", "0.48293328", "0.48250037", "0.4776336", "0.47745624", "0.4754156", "0.47440466", "0.47440466", "0.47440466", "0.47417262", "0.4716048", "0.4713656", "0.47102824", "0.4704712", "0.46807936", "0.46745872", "0.46714285", "0.467069", "0.46547377", "0.4654009", "0.465222", "0.46384618", "0.4633147", "0.46305695", "0.4627153", "0.46244022", "0.4621452", "0.4616662", "0.46123603", "0.4612", "0.46069115", "0.46059626", "0.45909104", "0.45885128", "0.45844", "0.45786464", "0.45753914", "0.4570234", "0.4557815", "0.45507085", "0.4546595", "0.45458344", "0.4537717", "0.4537717", "0.45343426", "0.4530241", "0.4524667", "0.45228377", "0.45222494", "0.45088306", "0.45081708", "0.45068216", "0.45040184", "0.44981673", "0.4497473", "0.44819093", "0.4475006", "0.44715956", "0.4469204", "0.44637004", "0.4460187", "0.4454077", "0.4451108", "0.4448512", "0.4447674", "0.44466367", "0.44416758", "0.4440104", "0.4438357", "0.44382596", "0.44284067", "0.44261208", "0.44259012", "0.44257796", "0.44110253", "0.44088483", "0.4407805", "0.44048762", "0.43988112" ]
0.0
-1
Fetch records that have type_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByType_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.TYPE_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Items[] findWhereTypeEquals(String type) throws ItemsDaoException;", "Condition in(QueryParameter parameter, Object... values);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "String getTypeFilter(String column, Collection<FxType> types);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "List<ReportType> findTypes();", "List<Type> getTypeList(String type);", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "@Repository\npublic interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "@Override\r\n\tpublic List<AsxDataVO> findByType(int type) {\n\t\treturn mongoTemplate.find(new Query(Criteria.where(\"type\").is(type)), AsxDataVO.class);\r\n\t}", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids);", "List<E> list(String field, String contains);", "ResponseEntity<List<Type>> findTaskTypes();", "long findValues(List<Object> values, List<Column> columns);", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "public SampletypeBean[] loadByWhere(String where, int[] fieldList) throws SQLException\n {\n String sql = null;\n if(fieldList == null)\n sql = \"select \" + ALL_FIELDS + \" from sampletype \" + where;\n else\n {\n StringBuffer buff = new StringBuffer(128);\n buff.append(\"select \");\n for(int i = 0; i < fieldList.length; i++)\n {\n if(i != 0)\n buff.append(\",\");\n buff.append(FIELD_NAMES[fieldList[i]]);\n }\n buff.append(\" from sampletype \");\n buff.append(where);\n sql = buff.toString();\n buff = null;\n }\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n java.util.ArrayList v = null;\n try \n {\n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n v = new java.util.ArrayList();\n while(rs.next())\n {\n if(fieldList == null)\n v.add(decodeRow(rs));\n else\n v.add(decodeRow(rs, fieldList));\n }\n\n return (SampletypeBean[])v.toArray(new SampletypeBean[0]);\n }\n finally\n {\n if (v != null) { v.clear(); }\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n }", "List<AccountTypeDTO> lookupAccountTypes();", "public List findMatchingTypes(\n String typeField, String toMatch, DatasetItem dataset, boolean matchAny) {\n\n String query = null;\n if (typeField.equals(\"transactionTypeTool\")) {\n query = FIND_TOOL_TYPES;\n } else if (typeField.equals(\"transactionTypeTutor\")) {\n query = FIND_TUTOR_TYPES;\n } else if (typeField.equals(\"transactionSubtypeTool\")) {\n query = FIND_TOOL_SUBTYPES;\n } else if (typeField.equals(\"transactionSubtypeTutor\")) {\n query = FIND_TUTOR_SUBTYPES;\n } else {\n throw new IllegalArgumentException(\"typeField does not match any expected values. \"\n + \"'\" + typeField + \"'\");\n }\n\n toMatch = matchAny ? \"%\" + toMatch.toUpperCase() + \"%\" : toMatch.toUpperCase() + \"%\";\n\n Object[] paramArray = new Object[2];\n paramArray[0] = dataset.getId();\n paramArray[1] = toMatch;\n\n return getHibernateTemplate().find(\n query, paramArray);\n }", "public interface In extends Clause {}", "private List<FilterType> getFilterInsuredList(PolicyPremiumInquiryResultParametersType policyPremiumInquiryResultParametersType) {\r\n List<FilterType> filterList = new ArrayList<FilterType>();\r\n FilterType filter = policyPremiumInquiryResultParametersType.getFilter();\r\n if (!StringUtils.isBlank(getFilterInsuredId(filter))) {\r\n filterList.add(filter);\r\n }\r\n return filterList;\r\n }", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "public interface ProductCategoryService {\n\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "public interface ProductCategoryRepository extends JpaRepository<ProductCategory,Integer>{\r\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\r\n //查询类目\r\n}", "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods> fetchByTypeId(Byte... values) {\n return fetch(TOfferGoods.T_OFFER_GOODS.TYPE_ID, values);\n }", "ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}", "public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByType(Byte... values) {\n return fetch(ProfileWorkexp.PROFILE_WORKEXP.TYPE, values);\n }", "public boolean contains(Type item);", "List<SellType> selectAll();", "@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }", "public UserType[] searchUserTypes(Filter filter) throws DataAccessException {\n return userTypeDao.searchUserTypes(filter);\n }", "BoundQuery<?,Ttuple> getAll(Type<?> type) \n throws DataException;", "public List<Integer> selectRangeWherePar(byte[][] selectCols, byte[] whereCol, long value1, long value2, ResultSet result){\n List<Integer> oidList = new ArrayList<Integer>();\n \n //assuming the where col is in type LONG\n boolean[] access = new boolean[keyForLong.length];\n int whereIndex = -1;\n \n for(int i = 0; i < keyForLong.length; i++){\n if(keyForLong[i].equals( new String(whereCol) + separator + \"LONG\" )) whereIndex = i;\n \n access[i] = false;\n for(int j = 0; j < selectCols.length; j++){\n if(keyForLong[i].equals( new String(selectCols[j]) + separator + \"LONG\" )){\n access[i] = true;\n break;\n }\n }\n }\n \n int numOfFields = keyForLong.length;\n for(int i = 0; i < numObject; i++){\n //first check if this object meet the where condition\n long value = longValues[i*numOfFields + whereIndex];\n if( (value >= value1) && (value <= value2)){\n //this object meets condition\n int oid=objectIds[i];\n oidList.add(oid);\n \n //select fields in the select clause\n for(int j = 0; j < access.length; j++){\n if(access[j]){\n String key = keyForLong[j];\n if(j == whereIndex){\n result.addLong(key, oid, value);\n continue;\n }\n long longnum = longValues[i*numOfFields + j];\n if(longnum != UNDEFINED)\n result.addLong(key, oid, longnum);\n }\n }\n }\n }\n \n if(oidList.size() > 0){\n //if this partition also has other data types, also select those based on oidList\n if(keyForString.length != 0)\n selectConditionString(oidList, selectCols, result);\n if(keyForDouble.length != 0)\n selectConditionDouble(oidList, selectCols, result);\n if(keyForBool.length != 0)\n selectConditionBool(oidList, selectCols, result);\n }\n return oidList;\n }", "public String buildInClauseFromSelectedTypes() {\n String inClause = \"\";\n boolean isFirst = true;\n for (int i = 0; i < mExpenseTypesSelected.length; ++i) {\n if (mExpenseTypesSelected[i]) {\n inClause += (isFirst ? \"\" : \",\") + i;\n isFirst = false;\n }\n }\n for (int i = 0; i < mCreditTypesSelected.length; ++i) {\n if (mCreditTypesSelected[i]) {\n inClause += (isFirst ? \"\" : \",\") + (-i - 1);\n isFirst = false;\n }\n }\n\n return \"(\" + inClause + \")\";\n }", "public List findRecords(String informationType, String queryString) throws DatabaseException;", "Collection<? extends WrappedIndividual> getContains();", "private boolean checkColumnTypes(ArrayList<String> types, ArrayList<Object> values) {\n boolean isType = true;\n for (int i = 0; i < values.size(); i++) {\n isType = this.isType(types.get(i), values.get(i));\n if (!isType) break;\n }\n return isType;\n }", "public void testListFilters() {\r\n boolean[] types = {true,true,false}; // Types 1 and 2.\r\n List<InfoNode> filteredList = MapUtils.filterValues(exampleList, types);\r\n assertTrue(filteredList.size() == 2);\r\n assertTrue(filteredList.contains(node1));\r\n assertTrue(filteredList.contains(node2));\r\n assertFalse(filteredList.contains(node3));\r\n\r\n types[2] = true; // Types 1, 2 and 3.\r\n filteredList = MapUtils.filterValues(exampleList, types);\r\n assertTrue(filteredList.size() == 3);\r\n assertTrue(filteredList.contains(node1));\r\n assertTrue(filteredList.contains(node2));\r\n assertTrue(filteredList.contains(node3));\r\n\r\n types[0] = false; types[1] = false; types[2] = false;\r\n filteredList = MapUtils.filterValues(exampleList, types);\r\n assertTrue(filteredList.isEmpty());\r\n assertFalse(filteredList.contains(node1));\r\n assertFalse(filteredList.contains(node2));\r\n assertFalse(filteredList.contains(node3));\r\n }", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public static String buildTypeSourceWhereFilter() {\n PDCOptionData pcOptions = PDCOptionData.getInstance();\n StringBuilder buffer = new StringBuilder();\n String returnValue = null;\n\n for (int i = 0; i < pcOptions.getTypeSourceChosenList().size(); i++) {\n buffer.append(\" '\" + pcOptions.getTypeSourceChosenList().get(i)\n + \"' \");\n\n if (i != pcOptions.getTypeSourceChosenCount() - 1) {\n buffer.append(\", \");\n }\n }\n\n if (pcOptions.getTypeSourceChosenCount() > 0) {\n returnValue = \" and ts in (\" + buffer.toString() + \") \";\n } else {\n returnValue = \"\";\n }\n\n return returnValue;\n }", "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TCustomerMemberInvite> fetchByType(Byte... values) {\n return fetch(TCustomerMemberInvite.T_CUSTOMER_MEMBER_INVITE.TYPE, values);\n }", "public void processLargeInList(Set values);", "public SampletypeBean[] loadByWhere(String where) throws SQLException\n {\n return loadByWhere(where, null);\n }", "public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {\n\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public boolean contains(int type) {\n\t\tint n = check(type);\n\t\treturn n >= 64 ? (n1 & mask(n - 64)) != 0L : (n0 & mask(n)) != 0L;\n\t}", "List<TypePatientPropertyCondition> search(String query);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<Tag> getTagsByType(Integer[] types) {\r\n\t\tQuery q = PMF.get().getPersistenceManager().newQuery(Tag.class);\r\n\t\tString filter = \"\";\r\n\t\tString params = \"\";\r\n\t\tfor(int i = 0; i < types.length; i++){\r\n\t\t\tif(i < types.length - 1){\r\n\t\t\t\tfilter += \"type == n\" + i + \" || \";\r\n\t\t\t\tparams += \"int n\" + i + \", \";\r\n\t\t\t}else{\r\n\t\t\t\tfilter += \"type == n\" + i;\r\n\t\t\t\tparams += \"int n\" + i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tq.setFilter(filter);\r\n\t\tq.declareParameters(params);\r\n\t\t\r\n\t\treturn (List<Tag>) q.executeWithArray((Object[]) types);\r\n\t}", "public ConditionItem in(String fieldName, Object...value) {\n\t\treturn singleCondition(ConditionType.IN, fieldName, value);\n\t}", "List<CatalogItem> getAllCatalogItemsFiltered(Long brand_id, Long type_id);", "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "public boolean containsAll(Collection<? extends Type> items);", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public List<KeyType> getPrimaryKeyCollection(String condition) {\r\n Session session = getSession();\r\n List<KeyType> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n ClassMetadata cm = sessionFactory.getClassMetadata(getPersistentClass().getName());\r\n String type = cm.getIdentifierPropertyName();\r\n lst = session.createQuery(\"select t.\" + type + \" from \" + getPersistentClass().getName() + \" t\" + \" \" + condition).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getPrimaryKeyCollection Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return lst;\r\n }", "List<Type> getAllTypeList();", "List<QtActivitytype> selectByExample(QtActivitytypeExample example);", "boolean hasContains();", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "@Override\n\tpublic List<Record> getRecordsByType(Type type) {\n\t\tSession session=HibernateSessionFactory.getSession();\n\t\tTransaction tx=session.beginTransaction();\n\t\tList<Record> list=new ArrayList<Record>();\n\t\tRecordDAO recordDAO=new RecordDAO();\n\t\t\n\t\ttry{\n\t\t\tlist=recordDAO.getRecordsByType(type);\n\t\t\ttx.commit();\n\t\t}catch(RuntimeException e){\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "public Cursor checkIfTypeExistForUser(String emailId, String type){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \"+USER_DATA+\" where LOWER(EMAIL_ID) = '\"+emailId.toLowerCase()+\"'\"\n +\" AND TYPE = '\"+type+\"'\" ,null);\n return res;\n }", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<Tag> getTagsByType(Integer type) {\r\n\t\tQuery q = PMF.get().getPersistenceManager().newQuery(Tag.class);\r\n\t\tq.setFilter(\"type == :typeParam\");\r\n\t\treturn (List<Tag>) q.execute(type);\r\n\t}", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "<T> List<T> getResultList(Class<T> type, Query query);", "@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }", "@Override\n\tpublic <K extends BasePojo> List<K> getDataListByTypes(String[] types)\n\t\t\tthrows ServiceException {\n\t\treturn null;\n\t}", "@Override\n public List<StorePickStatus> queryByList(QueryParam params) {\n return getSqlSession().getMapper(StorePickStatusDao.class).queryByList(params);\n }", "boolean hasCriterionType();", "UserType[] getUserTypes();", "public List<PropertyImages> findWhereTypeEquals(String type) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\treturn getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE TYPE = ? ORDER BY TYPE\", this,type);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}", "List<StatusByUser> selectByExample(StatusByUserExample example);", "public boolean containsAny(ISelect s){\r\n return false;\r\n }", "@Override\n\tpublic QueryRes getQueryResByTypes(String[] types) throws ServiceException {\n\t\treturn null;\n\t}", "public static List<DocumentType> search(String value) throws SQLException, Exception {\n\n String sql = \"SELECT * FROM document_type WHERE (UPPER(name) LIKE UPPER(?) AND enabled=?)\";\n\n List<DocumentType> listDocumentType = null;\n\n Connection con = null;\n\n PreparedStatement stmt = null;\n\n ResultSet result = null;\n try {\n //Opens a connection to the DB\n con = ConnectionUtils.getConnection();\n //Creates a statement for SQL commands\n stmt = con.prepareStatement(sql);\n\n stmt.setString(1, \"%\" + value + \"%\");\n stmt.setBoolean(2, true);\n\n result = stmt.executeQuery();\n\n while (result.next()) {\n\n if (listDocumentType == null) {\n listDocumentType = new ArrayList<DocumentType>();\n }\n\n // Create a DocumentType instance and population with BD values\n DocumentType documentType = new DocumentType();\n\n documentType.setId(result.getInt(\"id\"));\n documentType.setName(result.getString(\"name\"));\n\n // Add the instance in the list\n listDocumentType.add(documentType);\n }\n } finally {\n ConnectionUtils.finalize(result, stmt, con);\n }\n\n return listDocumentType;\n }", "java.util.List<UserType>\n getUserTypesList();", "public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }", "List<CardTypeDTO> lookupCardTypes();", "<T> Set<T> lookupAll(Class<T> type);", "public List<com.ims.dataAccess.tables.pojos.User> fetchByUsertypeid(Integer... values) {\n return fetch(User.USER.USERTYPEID, values);\n }", "public abstract List<LocationDto> searchLocationType(int loc_type_id);", "@Query(value = \"SELECT u FROM Car u WHERE u.isRentable IN :isRentables\")\n\tList<Car> findAllRentable(@Param(\"isRentables\") boolean isRentable);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "@Query(value = \"SELECT u FROM Car u WHERE lower (u.color) IN :colors\")\n\tList<Car> findCarsByColor(@Param(\"colors\") String color);", "public boolean contains(VehicleType t){\n\t\tfor(int i = 0; i < types.size(); i++){\n\t\t\tif(types.get(i).getVehicleType().equals(t.getVehicleType())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Query(value = \"SELECT u FROM Car u WHERE u.automatic IN :automatics\")\n\tList<Car> findIsAutomatic(@Param(\"automatics\") boolean automatic);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "public <T extends IDBEntities> List<T> find(Class<? extends IDBEntities> type,\n\t\t\tISearchQueries query, String val) {\n\t\t// Transient search is meaningless\n\t\tif (val == null)\n\t\t\treturn null;\n\t\t// Query name must begin in uppercase, yet the actual parameter name starts with lowercase\n\t\tchar first = Character.toLowerCase(query.toString().charAt(0));\n\t\tString parameter = first + query.toString().substring(1);\n\t\tEntityManager em = getEM();\n\t\tQuery q = em.createNamedQuery(type.getSimpleName() + \".findBy\" + query.toString());\n\t\t// value to search for can by either int or String\n\t\t// Try parsing as int:\n\t\ttry {\n\t\t\tint intVal = Integer.parseInt(val);\n\t\t\tq.setParameter(parameter, intVal);\n\t\t}\n\t\t// Value was a String:\n\t\tcatch (NumberFormatException ex) {\n\t\t\tq.setParameter(parameter, val);\n\t\t}\n\n\t\tList<T> result;\n\t\ttry {\n\t\t\tresult = q.getResultList();\n\t\t} catch (Exception ex) {\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t\t// Dealing with EclipseLink Vector overriding issues (iterators don't work properly)\n\t\tList<T> output = new ArrayList<>();\n\t\toutput.addAll(result);\n\t\treturn output;\n\t}", "public static void findByAND() {\n\t\tFindIterable<Document> findIterable = collection.find(and(eq(\"status\", \"A\"), lt(\"qty\", 30)));\r\n\t\tprint(findIterable);\r\n\t}", "@Override\n\tpublic boolean contains(Type t) {\n\t\treturn true;\n\t}", "public List<DomainObject> getListByKeyandValue(String colname, List<Object> keyValue) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.in(colname, keyValue));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue with List<Values> Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }", "private Set<String> projectSelectIn(GenericDAO genericDAO, String relationName, String projectAttributeName,\n\t\t\tString inputAttributeName, String inputAttributeKnownTerms) {\n\t\tSet<String> values = new HashSet<String>();\n\t\tString query = String.format(PROJET_SELECTIN_SQL_STATEMENT, projectAttributeName, relationName,\n\t\t\t\tinputAttributeName, inputAttributeKnownTerms);\n\t\tGenericTableObject result = genericDAO.executeQuery(query);\n\t\tif (result != null) {\n\t\t\tfor (Tuple tuple : result.getTable()) {\n\t\t\t\tvalues.add(tuple.getStringValues().get(0));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "Collection<? extends Integer> getIsPersonType();", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\t\tString containsClause = \"PrimaryTag='\" + \n\t\t\t tag + \"'\";\n\t\t\t \n\t\t\tcontainsList.add(containsClause);\n\t\t\t\n\t\t}\n\t\t\n\t\tString retVal = StringUtils.join(containsList, \" or \");\n\n\t\treturn retVal;\n\t}", "ImmutableList<SchemaOrgType> getIsPartOfList();", "@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}", "boolean contains(KeyType key);", "List<Usertype> selectAll();" ]
[ "0.5944863", "0.5877485", "0.57101965", "0.5621531", "0.55972207", "0.55114186", "0.548807", "0.54183006", "0.54160917", "0.53475547", "0.5317227", "0.52786857", "0.52544785", "0.51782787", "0.515179", "0.5145954", "0.5101249", "0.5100081", "0.5079756", "0.50714254", "0.5057925", "0.50496656", "0.50162137", "0.50080884", "0.4978687", "0.49557716", "0.49233145", "0.49218324", "0.49142024", "0.4912062", "0.48985463", "0.4885182", "0.48804072", "0.48727217", "0.48715073", "0.48489195", "0.48445037", "0.4825115", "0.48246112", "0.48234788", "0.4822475", "0.4814092", "0.4806032", "0.47935858", "0.47663888", "0.4763358", "0.4755798", "0.47539312", "0.47523084", "0.4744883", "0.47327635", "0.4723394", "0.47230878", "0.47210193", "0.4717761", "0.47060543", "0.4704034", "0.46919954", "0.4691502", "0.46776864", "0.46533382", "0.46499878", "0.46485415", "0.46471962", "0.46397966", "0.463763", "0.46289977", "0.46277004", "0.4620634", "0.46102983", "0.460298", "0.4597527", "0.45968154", "0.45940575", "0.45939592", "0.45911133", "0.4586964", "0.4586298", "0.45803723", "0.45760316", "0.45740014", "0.45689678", "0.4562779", "0.45588842", "0.4558107", "0.4553903", "0.45524326", "0.45515096", "0.45448443", "0.4540771", "0.45375788", "0.4536451", "0.45338368", "0.45320162", "0.4521007", "0.45191574", "0.45155802", "0.45127106", "0.45104203", "0.45102286", "0.4502244" ]
0.0
-1
Fetch records that have task_id_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByTaskId_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.TASK_ID_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Task> filterByTask(int id_task) {\n\t\treturn null;\n\t}", "List<EmpTaskInfo> queryEmpTasksByCond(Map paramMap);", "Condition in(QueryParameter parameter, Object... values);", "private boolean containsTask(Task task) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(task.getIdentifier())) {\n return true;\n }\n }\n\n return true;\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "ObservableList<Task> getFilteredTaskList();", "long countByIdInAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids);", "public List<TaskMaster> retrieveTasksForIntervalById(long userId, Calendar startTime, Calendar endTime);", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public java.util.List<Todo> filterFindByG_S(long groupId, int[] statuses);", "@Override\r\n\tpublic List<ExecuteTask> getByTask(int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id = ?\";\r\n\t\treturn getForList(sql,taskId);\r\n\t}", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses, int start, int end);", "public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end);", "public TaskEntry activeTasksListLookup(InterestPacket interest)\n\t{\n\t\tfor (TaskEntry entry: activeTasksList.values()){\n\t\t\tif ( interest.isMatching(entry.getInterest())) \n\t\t\t\treturn entry ;\n\t\t}\n\t\treturn null ;\n\t}", "@Override\r\n\tpublic List<ExecuteTask> getByTaskByOrg(int taskId, int organizationId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id = ? AND et_task_id IN(SELECT task_id FROM task WHERE task_organization_id IN\"\r\n\t\t\t\t+ \"(SELECT org_id FROM organization WHERE org_id = ? OR org_parent_organization_id = ?))\";\r\n\t\treturn getForList(sql,taskId,organizationId,organizationId);\r\n\t}", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "public boolean containsTask(final int taskid) {\n return tasks.containsKey(taskid);\n }", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "public List<TaskMaster> retrieveAllTaskOfCurrentUserById(Date startDate, Date endDate, Long userId, List<Long> projectIds);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public IndexedList<Task> search(TaskStatus status) {\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getStatus()==status)\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "public List<Produto> findByIdIn(Integer... ids);", "public java.util.List<Todo> filterFindByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end);", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "public LearningResultHasActivity[] findWhereActivityIdActivityEquals(int activityIdActivity) throws LearningResultHasActivityDaoException;", "@Query(\"SELECT e.stations FROM EmployeeEntity e where e.id in :employeeId\")\n List<StationEntity> getStationsOfEmployee(@Param(\"employeeId\") long employeeId);", "public TaskList matchTasks(String keyword) {\n TaskList matches = new TaskList();\n\n for (int i = 0; i < tasks.size(); i++) {\n Task task = tasks.get(i);\n if (task.toString().contains(keyword)) {\n matches.addTask(task);\n }\n }\n return matches;\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "protected abstract List performQuery(String[] ids);", "public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end);", "public List<String> searchForScheduleTransactionIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "public List<Task> getAllTasksForUser(long userId);", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end);", "public List<TaskMaster> retrieveTaskWithFilters(Date startDate, Date endDate, Long assignedTo, Long taskPriority, Long projectId, String status, Long createdBy);", "public List<TaskMaster> retrieveTaskByProjectIdAndUserIdAndDates(Long userId, List<Long> projectIds, Date startDate, Date endDate);", "public List<String> searchForScheduleTransactionGroupIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Transactional\r\n\tpublic List<String> getTasks(String assignee) {\r\n\t\tString assign = ORDER_ASSIGNEE;\r\n\t\tlogger.info(\"Received order to getTasks, assignee : \" + assign);\r\n\t\tList<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(assign).list();\r\n\r\n\t\tList<String> orders = tasks.stream().map(task -> {\r\n\t\t\tMap<String, Object> variables = taskService.getVariables(task.getId());\r\n\t\t\treturn (String) variables.get(\"orderid\");\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tlogger.info(\"orderid(s) : \" + orders.toString());\r\n\t\treturn orders;\r\n\t}", "public List<String> searchForScheduleRequestSetIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@GetMapping(\"/bytaskid/{id}\")\r\n public List<TaskStatus> getByTaskId(@PathVariable(value = \"id\") Long id) {\r\n\r\n List<TaskStatus> tsk = dao.findByTaskID(id);\r\n return tsk;\r\n\r\n }", "@Override\r\n\tpublic List<ExecuteTask> getByTime(String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_task_id IN(SELECT task_id FROM task WHERE task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,time1,time2);\r\n\t}", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByActive(Collection<Boolean> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.ACTIVE.in(values));\n }", "List<MemberAdvisoryComment> selectByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "public List<String> searchForScheduleBatchIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Long> getActivityIds(final StreamView inCompositeStream, final long inUserId)\n {\n // check cache for ids and return if found.\n List<Long> activityKeys = getIdListFromCache(inCompositeStream, inUserId);\n\n if (activityKeys != null)\n {\n return activityKeys;\n }\n\n // build critera for getting id list from datastore\n Criteria criteria = getHibernateSession().createCriteria(Activity.class);\n ProjectionList fields = Projections.projectionList();\n fields.add(getColumn(\"id\"));\n criteria.setProjection(fields);\n\n // Get restrictions from loader and add them to criteria. This is basically the\n // \"where\" clause for the query.\n Hashtable restrictionParams = getActivityRestrictions(inCompositeStream, inUserId);\n if (restrictionParams != null)\n {\n // if false, abort query and just return no results.\n if (!addRestrictions(criteria, restrictionParams))\n {\n activityKeys = new ArrayList<Long>(0);\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n return activityKeys;\n }\n }\n\n // set the max results to return.\n criteria.setMaxResults(MAX_LIST_SIZE);\n\n // set the order by date descending\n criteria.addOrder(Order.desc(\"id\"));\n\n // get the list of ids from datastore\n activityKeys = criteria.list();\n\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n\n return activityKeys;\n }", "public void findTasks(ArrayList<Task> tasks, String keywords) {\n ArrayList<Task> filteredTasks;\n filteredTasks = (ArrayList<Task>) tasks.stream()\n .filter((t) -> t.getTask().contains(keywords))\n .collect(Collectors.toList());\n if (filteredTasks.size() == 0) {\n System.out.println(\"OOPS!!! We can't find anything that contains the description.\");\n } else {\n System.out.println(\"Here's what we have found: \");\n printList(filteredTasks);\n }\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public List<Short> searchIdsInRange(long fromValue, long toValue, boolean fromInclusive,\n boolean toInclusive) {\n\n List<Short> list = new ArrayList<Short>();\n searchIdsInRange(root, fromValue, toValue, fromInclusive, toInclusive, list);\n return list;\n }", "public static boolean checkTaskInDb() {\n\n List<Task> taskList = new ArrayList<>();\n try {\n // taskList = Task.listAll(Task.class);\n taskList= Select.from(Task.class).orderBy(\"due_date Desc\").where(\"status=?\", new String[] {\"0\"}).list();\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n if(taskList!=null && taskList.size()>0)\n return true;\n return false;\n }", "ResponseEntity<List<Status>> findTaskStatuses();", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end);", "public IndexedList<Task> search(int noteCount) {\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getNotes().size()==noteCount)\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t\t\n\t}", "List<Workflow> findByIdTask( int nIdTask );", "List<Team> findByIds(List<Long> teamIds);", "@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.assessmentType <> 'AUTOMATIC'\n AND p.exercise.id IN :exerciseIds\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countAllSubmissionsByExerciseIdsSubmitted(@Param(\"exerciseIds\") Set<Long> exerciseIds);", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\r\n\tpublic List<ExecuteTask> getByMemberByTime(int memberId, String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_member_id = ? AND et_task_id IN(SELECT task_id FROM task WHERE task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,memberId,time1,time2);\r\n\t}", "public java.util.List<DataEntry> filterFindByGroupId(long groupId);", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "boolean hasContains();", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Tasks)) {\r\n return false;\r\n }\r\n Tasks other = (Tasks) object;\r\n if ((this.taskId == null && other.taskId != null) || (this.taskId != null && !this.taskId.equals(other.taskId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public java.util.List<Todo> filterFindByGroupId(long groupId);", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByActive(Collection<Boolean> values, int limit) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.ACTIVE.in(values),limit);\n }", "public ArrayList<Integer> getForbiddenIds(int taskId){\n ArrayList<Integer> forbiddenIds = new ArrayList<>();\n DagNode node = nodes.get(taskId);\n forbiddenIds.add(taskId);\n //list will be empty if the task id does not correspond to a node\n if(node != null) {\n //the given task id will automatically be in the list\n //get all of the parent nodes this node\n node.setDiscovered(true);\n\n for (DagNode parent : getAllParentNodes(node)) {\n //add each node to the forbidden list\n forbiddenIds.add(parent.getTaskId());\n }\n //be sure to un-mark all nodes\n for(DagNode n: nodes.values()){\n n.setDiscovered(false);\n }\n }\n return forbiddenIds;\n }", "ObservableList<Task> getUnfilteredTaskList();", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int[] statuses);", "public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end);", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "Set<Task> getAllTasks();", "public List<TreateWait> queryAll() {\n\t\tQuery query = Query.query(Criteria.where(\"id\").exists(true));\n\t\treturn treateWaitDao.queryList(query);\n\t\t\n\t}", "public List<TaskMaster> retrieveIncompleteTask(Long userId);", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}", "public static boolean in(Integer integer, Integer... integers) {\n\treturn null != integers && null != integer && Arrays.asList(integers).contains(integer);\n }", "public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);", "@Override\n public Collection<ExecutionEntity> findInactiveExecutionsByActivityIdAndProcessInstanceId(String activityId, String processInstanceId) {\n log.debug(\"findInactiveExecutionsByActivityIdAndProcessInstanceId[processInstanceId={}, activityId={}]\", processInstanceId, activityId);\n HashMap<String, Object> params = new HashMap<>(3);\n params.put(\"activityId\", activityId);\n params.put(\"processInstanceId\", processInstanceId);\n params.put(\"isActive\", false);\n return findMany(findInactiveExecutionsInActivityAndProcessInstance, params, inactiveExecutionsInActivityAndProcInstMatcher);\n }", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "private List<Integer> filterDocIds(FilterQueryTree filterQueryTree, List<Integer> inputDocIds) {\n if (filterQueryTree == null) {\n List<Integer> allDocs = new ArrayList<>(_totalDocs);\n for (int i = 0; i < _totalDocs; ++i) {\n allDocs.add(i);\n }\n return allDocs;\n }\n\n final List<FilterQueryTree> childFilters = filterQueryTree.getChildren();\n final boolean isLeaf = (childFilters == null) || childFilters.isEmpty();\n\n if (isLeaf) {\n FilterOperator filterType = filterQueryTree.getOperator();\n String column = filterQueryTree.getColumn();\n final List<String> value = filterQueryTree.getValue();\n return getMatchingDocIds(inputDocIds, filterType, column, value);\n }\n\n List<Integer> result = filterDocIds(childFilters.get(0), inputDocIds);\n final FilterOperator operator = filterQueryTree.getOperator();\n for (int i = 1; i < childFilters.size(); ++i) {\n// List<Integer> childResult = operator.equals(FilterOperator.AND) ? filterDocIds(childFilters.get(i), result)\n// : filterDocIds(childFilters.get(i), inputDocIds);\n List<Integer> childResult = filterDocIds(childFilters.get(i), inputDocIds);\n result = combine(result, childResult, operator);\n }\n return result;\n }", "private boolean isInList(int id){\n for (Module module :event.getModules()){\n if(module.getInt_type() == id+1){\n return true;\n }\n }\n return false;\n }", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "List<String> findAllIds();", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}", "public List getAllIds();", "java.util.List<java.lang.Long> getIdsList();", "private boolean contains(Collection<Long> bundleIds, Long bundleId) {\n for (Long id : bundleIds) {\n if (id.longValue() == bundleId.longValue()) {\n return true;\n }\n }\n return false;\n }", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByToId(Collection<String> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.TO_ID.in(values));\n }", "private boolean in(Integer e, ArrayList<Integer> l) {\n for (int i=0; i<l.size();i++) {\n if (l.get(i) == e) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic List<ExecuteTask> getByMemberByOrg(int memberId, int organizationId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_member_id = ? AND et_member_id IN(SELECT mem_id FROM member WHERE mem_organization_id IN\"\r\n\t\t\t\t+ \"(SELECT org_id FROM organization WHERE org_id = ? OR org_parent_organization_id = ?))\";\r\n\t\treturn getForList(sql,memberId,organizationId,organizationId);\r\n\t}", "public List<ScheduledTask> getAllPendingTasks() {\n \t\tSet<String> smembers = jedisConn.smembers(ALL_TASKS);\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// the get actual tasks by the ids\n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "public TaskList matchTasks(String match) {\n TaskList output = new TaskList();\n try {\n for (int f = 0; f < this.getSize(); f++) {\n Task selectedTask = this.getSingleTask(f);\n if (selectedTask.toString().contains(match)) {\n output.addTask(selectedTask);\n }\n }\n } catch (DukeException e) {\n return new TaskList();\n }\n\n return output;\n }", "public interface QuestionRepository extends CrudRepository<QuestionEntity,Long> {\n\n @Query(\"select count(id) from QuestionEntity where id in :questionIds\")\n Long validateQuestionNumbers(@Param(\"questionIds\") List<Long>questionIds);\n}", "TrackerTasks getTrackerTasks(final Integer id);", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);" ]
[ "0.55373454", "0.54821485", "0.5375172", "0.53581524", "0.53258526", "0.520466", "0.5190335", "0.51321137", "0.5017028", "0.4953841", "0.4939477", "0.49354687", "0.49343354", "0.49333918", "0.49289027", "0.49258554", "0.49075007", "0.48994294", "0.48875427", "0.4865281", "0.48611867", "0.4854545", "0.48463887", "0.48387524", "0.48327157", "0.4817243", "0.48042947", "0.48005432", "0.479457", "0.47607473", "0.4740575", "0.4732635", "0.47301665", "0.47164327", "0.47124535", "0.47016314", "0.47007772", "0.46945912", "0.46943858", "0.46921915", "0.4691968", "0.46892434", "0.4681624", "0.46806225", "0.46731588", "0.46722826", "0.46711075", "0.46649066", "0.46612397", "0.46488348", "0.4641688", "0.46203285", "0.4614147", "0.45998985", "0.4597475", "0.45973644", "0.45923677", "0.45893058", "0.4585108", "0.45741883", "0.45727298", "0.45715928", "0.4559243", "0.45541614", "0.45528713", "0.4541054", "0.45408896", "0.45371452", "0.45301604", "0.4525859", "0.45255587", "0.45250747", "0.45234773", "0.4522338", "0.45108587", "0.4510561", "0.45059407", "0.4504135", "0.4502458", "0.449664", "0.44860196", "0.44835502", "0.44734794", "0.44711137", "0.44701904", "0.4467138", "0.44627005", "0.44621712", "0.44420752", "0.44415525", "0.44381106", "0.4435238", "0.4434622", "0.44318506", "0.4424404", "0.44222137", "0.4418799", "0.44139254", "0.44106033", "0.44082117", "0.43991473" ]
0.0
-1
Fetch records that have proc_inst_id_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByProcInstId_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.PROC_INST_ID_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Collection<ExecutionEntity> findInactiveExecutionsByActivityIdAndProcessInstanceId(String activityId, String processInstanceId) {\n log.debug(\"findInactiveExecutionsByActivityIdAndProcessInstanceId[processInstanceId={}, activityId={}]\", processInstanceId, activityId);\n HashMap<String, Object> params = new HashMap<>(3);\n params.put(\"activityId\", activityId);\n params.put(\"processInstanceId\", processInstanceId);\n params.put(\"isActive\", false);\n return findMany(findInactiveExecutionsInActivityAndProcessInstance, params, inactiveExecutionsInActivityAndProcInstMatcher);\n }", "Condition in(QueryParameter parameter, Object... values);", "long countByIdInAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids);", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);", "public BeanIdList findIds() throws SQLException {\n/* 154 */ boolean useBackgroundToContinueFetch = false;\n/* */ \n/* 156 */ this.startNano = System.nanoTime();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 162 */ List<Object> idList = this.query.getIdList();\n/* 163 */ if (idList == null) {\n/* */ \n/* 165 */ idList = Collections.synchronizedList(new ArrayList());\n/* 166 */ this.query.setIdList(idList);\n/* */ } \n/* */ \n/* 169 */ BeanIdList result = new BeanIdList(idList);\n/* */ \n/* 171 */ SpiTransaction t = this.request.getTransaction();\n/* 172 */ Connection conn = t.getInternalConnection();\n/* 173 */ this.pstmt = conn.prepareStatement(this.sql);\n/* */ \n/* 175 */ if (this.query.getBufferFetchSizeHint() > 0) {\n/* 176 */ this.pstmt.setFetchSize(this.query.getBufferFetchSizeHint());\n/* */ }\n/* */ \n/* 179 */ if (this.query.getTimeout() > 0) {\n/* 180 */ this.pstmt.setQueryTimeout(this.query.getTimeout());\n/* */ }\n/* */ \n/* 183 */ this.bindLog = this.predicates.bind(new DataBind(this.pstmt));\n/* */ \n/* 185 */ ResultSet rset = this.pstmt.executeQuery();\n/* 186 */ this.dataReader = new RsetDataReader(rset);\n/* */ \n/* 188 */ boolean hitMaxRows = false;\n/* 189 */ boolean hasMoreRows = false;\n/* 190 */ this.rowCount = 0;\n/* */ \n/* 192 */ DbReadContext ctx = new DbContext();\n/* */ \n/* 194 */ while (rset.next()) {\n/* 195 */ Object idValue = this.desc.getIdBinder().read(ctx);\n/* 196 */ idList.add(idValue);\n/* */ \n/* 198 */ this.dataReader.resetColumnPosition();\n/* 199 */ this.rowCount++;\n/* */ \n/* 201 */ if (this.maxRows > 0 && this.rowCount == this.maxRows) {\n/* 202 */ hitMaxRows = true;\n/* 203 */ hasMoreRows = rset.next();\n/* */ break;\n/* */ } \n/* 206 */ if (this.bgFetchAfter > 0 && this.rowCount >= this.bgFetchAfter) {\n/* 207 */ useBackgroundToContinueFetch = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 212 */ if (hitMaxRows) {\n/* 213 */ result.setHasMore(hasMoreRows);\n/* */ }\n/* */ \n/* 216 */ if (useBackgroundToContinueFetch) {\n/* */ \n/* */ \n/* 219 */ this.request.setBackgroundFetching();\n/* */ \n/* */ \n/* 222 */ BackgroundIdFetch bgFetch = new BackgroundIdFetch(t, rset, this.pstmt, ctx, this.desc, result);\n/* 223 */ FutureTask<Integer> future = new FutureTask<Integer>(bgFetch);\n/* 224 */ this.backgroundExecutor.execute(future);\n/* */ \n/* */ \n/* 227 */ result.setBackgroundFetch(future);\n/* */ } \n/* */ \n/* 230 */ long exeNano = System.nanoTime() - this.startNano;\n/* 231 */ this.executionTimeMicros = (int)exeNano / 1000;\n/* */ \n/* 233 */ return result;\n/* */ } finally {\n/* */ \n/* 236 */ if (!useBackgroundToContinueFetch)\n/* */ {\n/* */ \n/* 239 */ close();\n/* */ }\n/* */ } \n/* */ }", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "@Override\n public List<ExecutionEntity> findChildExecutionsByProcessInstanceId(String processInstanceId) {\n log.debug(\"findChildExecutionsByProcessInstanceId[processInstanceId={}]\", processInstanceId);\n return findMany(findChildExecutionsByProcessInstanceId, processInstanceId, executionsByProcessInstanceIdMatcher);\n }", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public List<Integer> getConIds(ConProcess conProcess) throws AppException;", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "@Override\r\n\tpublic List<ProductRaw_In> getInByPid(int pid) {\n\t\treturn productRaw_InDao.getByPid(pid);\r\n\t}", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public List<Produto> findByIdIn(Integer... ids);", "protected List<String> getVclassIds(VitroRequest vreq) {\n\t\tString[] vclassIds = vreq.getParameterValues(\"vclassId\");\n\t\tif ((vclassIds == null) || (vclassIds.length == 0)) {\n\t\t\tlog.error(\"parameter vclassId expected but not found\");\n\t\t\tthrow new IllegalStateException(\"parameter vclassId expected \");\n\t\t}\n\n\t\tfor (String vclassId : vclassIds) {\n\t\t\tinstantiateVclass(vclassId, vreq);\n\t\t}\n\n\t\treturn Arrays.asList(vclassIds);\n\t}", "@SuppressWarnings(\"rawtypes\")\n public MapList getInProcessCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n\n try {\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&current==\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_PSS_CR_INPROCESS);\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n if (mapList.size() > 0) {\n\n Iterator<Map<String, String>> itrCR = mapList.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n }\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n return mapList;\n } catch (Exception ex) {\n logger.error(\"Error in getInProcessCRs: \", ex);\n throw ex;\n }\n }", "public HashMap<Integer, String> getInterIDsStatus(ArrayList<Integer> interIDs, int networkID, int exporterNumber){\n \n HashMap<Integer, String> result = new HashMap();\n ArrayList<Integer> checkedInterIDs = new ArrayList();\n ArrayList<Integer> interIDsWithSameEventID;\n \n String query;\n String eventID;\n try{\n for(int interID : interIDs){\n \n if(!checkedInterIDs.contains(interID)){\n \n interIDsWithSameEventID = new ArrayList();\n \n query = \"Select eventID from Interactions where interID = \"+interID+\" and networkID = \"+networkID;\n System.out.println(query);\n rs = stmt.executeQuery(query);\n rs.next();\n eventID = rs.getString(1);\n \n query = \"Select interID from Interactions where eventID = '\"+eventID+\"' and networkID = \"+networkID;\n System.out.println(query);\n rs = stmt.executeQuery(query);\n while(rs.next()){\n interIDsWithSameEventID.add(rs.getInt(1));\n }\n \n for(int intID : interIDsWithSameEventID){\n query = \"Select name from ExportStates where exportStateID = (Select exportStateID from ExportHistory where interID = \"+\n intID+\" and exporterNum = \"+exporterNumber+\")\";\n System.out.println(query);\n rs = stmt.executeQuery(query);\n rs.next();\n \n result.put(intID, rs.getString(1));\n } \n }\n }\t\n }catch(Exception e){\n \tSystem.out.println(\"Error to find Skip Duplicate Interaction\");\n \te.printStackTrace();\n }\n return result;\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "List<ProductInfoOutput> findList(List<String> productIdList);", "public static List<String> chkProcess(WmiConsole wmi) throws Throwable\r\n {\n\t\twmi.getWmicProcessId();\r\n\t\t\r\n\t\tList<String> listPIDs = wmi.getGetWmiOutList();\r\n\t\t\r\n\t\t//trim list itens...\r\n\t\tfor (int i = 0; i < listPIDs.size(); i++)\r\n\t\t{ \r\n\t\t\tlistPIDs.set(i, listPIDs.get(i).trim()); \r\n\t\t}\r\n \t\r\n \treturn listPIDs;\r\n }", "public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);", "private List<String> getRunningInstances()\n {\n final long maxResults = 500L; // 500 is sadly the max, see below\n\n ArrayList<String> ids = new ArrayList<>();\n try {\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();\n\n Compute computeService = createComputeService();\n Compute.InstanceGroupManagers.ListManagedInstances request =\n computeService\n .instanceGroupManagers()\n .listManagedInstances(project, zone, managedInstanceGroupName);\n // Notice that while the doc says otherwise, there is not nextPageToken to page\n // through results and so everything needs to be in the same page\n request.setMaxResults(maxResults);\n InstanceGroupManagersListManagedInstancesResponse response = request.execute();\n for (ManagedInstance mi : response.getManagedInstances()) {\n ids.add(GceUtils.extractNameFromInstance(mi.getInstance()));\n }\n log.debug(\"Found running instances [%s]\", String.join(\",\", ids));\n }\n catch (Exception e) {\n log.error(e, \"Unable to get instances.\");\n }\n return ids;\n }", "private boolean isInList(int id){\n for (Module module :event.getModules()){\n if(module.getInt_type() == id+1){\n return true;\n }\n }\n return false;\n }", "boolean hasOnlyProceduresInAnyValues();", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Override\n public List<StorePickStatus> queryByList(QueryParam params) {\n return getSqlSession().getMapper(StorePickStatusDao.class).queryByList(params);\n }", "public static void findSelectedInstances() {\n int selected = 0;\n for (int i = 0; i < allInstances.length; i++) {\n if (allInstances[i][2].equals(\"selected\")) selected++;\n }\n\n // create an array of just the selected instances\n selectedInstances = new String[selected][3];\n int j = 0;\n onlyLocalInstanceSelected = true;\n for (int i = 0; i < allInstances.length; i++) {\n if (allInstances[i][2].equals(\"selected\")) {\n selectedInstances[j][0] = allInstances[i][0];\n selectedInstances[j][1] = allInstances[i][1];\n selectedInstances[j][2] = allInstances[i][2];\n j++;\n if (!allInstances[i][1].toLowerCase().equals(getInstanceName().toLowerCase())) onlyLocalInstanceSelected = false;\n }\n }\n }", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Long> getActivityIds(final StreamView inCompositeStream, final long inUserId)\n {\n // check cache for ids and return if found.\n List<Long> activityKeys = getIdListFromCache(inCompositeStream, inUserId);\n\n if (activityKeys != null)\n {\n return activityKeys;\n }\n\n // build critera for getting id list from datastore\n Criteria criteria = getHibernateSession().createCriteria(Activity.class);\n ProjectionList fields = Projections.projectionList();\n fields.add(getColumn(\"id\"));\n criteria.setProjection(fields);\n\n // Get restrictions from loader and add them to criteria. This is basically the\n // \"where\" clause for the query.\n Hashtable restrictionParams = getActivityRestrictions(inCompositeStream, inUserId);\n if (restrictionParams != null)\n {\n // if false, abort query and just return no results.\n if (!addRestrictions(criteria, restrictionParams))\n {\n activityKeys = new ArrayList<Long>(0);\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n return activityKeys;\n }\n }\n\n // set the max results to return.\n criteria.setMaxResults(MAX_LIST_SIZE);\n\n // set the order by date descending\n criteria.addOrder(Order.desc(\"id\"));\n\n // get the list of ids from datastore\n activityKeys = criteria.list();\n\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n\n return activityKeys;\n }", "private static boolean fetchProcessList(long clientId) {\n\t\tfinal Connection con = DBConnection.getConnection();\n\t\tResultSet amsResultSets = null;\n\t\tResultSet processResultSet = null;\n\t\tPreparedStatement getProcessStatement = null;\n\t\tPreparedStatement existingAmsProcessSync = null;\n\t\ttry {\n\t\t\tcon.setAutoCommit(false);\n\t\t\texistingAmsProcessSync = con\n\t\t\t\t\t.prepareStatement(ResourceManager.getQueryValue(\"QUERY_FETCH_EXISTING_AMS_PROCESS_SYNC_LOG\"));\n\t\t\texistingAmsProcessSync.setLong(1, clientId);\n\t\t\tlog.info(existingAmsProcessSync.toString());\n\t\t\tamsResultSets = existingAmsProcessSync.executeQuery();\n\t\t\t// checking if this clientId exists in ams_process_sync table\n\t\t\tif (amsResultSets.first()) {\n\t\t\t\tcon.commit();\n\t\t\t\t// ams process sync log exists, fetching processes between last_synced_on and\n\t\t\t\t// current timestamp..\n\t\t\t\tgetProcessStatement = con\n\t\t\t\t\t\t.prepareStatement(ResourceManager.getQueryValue(\"QUERY_FETCH_UNSYNCED_PROCESS\"));\n\t\t\t} else {\n\t\t\t\tcon.commit();\n\t\t\t\t// ams process log does not exists, fetching all processes..\n\t\t\t\tgetProcessStatement = con.prepareStatement(ResourceManager.getQueryValue(\"QUERY_FETCH_ALL_PROCESS\"));\n\t\t\t}\n\t\t\tlog.info(getProcessStatement.toString());\n\t\t\tprocessResultSet = getProcessStatement.executeQuery();\n\t\t\tif (processResultSet.first()) {\n\t\t\t\tprocessResultSet.beforeFirst();\n\t\t\t\t// extracting resultSet and building process list\n\t\t\t\tPlatformProcess.Builder processList = resultToProcessBuilderMapper(processResultSet);\n\t\t\t\t// adding an empty processIds map builder\n\t\t\t\tprocessList.addProcessIds(ProcessIds.newBuilder().build());\n\t\t\t\t// publishing to ams\n\t\t\t\treturn publishProcessList(processList.build().toByteArray(), clientId);\n\t\t\t} else {\n\t\t\t\t// process(es) is/are already synced to device, sending message...\n\t\t\t\treturn publishProcessResponseMessage(clientId, \"Process list already synced to device.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t} catch (SQLException e2) {\n\t\t\t\tlog.error(Constants.EXCEPTION, e2);\n\t\t\t}\n\t\t\tlog.error(Constants.EXCEPTION, e);\n\t\t} finally {\n\t\t\tDBConnection.closeConnection(con, existingAmsProcessSync, amsResultSets);\n\t\t\tDBConnection.closeConnection(con, getProcessStatement, processResultSet);\n\t\t}\n\t\treturn false;\n\t}", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NetraNominationRepository extends NominationRepository{\n\n\n\n @Query(\"select nominations from Nomination nominations where nominations.contract.id in :contractIdList\")\n List<Nomination> findAllNomsByContractIdList(@Param(\"contractIdList\") List<Long> contractIdList);\n\n}", "private boolean used(LirNode reg, LirNode ins) {\n if(reg.opCode!=Op.REG) return false;\n if(ins.opCode!=Op.PARALLEL) return false;\n boolean result=false;\n for(int i=0; i<ins.nKids(); i++) {\n if(ins.kid(i).opCode!=Op.SET) return false;\n result=(result | isContained(reg, ins.kid(i).kid(1)));\n }\n return result;\n }", "public List<ApplicationVersionInstanceVO> findApplicationVersionInstancesByEnv(String envId);", "private boolean isIdInCollectionOfSingleIDVOs (int id, Collection vos)\n\t{\n\t\tboolean found = false;\n\t\t\n\t\tfor (Iterator i = vos.iterator(); !found && i.hasNext(); ) {\n\t\t\tSingleIdVO sivo = (SingleIdVO) i.next();\n\t\t\tfound = (sivo.getId() == id);\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "public boolean checkVentureCheckListByMemberSubID(String account, int id) {\n\t\tSl = \"SELECT * FROM venture_checklist WHERE memberAccount=? AND mapSubClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, account);\r\n\t\t\tsmt.setInt(2, id);\r\n\t\t\trs = smt.executeQuery();\r\n\t\t\tif(rs.next()){\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\t\r\n\t\t\trs.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public List<String> searchForScheduleBatchIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "public int[] getAllPids(Activity context) throws Exception {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> pids = activityManager.getRunningServices(Integer.MAX_VALUE);\n int processid = 0;\n int[] retVal = new int[pids.size()];\n Log.d(\"feature\", \"pid size: \" + pids.size());\n for (int i = 0; i < pids.size(); i++) {\n ActivityManager.RunningServiceInfo info = pids.get(i);\n retVal[i] = info.pid;\n Log.d(\"feature\", \"pid: \" + info.service);\n\n return (retVal);\n }\n return(null);\n }", "List<Procdef> selectByExample(ProcdefExample example);", "private HashMap<String, ArrayList<String>> getInstanceIdsPerClientId(TSDBData[] tsdbData) {\n logger.trace(\"BEGIN HashMap<String,ArrayList<String>> getInstanceIdsPerClientId(TSDBData[] tsdbData)\");\n HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();\n for (TSDBData obj : tsdbData) {\n ArrayList<String> columns = obj.getColumns();\n ArrayList<ArrayList<Object>> points = obj.getPoints();\n int clientidIndex = -1;\n int instanceidIndex = -1;\n for (int i = 0; i < columns.size(); i++) {\n if (columns.get(i).equals(\"clientId\"))\n clientidIndex = i;\n else if (columns.get(i).equals(\"instanceId\"))\n instanceidIndex = i;\n }\n for (int i = 0; i < points.size(); i++) {\n String clientId = points.get(i).get(clientidIndex).toString();\n String InstanceId = points.get(i).get(instanceidIndex).toString();\n if (!(map.containsKey(clientId))) {\n map.put(clientId, new ArrayList<String>());\n if (!(map.get(clientId).contains(InstanceId))) {\n map.get(clientId).add(InstanceId);\n }\n } else {\n if (!(map.get(clientId).contains(InstanceId))) {\n map.get(clientId).add(InstanceId);\n }\n\n }\n }\n }\n logger.trace(\"END HashMap<String,ArrayList<String>> getInstanceIdsPerClientId(TSDBData[] tsdbData)\");\n return map;\n }", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "public void getRunningInstances() {\n LogContainerResultCallback resultCallback = new LogContainerResultCallback();\n //override method onNext of resultcallback\n dockerClient.logContainerCmd(\"id\").exec(resultCallback);\n dockerClient.attachContainerCmd(\"id\").withStdIn(new ByteArrayInputStream(\"list\\n\".getBytes()));\n }", "public String createWhereIN(int iterations) {\n StringBuilder sb = new StringBuilder();\n sb.append(\" IN (\");\n for (int ndx = 0; ndx < iterations; ndx++) {\n sb.append(\"?,\");\n }\n sb.deleteCharAt(sb.length() - 1); // remove last comma.\n sb.append(\")\");\n return sb.toString();\n }", "public Long[] getQueryIDs(){\n\t\treturn DataStructureUtils.toArray(ids_ranks.keySet(), Long.class);\n\t}", "public Map<Integer, Boolean> havingSRID(int srid) throws SQLException {\n return retrieveExpected(createNativeHavingSRIDStatement(srid), BOOLEAN);\n }", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "public Items[] findWhereBpIdEquals(int bpId) throws ItemsDaoException;", "boolean getOnlyProceduresInAnyValuesNull();", "public void getBinderPids(ArrayList<Integer> anrBinders) {\n ArrayList<Integer> tmpBindersList = new ArrayList<Integer>();\n try {\n\n for (int j = 0; j < anrBinders.size(); j++) {\n for (int i = 0; i < binderAllPids.size(); i++) {\n if (binderAllPids.get(i).get(0).equals(anrBinders.get(j))) {\n for (int k = 0; k < binderAllPids.get(i).size(); k++) {\n Integer tmp = binderAllPids.get(i).get(k);\n if ((tmpBindersList.contains(tmp) || (binderPids.contains(tmp)))) {\n continue;\n }\n Log.i(BINDERTRACKER, anrBinders.get(j) + \" binder communication with: \" + binderAllPids.get(i).get(k));\n tmpBindersList.add(tmp);\n binderPids.add(tmp);\n }\n continue;\n }\n }\n }\n //no others binders communicated with <anr_pid> ,or have found out all binders communicated with <anr_pid>\n if (tmpBindersList.size() == 0) {\n return;\n }\n if (DEBUG) {\n Log.d(BINDERTRACKER, \"binderPids: \" + binderPids.size() + \",\" + binderPids);\n }\n getBinderPids(tmpBindersList);\n\n } catch (Exception e) {\n Log.e(BINDERTRACKER, \"method getAll() happened unknown error!\");\n }\n }", "@DISPID(45)\r\n\t// = 0x2d. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint instancesExecuting();", "@Test\n public void testProcessQueryByList() {\n Platform si = new Platform();\n OperatingSystem os = si.getOperatingSystem();\n assertNotNull(os.getFamily());\n assertNotNull(os.getManufacturer());\n OperatingSystem.OSVersionInfo versionInfo = os.getVersionInfo();\n assertNotNull(versionInfo);\n\n assertTrue(os.getProcessCount() >= 1);\n assertTrue(os.getThreadCount() >= 1);\n assertTrue(os.getProcessId() > 0);\n\n List<OSProcess> processes = os.getProcesses(5, null);\n assertNotNull(processes);\n // every OS should have at least one process running on it\n assertFalse(processes.isEmpty());\n // the list of pids we want info on\n List<Integer> pids = new ArrayList<>();\n for (OSProcess p : processes) {\n pids.add(p.getProcessID());\n }\n // query for just those processes\n Collection<OSProcess> processes1 = os.getProcesses(pids);\n // there's a potential for a race condition here, if a process we\n // queried for initially wasn't running during the second query. In this case,\n // try again with the shorter list\n while (processes1.size() < pids.size()) {\n pids.clear();\n for (OSProcess p : processes1) {\n pids.add(p.getProcessID());\n }\n // query for just those processes\n processes1 = os.getProcesses(pids);\n }\n assertEquals(processes1.size(), pids.size());\n\n }", "public List<StartActivityBean> getProgramForKey(StartActivityBean startActivityBean) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tList<StartActivityBean> valueList=new ArrayList<StartActivityBean>();\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tvalueList=sqlMapClient.queryForList(\"startActivity.getProgramIdValue\",startActivityBean);\r\n\t\t}catch(Exception e){\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn valueList;\r\n\t}", "public List<RunningQuery> getRunningQueries() {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(RunningQuery.class));\n return handle.createQuery(RunningQuery.extractQuery)\n .mapTo(RunningQuery.class)\n .list();\n });\n }", "public List<String> searchForScheduleRequestSetIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public static List<Apn> query(Context context) {\n String[] simCodes = getSimOperatorCodes(context);\n String[] networkCodes = getNetworkOperatorCodes(context);\n\n Set<Apn> resultSet = new HashSet<>();\n resultSet.addAll(query(context, simCodes[0], simCodes[1]));\n resultSet.addAll(query(context, networkCodes[0], networkCodes[1]));\n\n List<Apn> result = new ArrayList<>(resultSet.size());\n result.addAll(resultSet);\n return result;\n }", "private boolean canStartMonitor(String[] procIds)\n\t{\n\t\t// Ensure that all are uncontrolled by me.\n\t\tfor (String procId : procIds)\n\t\t{\n\t\t\t// It cannot be local\n\t\t\tif (s_procMgr.isLocallyLoaded(procId)) return false;\n\t\t\tIProcedure proc = s_procMgr.getRemoteProcedure(procId);\n\t\t\t\n\t\t\t// Do not allow in certain procedure status\n\t\t\tExecutorStatus st = proc.getRuntimeInformation().getStatus();\n\t\t\tswitch(st)\n\t\t\t{\n\t\t\tcase LOADED:\n\t\t\tcase RELOADING:\n\t\t\tcase UNINIT:\n\t\t\tcase UNKNOWN:\n\t\t\t\treturn false;\n\t\t\tdefault: break;\n\t\t\t}\n\t\t\t\n\t\t\t//TODO set this in preferences\n\t\t\tif (proc.getRuntimeInformation().getMonitoringClients() != null)\n\t\t\t{\n\t\t\t\tif (proc.getRuntimeInformation().getMonitoringClients().length >= 5)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean hasExecId();", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "public List<Integer> getInactiveSubIdsForNoRebill();", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end);", "boolean hasResMineInstanceID();", "@Query(value=\"SELECT s FROM Shelf s, IN(s.book) b WHERE b.id = ?1\", nativeQuery=false\n )\n Optional<Shelf> findShelfByBookId(Integer bookId);", "List<MemberAdvisoryComment> selectByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "List<EmpTaskInfo> queryEmpTasksByCond(Map paramMap);", "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql(o));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\treturn sb.toString() ;\n\t\t}", "boolean containsInstance(Instance instance);", "public java.util.List<Todo> filterFindByG_S(long groupId, int[] statuses);", "long findValues(List<Object> values, List<Column> columns);", "public static Vector<Integer> getAllInstanceIdsByExperimentId(int id) throws SQLException {\n Vector<Integer> res = new Vector<Integer>();\n PreparedStatement st = DatabaseConnector.getInstance().getConn().prepareStatement(\n \"SELECT Instances_idInstance \" +\n \"FROM \" + table + \" \" +\n \"WHERE Experiment_idExperiment=? GROUP BY Instances_idInstance ORDER BY Instances_idInstance;\");\n st.setInt(1, id);\n ResultSet rs = st.executeQuery();\n while (rs.next()) {\n res.add(rs.getInt(1));\n }\n \n return res;\n }", "@Test\n public void testNamedParamWithImmediateValue() {\n List<Long> ids = Arrays.asList(10L, 5L);\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1, ids);\n\n validate(\" from Person hobj1 where hobj1.id in (:np1)\", ids);\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic static List<ProcessInstance> findProcessInstancesByVariableValue(String variable, String value)\n\t\t\tthrows WorkflowException {\n\t\tLogger log = LoggerFactory.getLogger(WorkflowUtils.class);\n\t\tlog.debug(\"findProcessInstanceByNode({})\", value);\n\n\t\tJbpmContext jbpmContext = JBPMUtils.getConfig().createJbpmContext();\n\t\tList<ProcessInstance> al = new ArrayList<>();\n\n\t\ttry {\n\t\t\tif (value != null) {\n\t\t\t\tGraphSession graphSession = jbpmContext.getGraphSession();\n\t\t\t\tList procDefList = graphSession.findAllProcessDefinitions();\n\n\t\t\t\tfor (Iterator itPd = procDefList.iterator(); itPd.hasNext();) {\n\t\t\t\t\tProcessDefinition procDef = (org.jbpm.graph.def.ProcessDefinition) itPd.next();\n\t\t\t\t\tList procInsList = graphSession.findProcessInstances(procDef.getId());\n\n\t\t\t\t\tfor (Iterator itPi = procInsList.iterator(); itPi.hasNext();) {\n\t\t\t\t\t\torg.jbpm.graph.exe.ProcessInstance procIns = (org.jbpm.graph.exe.ProcessInstance) itPi.next();\n\n\t\t\t\t\t\tif (value.equals(procIns.getContextInstance().getVariable(variable))) {\n\t\t\t\t\t\t\tal.add(WorkflowUtils.copy(procIns));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (JbpmException e) {\n\t\t\tthrow new WorkflowException(e.getMessage(), e);\n\t\t} finally {\n\t\t\tjbpmContext.close();\n\t\t}\n\n\t\tlog.debug(\"findProcessInstanceByNode: {}\", al);\n\t\treturn al;\n\t}", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "public LearningResultHasActivity[] findWhereActivityIdActivityEquals(int activityIdActivity) throws LearningResultHasActivityDaoException;", "List<Address> findByStateIn(List<String> stateList);", "public boolean contains(CParamImpl param);", "private boolean in(Integer e, ArrayList<Integer> l) {\n for (int i=0; i<l.size();i++) {\n if (l.get(i) == e) {\n return true;\n }\n }\n return false;\n }", "List<SysId> selectByExample(SysIdExample example);", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids);", "public List getProcessIds()\r\n\t{\n\t\treturn null;\r\n\t}", "public Collection search(Collection instances, Slot slot, String operation, Object obj) {\n ArrayList resultInstances = new ArrayList();\n Iterator i = instances.iterator();\n String value = (String) obj;\n while (i.hasNext()) {\n Instance instance = (Instance) i.next();\n if (testSymbol(getTestIndex(operation), instance, slot, value))\n resultInstances.add(instance);\n }\n return resultInstances;\n }", "public List<ServiceInstance> lookupInstances(String serviceName);", "public List getValidarSapExistencia(Map criteria);", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<Long> queryClearProcessByCondition(Map<String, Object> param) {\r\n\t\treturn super.getList(\"queryClearProcessByCondition\", param);\r\n\t}", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "@Override\n public List<StorePickStatus> queryByListStore(QueryParam params) {\n return getSqlSession().getMapper(StorePickStatusDao.class).queryByListStore(params);\n }", "private List<Integer> filterDocIds(FilterQueryTree filterQueryTree, List<Integer> inputDocIds) {\n if (filterQueryTree == null) {\n List<Integer> allDocs = new ArrayList<>(_totalDocs);\n for (int i = 0; i < _totalDocs; ++i) {\n allDocs.add(i);\n }\n return allDocs;\n }\n\n final List<FilterQueryTree> childFilters = filterQueryTree.getChildren();\n final boolean isLeaf = (childFilters == null) || childFilters.isEmpty();\n\n if (isLeaf) {\n FilterOperator filterType = filterQueryTree.getOperator();\n String column = filterQueryTree.getColumn();\n final List<String> value = filterQueryTree.getValue();\n return getMatchingDocIds(inputDocIds, filterType, column, value);\n }\n\n List<Integer> result = filterDocIds(childFilters.get(0), inputDocIds);\n final FilterOperator operator = filterQueryTree.getOperator();\n for (int i = 1; i < childFilters.size(); ++i) {\n// List<Integer> childResult = operator.equals(FilterOperator.AND) ? filterDocIds(childFilters.get(i), result)\n// : filterDocIds(childFilters.get(i), inputDocIds);\n List<Integer> childResult = filterDocIds(childFilters.get(i), inputDocIds);\n result = combine(result, childResult, operator);\n }\n return result;\n }", "public boolean isInList();", "List<SpCharInSeq> findByMultipleIds(List<Integer> spcharinseqIds, boolean orderedReturn);", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}" ]
[ "0.48800558", "0.48123953", "0.4782288", "0.47118232", "0.46464208", "0.4581349", "0.45762", "0.4575775", "0.45344558", "0.4502453", "0.4495769", "0.44944298", "0.44671774", "0.44563073", "0.44150302", "0.4395624", "0.43928182", "0.43810415", "0.43796918", "0.4376437", "0.43675122", "0.43558583", "0.434892", "0.43465713", "0.43448284", "0.43299058", "0.43179592", "0.43087158", "0.43065867", "0.430331", "0.4285153", "0.4275154", "0.4269376", "0.426807", "0.42437077", "0.42315474", "0.4229857", "0.42248547", "0.42199737", "0.4218121", "0.42163655", "0.41944546", "0.4184186", "0.4181332", "0.41800833", "0.4179916", "0.41690508", "0.41686878", "0.4160756", "0.41586697", "0.4152654", "0.4151081", "0.41497165", "0.41438088", "0.41394457", "0.41375026", "0.4137306", "0.413567", "0.41352996", "0.41349944", "0.41346785", "0.4134034", "0.4131865", "0.4119703", "0.41163474", "0.41086295", "0.40769756", "0.4075943", "0.40751046", "0.40690896", "0.40653738", "0.40627137", "0.40518326", "0.40503848", "0.40503517", "0.4050089", "0.40494952", "0.4046756", "0.40445882", "0.4038949", "0.4035442", "0.40302926", "0.40290833", "0.40261066", "0.4021905", "0.4019963", "0.4019791", "0.40187252", "0.40129703", "0.4008964", "0.40012044", "0.40003893", "0.39994395", "0.39931524", "0.39930627", "0.39927202", "0.39925468", "0.39914256", "0.39887658", "0.3985211" ]
0.44488448
14
Fetch records that have url_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByUrl_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.URL_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<UrlInfo> searchAllUrl() {\n\n //getSynonyms(queryKeywords);\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<UrlEntry> entryIdList = UrlEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (UrlEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<UrlInfo> urlList = UrlInfo.find().select(\"url\").where().in(\"urlEntryId\", finalIdList).findList();\n /*ArrayList<String> urls = new ArrayList<String>();\n for (UrlInfo urlInfo : urlList) {\n urls.add(urlInfo.getUrl());\n }\n System.out.println(\"urls in search----\" + urls);*/\n return urlList;\n }", "private boolean urlInLinkedList(URL url, LinkedList<String> set){\n boolean returnBoolean = false;\n\n for (String setItem : set){\n if (NetworkUtils.urlHostPathMatch(NetworkUtils.makeURL(setItem), url)) {\n// Log.v(\"DLAsync.urlInHashSet\", \" just found \" + url.toString() + \" in \" + set.toString());\n returnBoolean = true;\n }\n }\n return returnBoolean;\n }", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}", "List<WebURL> Filter(List<WebURL> urls){\n return null;\n }", "Condition in(QueryParameter parameter, Object... values);", "ImmutableList<SchemaOrgType> getIsBasedOnUrlList();", "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods> fetchByUrl(String... values) {\n return fetch(TOfferGoods.T_OFFER_GOODS.URL, values);\n }", "@Query(\"{domain: { $regex: ?0 } })\")\n List<FeedbackData> findCustomByRegExUrl(String url);", "@Override\n\tpublic Collection<URL> getUrlsToFilter() {\n\t\tSet<URL> filterSet = new HashSet<URL>();\n\t\tString url=\"http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C \";\n\t\tfilterSet.add(URL.valueOf(url));\n\t\treturn filterSet;\n\t}", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "public static List<UrlInfo> searchUrl(ArrayList<Long> keywordIdList) {\n\n //getSynonyms(queryKeywords);\n\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n String email = Secured.getUser(ctx());\n System.out.println(\"LOgged in user in search--\" + email);\n List<UrlEntry> entryIdList = UrlEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .in(\"entryId\", keywordIdList)\n .findList();\n for (UrlEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<UrlInfo> urlList = UrlInfo.find().select(\"url\").where().in(\"urlEntryId\", finalIdList).findList();\n return urlList;\n }", "@Description(\"request url contains '{urlExpression}' or fits regExp pattern '{urlExpression}'\")\n public static Criteria<HarEntry> recordedRequestUrlMatches(@DescriptionFragment(\"urlExpression\") String urlExpression) {\n checkArgument(isNotBlank(urlExpression), \"URL Substring/RegExp should be defined\");\n\n return condition(entry -> {\n String requestUrl = entry.getRequest().getUrl();\n\n return ofNullable(requestUrl)\n .map(s -> checkByStringContainingOrRegExp(urlExpression).test(s))\n .orElse(false);\n });\n }", "public static boolean isUrl(List<String> urlList, String url) {\n if (StringUtils.isNotEmpty(url) && urlList != null) {\r\n String[] needPri = url.split(DELIMITED_CHAR);\r\n for (String pri : needPri) {\r\n if (!urlList.contains(pri)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "private synchronized static boolean arrayList_contain(ArrayList<?> _arrayList, String url)\n\t{\n\t\treturn _arrayList.contains(url);\n\t}", "Builder addIsBasedOnUrl(URL value);", "public static String [] productsIdList_get(String url){\n\t\tString [] arrList = null; \n\t\tDocument doc=doc_get(url); \n\t\tif(doc!=null){\n\t\t\tElements link_span=doc.select(\"body>div.searchwrap.w980>div#bodyRight>#search_result>#plist>#search_table>#productsIdList\");\n//\t\t\tSystem.out.println(link_span.attr(\"value\"));\n\t\t\tarrList =link_span.attr(\"value\").split(\",\"); \n\t\t\treturn arrList;\n\t\t}\n\t\treturn arrList;\n\t}", "UrlMap findByValue(String value);", "@Override\n public List<JurUrl> selectByExample(JurUrlExample example) {\n return jurUrlMapper.selectByExample(example);\n }", "Builder addIsBasedOnUrl(String value);", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value = \"SELECT u FROM Car u WHERE lower (u.color) IN :colors\")\n\tList<Car> findCarsByColor(@Param(\"colors\") String color);", "public Map<String, Map<String, Boolean>> containExternalLinks(Map<String, List<String>> data) throws IOException\n {\n List<List<String>> pagelinks = wiki.getExternalLinksOnPage(new ArrayList<>(data.keySet()));\n int counter = 0;\n Map<String, Map<String, Boolean>> ret = new HashMap<>();\n for (Map.Entry<String, List<String>> entry : data.entrySet())\n { \n List<String> addedlinks = entry.getValue();\n List<String> currentlinks = pagelinks.get(counter);\n Map<String, Boolean> stillthere = new HashMap<>();\n for (int i = 0; i < addedlinks.size(); i++)\n {\n String url = addedlinks.get(i);\n stillthere.put(url, currentlinks.contains(url));\n }\n ret.put(entry.getKey(), stillthere);\n counter++;\n }\n return ret;\n }", "public boolean contains(URL url) {\n return super.contains(normalize(url));\n }", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public List<PropertyImages> findWhereSrcUrlEquals(String srcUrl) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\treturn getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE SRC_URL = ? ORDER BY SRC_URL\", this,srcUrl);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "boolean hasPagingValues(TrackList<? extends Track> trackList);", "public List<JRepositoryPojo> fetchByJUrl(String... values) {\n return fetch(JRepository.REPOSITORY.URL, values);\n }", "public static TreeSet<String> webServiceSearchValues(String searchValue,\n boolean hasExact,\n boolean hasNarrow,\n boolean hasRelated,\n boolean hasNarrowRelated,\n boolean hasAll\n ) {\n HttpGet httpGet = null;\n CloseableHttpClient httpClient = HttpClientBuilder.create().build();\n String format = \"list\";\n TreeSet<String> searchValues = new TreeSet<String>();\n \n String exactServiceURL = BASE_SERVICE_URL + \"exact\" + \"/\" + format;\n String narrowServiceURL = BASE_SERVICE_URL + \"narrow\" + \"/\" + format;\n String relatedServiceURL = BASE_SERVICE_URL + \"related\" + \"/\" + format;\n String narrowRelatedServiceURL = BASE_SERVICE_URL + \"narrowrelated\" + \"/\" + format;\n String allServiceURL = BASE_SERVICE_URL + \"all\" + \"/\" + format;\n \n if (searchValue != null && !searchValue.equals(\"\")) {\n try {\n String encodedValue = URLEncoder.encode(searchValue, \"UTF-8\");\n exactServiceURL += \"/\" + encodedValue;\n narrowServiceURL += \"/\" + encodedValue;\n relatedServiceURL += \"/\" + encodedValue;\n narrowRelatedServiceURL += \"/\" + encodedValue;\n allServiceURL += \"/\" + encodedValue;\n }\n catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n \n try { \n \n if (hasAll) {\n httpGet = new HttpGet(allServiceURL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n String[] alls = entityString.split(\"\\n\");\n for (String all : alls) {\n if (all != null && !all.equals(\"\")) {\n searchValues.add(all);\n }\n }\n }\n }\n }\n \n if (hasExact) {\n httpGet = new HttpGet(exactServiceURL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n String[] synonyms = entityString.split(\"\\n\");\n for (String synonym : synonyms) {\n if (synonym != null && !synonym.equals(\"\")) {\n searchValues.add(synonym);\n }\n }\n }\n }\n }\n \n if (hasNarrow) {\n httpGet = new HttpGet(narrowServiceURL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n String[] narrows = entityString.split(\"\\n\");\n for (String narrow : narrows) {\n if (narrow != null && !narrow.equals(\"\")) {\n searchValues.add(narrow);\n }\n }\n }\n }\n }\n \n if (hasRelated) {\n httpGet = new HttpGet(relatedServiceURL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n String[] relateds = entityString.split(\"\\n\");\n for (String related : relateds) {\n if (related != null && !related.equals(\"\")) {\n searchValues.add(related);\n }\n }\n }\n }\n }\n \n if (hasRelated) {\n httpGet = new HttpGet(narrowRelatedServiceURL);\n HttpResponse httpResponse = httpClient.execute(httpGet);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK) {\n HttpEntity httpEntity = httpResponse.getEntity();\n String entityString = EntityUtils.toString(httpEntity);\n if (entityString != null) {\n String[] narrowRelateds = entityString.split(\"\\n\");\n for (String narrowRelated : narrowRelateds) {\n if (narrowRelated != null && !narrowRelated.equals(\"\")) {\n searchValues.add(narrowRelated);\n }\n }\n }\n }\n }\n \n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n \t\tcloseHttpClient(httpClient);\n \t }\n }\n \n return searchValues;\n }", "public java.util.List<Todo> filterFindByG_UT_ST(\n\t\tlong groupId, String urlTitle, int[] statuses, int start, int end);", "List<FeedbackData> findByUrl(String url);", "public static boolean in(String strs, String str) {\n\treturn null != strs && null != str && Arrays.asList(strs.split(\",\")).contains(str);\n }", "@Description(\"request url equals to '{url}'\")\n public static Criteria<HarEntry> recordedRequestUrl(@DescriptionFragment(\"url\") String url) {\n checkArgument(isNotBlank(url), \"URL should be defined\");\n\n return condition(entry -> {\n String requestUrl = entry.getRequest().getUrl();\n\n return Objects.equals(requestUrl, url);\n });\n }", "List<Address> findByStateIn(List<String> stateList);", "public static boolean match(String URL){\n\t\tboolean flag = false;\n\t\tIterator<PageEntity> iter = resultQueue.iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tPageEntity p = (PageEntity) iter.next();\n\t\t\tif(URL.equals(p.getURL())){\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "public java.util.List<Todo> filterFindByG_UT_ST(\n\t\tlong groupId, String urlTitle, int[] statuses);", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "@Override\r\n public List<String> getMatchedURIs(boolean arg0) {\n return null;\r\n }", "List<E> list(String field, String contains);", "@In String search();", "protected static boolean hasEntryInList(String key, String entry) {\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n return false;\n\n for (String e: entries.split(\":\"))\n if (e.equalsIgnoreCase(entry))\n return true;\n\n return false;\n }", "public void processLargeInList(Set values);", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "ObservableList<Link> getFilteredLinkList();", "boolean hasContains();", "public List<JRepositoryPojo> fetchRangeOfJUrl(String lowerInclusive, String upperInclusive) {\n return fetchRange(JRepository.REPOSITORY.URL, lowerInclusive, upperInclusive);\n }", "public void addInFilter(@Nullable String fieldName, @NonNull String values) {\n addInFilter(fieldName, SdkUtils.parseListString(values));\n }", "private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n for(String s : p.getPersonTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n }\n }", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfUrl(String lowerInclusive, String upperInclusive) {\n return fetchRange(Document.DOCUMENT.URL, lowerInclusive, upperInclusive);\n }", "private List<Woacrawledurl> readCrawledUrls()\n\t{\n\t\tString hql = \"from Woacrawledurl where instanceId=\"\n\t\t\t\t+ this.param.instance.getTaskinstanceId() + \"order by id\";\n\t\tSessionFactory sessionFactory = TaskFactory.getSessionFactory(this.param.dbid);\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tTransaction t = session.beginTransaction();\n\t\tQuery q = session.createQuery(hql);\n\t\tList<Woacrawledurl> list = q.list();\n\t\tt.commit();\n\t\treturn list;\n\t}", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "public <T> void addInFilter(@Nullable String fieldName, @NonNull T[] values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "UrlMap findByKey(String key);", "List<ProductInfoOutput> findList(List<String> productIdList);", "private String doUsedIn(SlingHttpServletRequest request) {\n String usedin[] = request.getParameterValues(\"usedin\");\n if (usedin != null && usedin.length > 0) {\n StringBuilder sb = new StringBuilder();\n\n for (String u : usedin) {\n sb.append(\"jcr:contains(@sakai:linkpaths,\\\"\").append(u).append(\"\\\") or \");\n }\n\n String usedinClause = sb.toString();\n int i = usedinClause.lastIndexOf(\" or \");\n if (i > -1) {\n usedinClause = usedinClause.substring(0, i);\n }\n if (usedinClause.length() > 0) {\n usedinClause = \" and (\" + usedinClause + \")\";\n return usedinClause;\n }\n }\n return \"\";\n }", "@Query(\"SELECT * FROM content.pages WHERE URL = :url ORDER BY slice\")\n public Result<Slice> getAllByUrl(@Param(\"url\") String url);", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "List<Online> selectByExample(OnlineExample example);", "@GET\n @Path(\"/search/{ids}\")\n @Produces(\"application/json;charset=UTF-8\")\n @GZIP\n @NoCache\n public List<SourceVo> searchSourcesById(\n @PathParam(\"ids\") String ids) {\n\n Set<Integer> idSet = Arrays.stream(ids.split(\",\"))\n .map(Integer::valueOf)\n .collect(Collectors.toSet());\n\n return sourceService.findByIds(idSet).stream()\n .map(p -> p.toVo(DataFilter.get()))\n .collect(Collectors.toList());\n }", "public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl = new URLValue(entity.getKey(), entity.getURL(), entity.getUpdatingPeriod());\n\t\t\turls.put(url.getKey(), url);\n\t\t}\n\t\tresults.close();\n\t\treturn urls;\n\t}", "private void ExtractURLs(String line)\n {\n String matchedURL = \"\";\n Matcher urlMatcher = urlPattern.matcher(line);\n\n while (urlMatcher.find())\n {\n matchedURL = urlMatcher.group();\n\n if (!distinctURLs.containsKey(matchedURL))\n {\n distinctURLs.put(matchedURL,matchedURL);\n }\n }\n }", "Set<URI> fetchAllUris(ServicePath service);", "public List<ViewXwZqkh> Query(String filters, String orders, Object... values);", "public List<cn.edu.kmust.flst.domain.flst.tables.pojos.Article> fetchByArticleSourcesLink(String... values) {\n return fetch(Article.ARTICLE.ARTICLE_SOURCES_LINK, values);\n }", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "@Query(value = \"select * from account_details where name ILIKE concat('%',?1,'%')\"+\n \" or country ILIKE concat('%',?1,'%') or address ILIKE concat('%',?1,'%')\"+\n \" or state ILIKE concat('%',?1,'%')\"+\n \" or city ILIKE concat('%',?1,'%')\",nativeQuery = true)\n List<AccountDetail> retrieveAllBySearchCriteria(String pattern);", "List<SkuAvailability> lookupSKUAvailability(List<Long> skuIds, boolean realTime);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "private List<VideoItem> filter(List<VideoItem> models, String query) {\n query = query.toLowerCase();\n final List<VideoItem> filteredModelList = new ArrayList<>();\n for (final VideoItem model : models) {\n final String text = model.getTitle().toLowerCase();\n if (text.contains(query)) {\n filteredModelList.add(model);\n }\n }\n return filteredModelList;\n }", "private List<Map<String, String>> getValues(String select, String where,\n\t String tableName, String uri) throws MediatorException {\n\t// prepare query; replace relevant object name with the uri\n\tString newQuery = where;\n\tnewQuery = newQuery.replaceAll(\"\\\\?o_\" + tableName + \" \", \"<\" + uri\n\t\t+ \"> \");\n\t// System.out.println(\"newq=\" + newQuery);\n\n\treturn JenaUtil.executeQueryExtractValues(model, select + newQuery);\n }", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all url address\");\n List<UrlAddress> all = urlRepository.findAll();\n return all;\n }", "public Set<String> loadAllURLKeys()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tSet<String> urlKeys = Sets.newHashSet();\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turlKeys.add(entity.getKey());\n\t\t}\n\t\tresults.close();\n\t\treturn urlKeys;\n\t}", "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"names\") Collection<String> brandName);", "@Override\n\tpublic List<HomeDetails> multimatchquery(String input) {\n\t\treturn null;\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsAll(String field, String... values);", "List<PageItemCfg> selectByExample(PageItemCfgExample example);", "@Repository\npublic interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "private boolean matchUrl(String url) {\n return url.contains(\"v1/gifs/\");\n }", "public JsonArray pagedKeys(Url url);", "private List<Site> filterSitebyAuthzGroupIds(Set<String> authzGroupIds, List<Site> sites){\r\n\r\n\tList<Site> filteredSites = new ArrayList<Site>();\r\n\r\n\tfor(Site s : sites){\r\n\t String siteRef = \"/site/\"+s.getId();\r\n\r\n\t if(authzGroupIds.contains(siteRef)){\r\n\t\tfilteredSites.add(s);\r\n\t }\r\n\t}\r\n\r\n\treturn filteredSites;\r\n }", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "private Future<List<JsonObject>> fetch(Map<String, List<String>> request) {\n Promise<List<JsonObject>> p = Promise.promise();\n List<String> resIds = new ArrayList<>();\n\n if (request.containsKey(RES)) {\n resIds.addAll(request.get(RES));\n\n // get resGrpId from resID\n resIds.addAll(\n resIds.stream()\n .map(e -> e.split(\"/\"))\n .map(obj -> obj[0] + \"/\" + obj[1] + \"/\" + obj[2] + \"/\" + obj[3])\n .collect(Collectors.toList()));\n }\n\n if (request.containsKey(RES_GRP)) resIds.addAll(request.get(RES_GRP));\n\n List<String> distinctRes = resIds.stream().distinct().collect(Collectors.toList());\n\n List<Future> fetchFutures =\n distinctRes.stream().map(this::fetchItem).collect(Collectors.toList());\n\n CompositeFuture.all(fetchFutures)\n .onSuccess(\n successHandler -> {\n p.complete(\n fetchFutures.stream()\n .map(x -> (JsonObject) x.result())\n .collect(Collectors.toList()));\n })\n .onFailure(\n failureHandler -> {\n p.fail(failureHandler);\n });\n return p.future();\n }", "protected abstract List performQuery(String[] ids);", "boolean get(List<T> datas);", "List<Destinations> selectByExample(DestinationsExample example);", "public static List<Result> getDataByFilter(String tableName, String startRowKey, String endRowKey, String regexKey, int num) {\n FilterList filterList = new FilterList(FilterList.Operator.MUST_PASS_ALL);\n\n //a row filter using regex\n RegexStringComparator rc = new RegexStringComparator(regexKey);\n RowFilter rowFilter = new RowFilter(CompareFilter.CompareOp.EQUAL, rc);\n\n //filter the the num in a page\n Filter filterNum = new PageFilter(num);\n\n //add them into filter list\n filterList.addFilter(rowFilter);\n filterList.addFilter(filterNum);\n\n //setup a scan and set the range and regex of row\n Scan scan = new Scan();\n scan.setStartRow(startRowKey.getBytes());\n scan.setStopRow(endRowKey.getBytes());\n scan.setFilter(filterList);\n\n //get result\n return getResultsFromScan(tableName, scan);\n }", "List<Blacklist> selectByExample(BlacklistExample example);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "List<Authority> findByNameIn(List<AuthorityName> names);", "public static boolean isValueContainedInColumnCSV(String value, String column, String filePath) {\n\t\tMap<String, List<String>> csvMap = buildCsvMap(filePath);\n\n\t\tif (csvMap.containsKey(column)) {\n\t\t\tfor (String columnValue : csvMap.get(column)) {\n\t\t\t\tif (columnValue.contains(value)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "List<SkuAvailability> lookupSKUAvailabilityForLocation(List<Long> skuIds, Long locationId, boolean realTime);", "private boolean isInDatabase (String url) throws SQLException {\r\n\t\ttry {\r\n\t\t\tpstmt = conn.prepareStatement(\"SELECT * FROM RemoteSite WHERE url = ?\");\r\n\t\t\tpstmt.setString(1, url);\r\n\t\t\trset = pstmt.executeQuery();\r\n\t\t\tboolean inDB = rset.next();\r\n\t\t\treturn inDB;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tDatabaseConnection.closeStmt(pstmt, rset);\r\n\t\t}\r\n\t}", "private static boolean isFromDomain(\n\t\t\tfinal UriComponents url,\n\t\t\tfinal List<String> domains) {\n\t\treturn ((url != null)\n\t\t\t\t&& domains.stream().anyMatch(searchEngine -> (searchEngine != null) && url.getHost().toLowerCase().startsWith(searchEngine.toLowerCase())));\n\t}", "String booleanQueryMultipleFields(String[] fields, String[] vals,\n\t\t\tString[] parsed, String operator, int from, int size,\n\t\t\tboolean isSubdoc, DomeoPermissions permissions3) {\n\t\tString query = buildGenericBooleanQuery(fields, vals, parsed, operator,\n\t\t\t\tfrom, size, permissions3);\n\t\tSystem.out.println(query);\n\t\tString searchUrl = isSubdoc ? esSearchSubdocUrl : esSearchUrl;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(searchUrl, HTTP_POST, query);\n\t\treturn decodeNS(lastResponse);\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsAll(EntityField field, String... values);", "@Override\r\n public List<String> getMatchedURIs() {\n return null;\r\n }", "List<?> query(Object inputObject, Settings settings);", "public interface UrlFilter {\n /**\n * @param url The url to be matched.\n * @return Whether this filter matches |url|.\n */\n public boolean matchesUrl(String url);\n}", "List<Crawl> selectByExample(CrawlExample example);", "public void getSearchList(String query, int mode , Long since, Long max, AsyncHttpResponseHandler handler) {\n if (query == null || query.length() == 0) {\n return;\n }\n\n String apiUrl = getApiUrl(\"search/tweets.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"q\", query);\n params.put(\"result_type\", mode == SearchActivity.TOP_TWEETS ? \"popular\" : \"recent\");\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "public static Set<String> getSupplUrls(final Record record)\n\t{\n\t\treturn MarcUtils.getSupplUrls(record);\n\t}" ]
[ "0.60626894", "0.57519066", "0.56553566", "0.5423034", "0.53290087", "0.5284687", "0.52470523", "0.50897026", "0.5079474", "0.5071101", "0.5063617", "0.50540173", "0.502841", "0.5013611", "0.49981865", "0.4996614", "0.4977402", "0.49602172", "0.48934397", "0.4887342", "0.48619148", "0.48607147", "0.48552102", "0.48260415", "0.4823427", "0.48049575", "0.46909237", "0.46907482", "0.4682761", "0.46786198", "0.4670324", "0.46673796", "0.4654662", "0.46489888", "0.4647055", "0.46311194", "0.46285763", "0.4624246", "0.46164265", "0.46154076", "0.46044704", "0.45755336", "0.45708942", "0.456217", "0.4550651", "0.45455748", "0.45423847", "0.4520611", "0.45196438", "0.44925162", "0.4483597", "0.44767833", "0.44600335", "0.4457869", "0.44555166", "0.44519043", "0.44466785", "0.44428062", "0.44407722", "0.44404057", "0.44344878", "0.442908", "0.4420839", "0.4417866", "0.44166777", "0.44146022", "0.44125086", "0.4403462", "0.44015002", "0.4391586", "0.4378534", "0.43766454", "0.43752506", "0.4374115", "0.43720335", "0.43652192", "0.43649194", "0.43632278", "0.43558198", "0.43548632", "0.43546987", "0.43533552", "0.43522373", "0.4349931", "0.4347411", "0.43418416", "0.43409416", "0.4340802", "0.43396953", "0.4333792", "0.43330958", "0.43229783", "0.432154", "0.4318613", "0.43154934", "0.43132156", "0.4313073", "0.4309048", "0.43079546", "0.43078396", "0.4307704" ]
0.0
-1
Fetch records that have content_id_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByContentId_(String... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.CONTENT_ID_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Long> findActiveContentFilesForContentUid(@Param(\"contentUid\") long contentUid);", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "Condition in(QueryParameter parameter, Object... values);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "@Test\n public void test05FindContentTypes() throws Exception\n {\n List<Integer> cids = new ArrayList<Integer>();\n \n cids.addAll(ms_cms.findContentIdsByType(311));\n cids.addAll(ms_cms.findContentIdsByType(305));\n cids.addAll(ms_cms.findContentIdsByType(313));\n \n Set<Long> contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == 3);\n assertTrue(contenttypeids.contains(311L));\n assertTrue(contenttypeids.contains(305L));\n assertTrue(contenttypeids.contains(313L));\n \n // Test large collection of content ids\n cids.clear();\n \n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n cids.addAll(ms_cms.findContentIdsByType(ALL_FF_TYPES[i])); \n }\n \n contenttypeids = ms_cms.findContentTypesForIds(cids);\n assertNotNull(contenttypeids);\n assertTrue(contenttypeids.size() == ALL_FF_TYPES.length);\n for(int i = 0; i < ALL_FF_TYPES.length; i++)\n {\n assertTrue(contenttypeids.contains(new Long(ALL_FF_TYPES[i])));\n }\n }", "long countByIdInAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids);", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "@Query(\"SELECT * FROM test WHERE patientId IN (:patientId)\")\n LiveData<List<Test>> getTestByPatiendId(int patientId);", "public Query in(String key, Object[] value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.IN), key, value);\n return this;\n }", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "private boolean contains(Collection<Long> bundleIds, Long bundleId) {\n for (Long id : bundleIds) {\n if (id.longValue() == bundleId.longValue()) {\n return true;\n }\n }\n return false;\n }", "@Query(value = \"select * from chat_room cr where cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\",nativeQuery = true)\n List<ChatRoomModel> findByIdsAndIsActiveTrue(@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}", "Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );", "public ContentList findAll(String[] keys, Object[] values);", "public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids);", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "public LearningResultHasActivity[] findWhereActivityIdActivityEquals(int activityIdActivity) throws LearningResultHasActivityDaoException;", "public ArrayList<ContentTag> getContentTagByAllTags(ContentTagRequest contentTagRequest){\n\n Integer[] tagArray = contentTagRequest.getTagIdArray();\n Set<Integer> usedIDs = new HashSet<>();\n ArrayList<ContentTag> contentTags = new ArrayList<>();\n\n for(Integer tag : tagArray){\n\n Iterable<ContentTag> contentTags1 = contentTagRepository.findByTagID(tag);\n\n for(ContentTag contentTag : contentTags1){\n\n if(usedIDs.contains(contentTag.getContentID())) {\n //Do Nothing\n }\n else{\n usedIDs.add(contentTag.getContentID());\n contentTags.add(contentTag);\n }\n }\n }\n contentTags.sort(Comparator.comparing(a -> a.getContentID()));\n Collections.reverse(contentTags);\n return contentTags;\n }", "@Repository\npublic interface SysResourceRepository extends JpaRepository<SysResourceEntity, Integer> {\n @Query(\"SELECT DISTINCT n FROM SysResourceEntity m INNER JOIN SysResourceEntity n ON m.parentId = n.id WHERE m.url IN (:urls)\")\n Set<SysResourceEntity> findByList(@Param(\"urls\") List<String> urls);\n\n Set<SysResourceEntity> findByUrlIn(List<String> urls);\n}", "@Override\n\tpublic List<TbContent> getContentListByCid(long cid) {\n\t\tTbContentExample example = new TbContentExample();\n\t\tCriteria criteria = example.createCriteria();\n\t\t//设置查询条件\n\t\tcriteria.andCategoryIdEqualTo(cid);\n\t\t//执行查询\n\t\tList<TbContent> list = contentMapper.selectByExampleWithBLOBs(example);\n\t\treturn list;\n\t}", "public List<ContentData> listContentDataByContent(Content content) {\n return contentDataDAO.listByContent(content);\n }", "boolean hasContentId();", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "protected abstract List performQuery(String[] ids);", "public List<String> listOriginIds(ContentType contentType, String origin) {\n return contentDAO.listOriginIdsByContentTypeOriginAndArchived(contentType, origin, Boolean.FALSE);\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public List<Produto> findByIdIn(Integer... ids);", "List<MemberAdvisoryComment> selectByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "@Query(\"SELECT * FROM user_table WHERE id IN (:climberIds)\")\n LiveData<List<Climber>> loadAllByIds(int[] climberIds);", "java.util.List<java.lang.Long> getIdsList();", "List<String> findAllIds();", "public Iterable<Content> findByContentType(String contentType, boolean active){\n\n return contentRepository.findByContentTypeAndIsActive(contentType, active);\n }", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "List<UserContentAccess> findContentAccess();", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "@Query(\"{ 'id': {$in: ?0} }\")\r\n\tpublic Page<Answer> findAll(List<ObjectId> ids, Pageable pageable);", "public interface DemoRepositoryCustom {\n\n List<Demo> findInSet(Collection<Long> ids);\n}", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", operator);\r\n\t\t}\r\n\t}", "public List getAllIds();", "public Iterable<Content> findByActive(boolean active){\n\n return contentRepository.findByIsActive(active);\n }", "public static void assertContainsIds(Bundle bundle, String... ids) throws FHIRPathException {\n FHIRPathEvaluator evaluator = FHIRPathEvaluator.evaluator();\n EvaluationContext evaluationContext = new EvaluationContext(bundle);\n Collection<FHIRPathNode> tmpResults = evaluator.evaluate(evaluationContext, EXPRESSION_BUNDLE_IDS);\n Collection<String> listOfIds = tmpResults.stream().map(x -> x.toString()).collect(Collectors.toList());\n for (String id : ids) {\n assertTrue(listOfIds.contains(id));\n }\n }", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "public List<Short> searchIdsInRange(long fromValue, long toValue, boolean fromInclusive,\n boolean toInclusive) {\n\n List<Short> list = new ArrayList<Short>();\n searchIdsInRange(root, fromValue, toValue, fromInclusive, toInclusive, list);\n return list;\n }", "public static List<Contains> getContainsByOrderID(int orderID) throws ClassNotFoundException\n {\n List<Contains> allContains = new ArrayList<>();\n try\n {\n try (Connection con = CS360DB.getConnection();\n Statement stmt = con.createStatement())\n {\n\n StringBuilder insQuery = new StringBuilder();\n\n insQuery.append(\"SELECT * FROM contains \")\n .append(\" WHERE \")\n .append(\" orderID = \").append(\"'\").append(orderID).append(\"';\");\n\n stmt.execute(insQuery.toString());\n\n ResultSet res = stmt.getResultSet();\n\n while (res.next() == true)\n {\n Contains contains = new Contains();\n contains.setOrderID(Integer.valueOf(res.getString(\"orderID\")));\n contains.setProductID(Integer.valueOf(res.getString(\"productID\")));\n contains.setQuantity(Integer.valueOf(res.getString(\"quantity\")));\n allContains.add(contains);\n }\n\n // Close connection\n stmt.close();\n con.close();\n }\n\n }\n catch (SQLException ex)\n {\n // Log exception\n Logger.getLogger(Contains.class.getName()).log(Level.SEVERE,null,ex);\n }\n\n return allContains;\n }", "public Items[] findWhereIdEquals(int id) throws ItemsDaoException;", "public abstract boolean matches(ExternalIdBundle id);", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "public CQueryFetchIds(OrmQueryRequest<?> request, CQueryPredicates predicates, String sql, BackgroundExecutor backgroundExecutor) {\n/* 103 */ this.backgroundExecutor = backgroundExecutor;\n/* 104 */ this.request = request;\n/* 105 */ this.query = request.getQuery();\n/* 106 */ this.sql = sql;\n/* 107 */ this.maxRows = this.query.getMaxRows();\n/* 108 */ this.bgFetchAfter = this.query.getBackgroundFetchAfter();\n/* */ \n/* 110 */ this.query.setGeneratedSql(sql);\n/* */ \n/* 112 */ this.desc = request.getBeanDescriptor();\n/* 113 */ this.predicates = predicates;\n/* */ }", "public RelacionConceptoEmbalaje[] findWhereIdEmbalajeEquals(int idEmbalaje) throws RelacionConceptoEmbalajeDaoException;", "public ContentEntry find(String[] keys, Object[] values);", "public RelacionConceptoEmbalaje[] findWhereIdConceptoEquals(int idConcepto) throws RelacionConceptoEmbalajeDaoException;", "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NetraNominationRepository extends NominationRepository{\n\n\n\n @Query(\"select nominations from Nomination nominations where nominations.contract.id in :contractIdList\")\n List<Nomination> findAllNomsByContractIdList(@Param(\"contractIdList\") List<Long> contractIdList);\n\n}", "public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByPublishedIn(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.PUBLISHED_IN, values);\n\t}", "@Query(\"SELECT e.stations FROM EmployeeEntity e where e.id in :employeeId\")\n List<StationEntity> getStationsOfEmployee(@Param(\"employeeId\") long employeeId);", "boolean contains(int value);", "boolean contains(int value);", "List<T> getEntitiesByIds(List<ID_TYPE> ids) throws NotImplementedException;", "List<UserContent> findContentHistory(\n\t\t\t@Param(\"contentUid\") long contentUid\n\t\t\t);", "private List<Integer> filterDocIds(FilterQueryTree filterQueryTree, List<Integer> inputDocIds) {\n if (filterQueryTree == null) {\n List<Integer> allDocs = new ArrayList<>(_totalDocs);\n for (int i = 0; i < _totalDocs; ++i) {\n allDocs.add(i);\n }\n return allDocs;\n }\n\n final List<FilterQueryTree> childFilters = filterQueryTree.getChildren();\n final boolean isLeaf = (childFilters == null) || childFilters.isEmpty();\n\n if (isLeaf) {\n FilterOperator filterType = filterQueryTree.getOperator();\n String column = filterQueryTree.getColumn();\n final List<String> value = filterQueryTree.getValue();\n return getMatchingDocIds(inputDocIds, filterType, column, value);\n }\n\n List<Integer> result = filterDocIds(childFilters.get(0), inputDocIds);\n final FilterOperator operator = filterQueryTree.getOperator();\n for (int i = 1; i < childFilters.size(); ++i) {\n// List<Integer> childResult = operator.equals(FilterOperator.AND) ? filterDocIds(childFilters.get(i), result)\n// : filterDocIds(childFilters.get(i), inputDocIds);\n List<Integer> childResult = filterDocIds(childFilters.get(i), inputDocIds);\n result = combine(result, childResult, operator);\n }\n return result;\n }", "private List<String> searchForPosts(){\n String userId = searchForUser();\n List <String> postIds;\n String response = given().\n get(\"/posts\").then().extract().asString();\n postIds = from(response).getList(String.format(\"findAll { it.userId.equals(%s) }.id\", userId));\n return postIds;\n }", "private boolean isInList(int id){\n for (Module module :event.getModules()){\n if(module.getInt_type() == id+1){\n return true;\n }\n }\n return false;\n }", "List<T> findAllById(List<Object> ids) throws Exception;", "boolean hasContains();", "List findByFilterText(Set<String> words, boolean justIds);", "public FeatureCursor queryFeaturesForChunk(\n Map<String, Object> fieldValues, String orderBy, int limit) {\n return featureDao.queryInForChunk(queryIdsSQL(), fieldValues, orderBy,\n limit);\n }", "public java.util.List<DataEntry> filterFindByGroupId(long groupId);", "@Override\r\n\tpublic List<Integer> queryPermissionsByRoleid(Integer roleid) {\n\t\treturn permissionDao.queryPermissionsByRoleid(roleid);\r\n\t}", "public interface InventoryRepository extends JpaRepository<Inventory,Integer> {\n\n @Query(\"select i from Inventory i ,in(i.good) g where g.goodId=:goodId\")\n public List<Inventory> selectAllGoodId(@Param(\"goodId\") int goodId);\n}", "long findValues(List<Object> values, List<Column> columns);", "private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Repository\npublic interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {\n List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);\n}", "List<Long> getAuthorisedList( Long id) ;", "public interface QuestionRepository extends CrudRepository<QuestionEntity,Long> {\n\n @Query(\"select count(id) from QuestionEntity where id in :questionIds\")\n Long validateQuestionNumbers(@Param(\"questionIds\") List<Long>questionIds);\n}", "public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n ArrayList<Predicate> predicates = new ArrayList<>();\n predicates.add(getBuilder().equal(from.get(\"id\"), folderId));\n if (visibleOnly) {\n predicates.add(getBuilder().equal(entry.get(\"visibility\"), Visibility.OK.getValue()));\n }\n if (type != null) {\n predicates.add(getBuilder().equal(entry.get(\"recordType\"), type.getName()));\n }\n query.select(entry.get(\"id\")).where(predicates.toArray(new Predicate[0]));\n return currentSession().createQuery(query).list();\n } catch (Exception he) {\n Logger.error(he);\n throw new DAOException(he);\n }\n }", "private boolean in(Integer e, ArrayList<Integer> l) {\n for (int i=0; i<l.size();i++) {\n if (l.get(i) == e) {\n return true;\n }\n }\n return false;\n }", "public Set<Integer> getIDsOfMoviesWithContentInfo(String filename) throws Exception {\r\n\t\tSet<Integer> result = new HashSet<Integer>();\r\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filename));\r\n\t\tString line = reader.readLine();\r\n\t\tString[] tokens;\r\n\t\tint id;\r\n\t\twhile (line != null) {\r\n\t\t\ttokens = line.split(\"#\");\r\n\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\tresult.add(id);\r\n\t\t\tline = reader.readLine();\r\n\t\t}\r\n\t\treader.close();\r\n\t\tSystem.out.println(\"Extracted \" + result.size() + \" relevant items from content file\");\r\n\t\treturn result;\r\n\t}", "java.util.List<java.lang.Integer> getOtherIdsList();", "@Query(value = \"select count(*) from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1\", nativeQuery = true)\n long countByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids);", "Collection<?> idValues();", "@Override\n public List<ResourceTagJoinVO> searchByIds(Long... tagIds) {\n int DETAILS_BATCH_SIZE = 2000;\n String batchCfg = _configDao.getValue(\"detail.batch.query.size\");\n if (batchCfg != null) {\n DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);\n }\n // query details by batches\n List<ResourceTagJoinVO> uvList = new ArrayList<ResourceTagJoinVO>();\n // query details by batches\n int curr_index = 0;\n if (tagIds.length > DETAILS_BATCH_SIZE) {\n while ((curr_index + DETAILS_BATCH_SIZE) <= tagIds.length) {\n Long[] ids = new Long[DETAILS_BATCH_SIZE];\n for (int k = 0, j = curr_index; j < curr_index + DETAILS_BATCH_SIZE; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n curr_index += DETAILS_BATCH_SIZE;\n }\n }\n if (curr_index < tagIds.length) {\n int batch_size = (tagIds.length - curr_index);\n // set the ids value\n Long[] ids = new Long[batch_size];\n for (int k = 0, j = curr_index; j < curr_index + batch_size; j++, k++) {\n ids[k] = tagIds[j];\n }\n SearchCriteria<ResourceTagJoinVO> sc = tagSearch.create();\n sc.setParameters(\"idIN\", ids);\n List<ResourceTagJoinVO> vms = searchIncludingRemoved(sc, null, null, false);\n if (vms != null) {\n uvList.addAll(vms);\n }\n }\n return uvList;\n }", "private Map<Long, List<LikeDetail>> internalFindByJournalIds(Collection<Long> journalIds) {\n return withSelectFromTable(\"WHERE JOURNAL_ID IN (:journalIds) AND CREATE_DATETIME>=:start\")\n .useParams(MiscUtils.m(\"journalIds\", journalIds, \"start\", ZoneConstants.getClazzJournalStartDate()))\n .queryAll()\n .stream()\n .collect(Collectors.groupingBy(LikeDetail::getJournalId));\n }", "boolean contains(int val);", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<Long> getActivityIds(final StreamView inCompositeStream, final long inUserId)\n {\n // check cache for ids and return if found.\n List<Long> activityKeys = getIdListFromCache(inCompositeStream, inUserId);\n\n if (activityKeys != null)\n {\n return activityKeys;\n }\n\n // build critera for getting id list from datastore\n Criteria criteria = getHibernateSession().createCriteria(Activity.class);\n ProjectionList fields = Projections.projectionList();\n fields.add(getColumn(\"id\"));\n criteria.setProjection(fields);\n\n // Get restrictions from loader and add them to criteria. This is basically the\n // \"where\" clause for the query.\n Hashtable restrictionParams = getActivityRestrictions(inCompositeStream, inUserId);\n if (restrictionParams != null)\n {\n // if false, abort query and just return no results.\n if (!addRestrictions(criteria, restrictionParams))\n {\n activityKeys = new ArrayList<Long>(0);\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n return activityKeys;\n }\n }\n\n // set the max results to return.\n criteria.setMaxResults(MAX_LIST_SIZE);\n\n // set the order by date descending\n criteria.addOrder(Order.desc(\"id\"));\n\n // get the list of ids from datastore\n activityKeys = criteria.list();\n\n setIdListToCache(activityKeys, inCompositeStream, inUserId);\n\n return activityKeys;\n }", "public Items[] findWhereBpIdEquals(int bpId) throws ItemsDaoException;", "List<EpermissionDO> selectByExample(EpermissionDOExample example);", "private List<Site> filterSitebyAuthzGroupIds(Set<String> authzGroupIds, List<Site> sites){\r\n\r\n\tList<Site> filteredSites = new ArrayList<Site>();\r\n\r\n\tfor(Site s : sites){\r\n\t String siteRef = \"/site/\"+s.getId();\r\n\r\n\t if(authzGroupIds.contains(siteRef)){\r\n\t\tfilteredSites.add(s);\r\n\t }\r\n\t}\r\n\r\n\treturn filteredSites;\r\n }", "java.util.List<java.lang.Long> getMessageIdList();", "@Override\r\n\tpublic ManageNursingContentWithBLOBs selectByPrimaryKeyBLOB(\r\n\t\t\tString manageNursingContentId) throws Exception {\n\t\treturn mContentMapper.selectByPrimaryKeyBLOB(manageNursingContentId);\r\n\t}", "@Override\r\n\tpublic List<ManageNursingContentWithBLOBs> selectByExampleWithBLOBs(\r\n\t\t\tManageNursingContentExample example) throws Exception {\n\t\treturn mContentMapper.selectByExampleWithBLOBs(example);\r\n\t}", "public <T> void addInFilter(@Nullable String fieldName, @NonNull List<T> values) {\n addFilter(fieldName, FilterOperator.IN, values);\n }", "@Query(value=\"SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))\", nativeQuery = true)\n Page<User> findAuthors(@Param(\"status\") int status, Pageable pageable);", "@Override\n\tpublic <T extends BasePojo> List<T> queryByIds(String ids) {\n\t\treturn null;\n\t}", "boolean contains();" ]
[ "0.55790585", "0.552618", "0.5277638", "0.5258152", "0.51989055", "0.5093833", "0.503949", "0.50303847", "0.48763543", "0.48718426", "0.48504868", "0.48393655", "0.48083732", "0.48075515", "0.48017585", "0.48001435", "0.47971886", "0.47743893", "0.47569528", "0.47552073", "0.4720971", "0.47036067", "0.46968356", "0.46939546", "0.46844068", "0.46774563", "0.46672055", "0.46647945", "0.46598923", "0.46564826", "0.46439043", "0.46402094", "0.46366987", "0.4626598", "0.46175694", "0.4614458", "0.46086445", "0.46057233", "0.45990008", "0.45764548", "0.45726943", "0.4563826", "0.4563066", "0.45618635", "0.45607615", "0.45591587", "0.45357296", "0.45245934", "0.45188686", "0.450481", "0.45038095", "0.45002288", "0.44885647", "0.4477583", "0.44765896", "0.44692728", "0.44547477", "0.44531375", "0.44523072", "0.44507432", "0.44402307", "0.44363695", "0.44363695", "0.4424082", "0.44228727", "0.44215256", "0.44202274", "0.43962443", "0.4396076", "0.43948054", "0.4388826", "0.43877167", "0.43850407", "0.4381565", "0.43773955", "0.43749076", "0.43700346", "0.43663526", "0.436475", "0.4364571", "0.43532607", "0.43524268", "0.43494308", "0.43476972", "0.43464082", "0.43426564", "0.4341123", "0.43261588", "0.4324835", "0.43224463", "0.43144536", "0.4304059", "0.4303766", "0.42988583", "0.42980915", "0.4291148", "0.42828497", "0.42810696", "0.42782927", "0.42662954" ]
0.47524253
20
Fetch records that have time_ IN (values)
public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchByTime_(LocalDateTime... values) { return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.TIME_, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTimeRecord();", "boolean hasQueryTimeNsec();", "boolean hasQueryTimeSec();", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "public boolean contains(long time) {\n\t\treturn ((start <= time) && (time <= end));\n\t}", "public List<models.garaDB.tables.pojos.Ride> fetchByStarttime(Timestamp... values) {\n return fetch(Ride.RIDE.STARTTIME, values);\n }", "private boolean inTimeScope(Expression expr, long time) {\n\n String time_start = expr.getTime_start();\n String time_end = expr.getTime_end();\n String day_start = expr.getDay_start();\n String day_end = expr.getDay_end();\n\n if (!StringHelper.isEmpty(day_start) && !StringHelper.isEmpty(day_end)) {\n\n long startTime = DateTimeHelper.dateFormat(day_start, \"yyyy-MM-dd\").getTime();\n long endTime = DateTimeHelper.dateFormat(day_end, \"yyyy-MM-dd\").getTime();\n\n if (time < startTime || time >= endTime + 24 * 3600 * 1000) {\n return false;\n }\n }\n\n if (!StringHelper.isEmpty(time_start) && !StringHelper.isEmpty(time_end)) {\n\n long startTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_start, \"yyyy-MM-dd HH:mm\").getTime();\n long endTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_end, \"yyyy-MM-dd HH:mm\").getTime();\n\n if (time < startTime || time >= endTime) {\n return false;\n }\n }\n\n int weekday = DateTimeHelper.getWeekday(new Date(time));\n \n if(expr.getWeekdayLimit()!=null&&!expr.getWeekdayLimit()[weekday]) {\n return false;\n }\n \n return true;\n }", "public ArrayList<BoardGame> filterByTime(ArrayList<BoardGame> list) {\n int time = extractInt(playTime);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER TIME\", \"Game: \" + game.getName() + \" Min Time: \" + game.getMinPlayTime() +\n \" Max Time: \" + game.getMaxPlayTime() + \" Target Time: \" + time);\n if((game.getMinPlayTime() <= time && game.getMaxPlayTime() >= time) || game.getMaxPlayTime() <= time) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "public List<Timetable> getListSearch(String from, String to) throws Exception;", "@Override\r\n\tpublic List<ExecuteTask> getByTime(String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_task_id IN(SELECT task_id FROM task WHERE task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,time1,time2);\r\n\t}", "private Boolean TimeInRange(String time){\n \n String[] t = time.split(\":\");\n \n int hours = Integer.parseInt(t[0]);\n int minutes = Integer.parseInt(t[1]);\n int seconds = Integer.parseInt(t[2]);\n \n if(hours == 11 && minutes == 59 && (seconds >= 55)){\n return true;\n }\n \n return false;\n \n }", "boolean hasTime();", "boolean hasTime();", "public void testSearchTimeEntries() throws Exception {\r\n TimeEntry timeEntry = AccuracyTestHelper.createTimeEntry(null);\r\n instance.createTimeEntries(new TimeEntry[] {timeEntry}, true);\r\n\r\n Filter filter = instance.getTimeEntryFilterFactory().createCompanyIdFilter(timeEntry.getCompanyId());\r\n TimeEntry[] timeEntries = instance.searchTimeEntries(filter);\r\n\r\n assertEquals(\"Failed to search the time entries.\", 1, timeEntries.length);\r\n assertEquals(\"Failed to search the time entries.\", timeEntry, timeEntries[0]);\r\n }", "public boolean timeInBufferRange(long time) {\n \tif (!storage.isEmpty()) {\n if(time > storage.firstKey() && time < storage.lastKey())\n \treturn true;\n }\n \treturn false;\n }", "boolean hasNextCollectTimestampMs();", "public FilterByTimeCommand(Time time) throws ParseException {\n this.time = time;\n }", "public boolean selectDateTime(String timeString);", "@Override\n public List<Score> findExperimentsBySnoTime(int sno) {\n String sql = \" select * from score where sno=? and eno in (select eno from experiment where now() between time and date_add(time,interval 180 minute))\";\n try {\n QueryRunner queryRunner = new QueryRunner(TransactionManager.getSource());\n return queryRunner.query(sql, new BeanListHandler<Score>(Score.class), sno);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TCustomerMemberInvite> fetchByHandleTime(Timestamp... values) {\n return fetch(TCustomerMemberInvite.T_CUSTOMER_MEMBER_INVITE.HANDLE_TIME, values);\n }", "public boolean hasQueryTimeSec() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasQueryTimeSec() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "LinkedList<Tuple<Long,Long>> ContainWithinTimeWindow(LinkedList<Tuple<Long,Long>> q, long current_time, long time_window){\n LinkedList<Tuple<Long,Long>> output = new LinkedList<Tuple<Long,Long>>();\n for(Tuple<Long,Long> e: q){\n //if it starts after the start of the window:\n if(e.x>current_time-time_window){\n if(e.y==LongMin || e.y==0){\n output.add(new Tuple<Long,Long>(e.x,current_time));\n }\n // if it ends before the current time\n else{\n output.add(new Tuple<Long,Long>(e.x,e.y));\n }\n }\n //if it starts before the window but ends within it\n else if(e.y>current_time-time_window){\n output.add(new Tuple<Long,Long>(current_time-time_window,e.y));\n }\n }\n //DisplayDropPercentList(q, time_window,\"q\");\n //DisplayDropPercentList(output, time_window,\"output\");\n return output;\n }", "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public List<MiniEventTimetableConfigPojo> fetchByStartTime(Timestamp... values) {\n\t\treturn fetch(MiniEventTimetableConfig.MINI_EVENT_TIMETABLE_CONFIG.START_TIME, values);\n\t}", "public List<models.garaDB.tables.pojos.Ride> fetchByEndtime(Timestamp... values) {\n return fetch(Ride.RIDE.ENDTIME, values);\n }", "protected static BinaryTemporalOperator timeInfoToFilter(TimeExtent time)\n {\n Date begin = new Date((long)time.getStartTime()*1000);\n Date end = new Date((long)time.getStopTime()*1000);\n BinaryTemporalOperator temporalFilter;\n TemporalPrimitive timePrimitive;\n \n if (time.isTimeInstant())\n {\n timePrimitive = new DefaultInstant(new DefaultPosition(begin));\n temporalFilter = filterFactory.tequals(filterFactory.property(\"phenomenonTime\"),\n filterFactory.literal(timePrimitive));\n }\n else if (time.isEndNow() || time.getStopTime() == Double.POSITIVE_INFINITY)\n {\n timePrimitive = new DefaultInstant(new DefaultPosition(end));\n temporalFilter = filterFactory.after(filterFactory.property(\"phenomenonTime\"),\n filterFactory.literal(timePrimitive));\n }\n else if (time.getStartTime() == Double.NEGATIVE_INFINITY)\n {\n timePrimitive = new DefaultInstant(new DefaultPosition(end));\n temporalFilter = filterFactory.before(filterFactory.property(\"phenomenonTime\"),\n filterFactory.literal(timePrimitive));\n }\n else\n {\n timePrimitive = new DefaultPeriod(new DefaultInstant(new DefaultPosition(begin)),\n new DefaultInstant(new DefaultPosition(end)));\n temporalFilter = filterFactory.during(filterFactory.property(\"phenomenonTime\"),\n filterFactory.literal(timePrimitive));\n }\n \n return temporalFilter;\n }", "public ArrayList<SaleDocumentPO> findByTimezone(String time)\r\n\t\t\tthrows RemoteException {\n\t\tif(saleDocumentPOs.size()==0){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(time.equals(\",\")){\r\n\t\t\treturn saleDocumentPOs;\r\n\t\t}else{\r\n\t\t\tString[] times = time.split(\",\");\r\n\t\t\tlong time1 = Long.parseLong(times[0]);\r\n\t\t\tlong time2 = Long.parseLong(times[1]);\r\n\t\t\tArrayList<SaleDocumentPO> al = new ArrayList<SaleDocumentPO>();\r\n\t\t\tfor (int i = 0; i < saleDocumentPOs.size(); i++) {\r\n\t\t\t\tlong date = Long.parseLong(saleDocumentPOs.get(i).getTheDate());\r\n\t\t\t\tif (date >= time1 && date <= time2) {\r\n\t\t\t\t\tal.add(saleDocumentPOs.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// show();\r\n\t\t\t// System.out.println();\r\n\t\t\treturn al;\r\n\t\t}\r\n\t\r\n\t}", "boolean hasExchangeTime();", "@Test\n void deve_retornar_uma_lista_de_time() {\n List<TimeEntity> timeEntityList = TimeEntityStub.getTimeEntityList();\n when(timeManagementRepository.findAllByUserIdAndAndDate(any(), any())).thenReturn(timeEntityList);\n List<LocalTime> times = timeService.findTimes(TimeModelStub.getTimeModel());\n Assert.assertEquals(\"10:30:00.000\", times.get(0).toString());\n }", "public boolean hasQueryTimeNsec() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean hasQueryTimeNsec() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Override\r\n\tpublic List<ExecuteTask> getByTypeByTime(String taskType, String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id IN(SELECT task_id FROM task WHERE task_type = ? AND \"\r\n\t\t\t\t+ \" task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,taskType,time1,time2);\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "Condition in(QueryParameter parameter, Object... values);", "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "List<MovieCinema> findAllByDateTimeAfter(LocalDateTime dataTime);", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByOpAt(Collection<LocalDateTime> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.OP_AT.in(values));\n }", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public Set<DataTime> timeInvariantQuery(\n Map<String, RequestConstraint> query) throws VizException;", "@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);", "public Collection<Authmacip> findByRectimeLessThan(\r\n\t\t\t\t// The @Param annotation tells tells Spring Data Rest which HTTP request\r\n\t\t\t\t// parameter it should use to fill in the \"duration\" variable used to\r\n\t\t\t\t// search for Videos\r\n\t\t\t\t@Param(AuthmacipSvcApi.RECTIME_PARAMETER) Date rectime);", "boolean hasStartTime();", "boolean hasDesiredTime();", "public static Predicate<Sample> isinthetime(Date min , Date max)\n\t{\n\t\treturn p -> p.getDate().after(min)&&p.getDate().before(max);\n\t}", "public boolean timeValidated(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tLocalTime stime = e.sTime;\n\t\tLocalTime etime = e.eTime;\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent evnt = list.get(i);\n\n\t\t\t\tif(e.sTime.equals(evnt.sTime) || e.eTime.equals(evnt.eTime)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t//check for start times\n\t\t\t\tif(e.sTime.isBefore(evnt.sTime)) {\n\t\t\t\t\tif(!e.eTime.isBefore(evnt.sTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//check for end time\n\t\t\t\tif(e.sTime.isAfter(evnt.sTime)) {\n\t\t\t\t\tif(!e.sTime.isAfter(evnt.eTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public static List<String> getAllStartTime(String data) throws SQLException\n {\n \tList<String> all_time = new ArrayList<String>();\n \tResultSet time;\n \tif(data.charAt(0) == 'M')\n \t\ttime = test.readDatabase(\"select distinct Begin_Time from class_2016 where Term_Code = '\"+test.getLatestSemester()+\"' and Monday_Ind1 = 'M' and Wednesday_Ind1 = 'W'and Friday_Ind1 = 'F' and Begin_Time >= 800 and Begin_Time <= 1700 order by Begin_Time\");\n \telse\n \t\ttime = test.readDatabase(\"select distinct Begin_Time from class_2016 where Term_Code = '\"+test.getLatestSemester()+\"' and Tuesday_Ind1 = 'T' and Thursday_Ind1 = 'R' and Begin_Time >= 800 and Begin_Time <= 1700 and (End_Time - Begin_Time) = 120 order by Begin_Time\");\n\t\tall_time = test.writeResultSet(time,\"Begin_Time\");\n \treturn all_time;\n\n }", "public ArrayList<Booking> getBookings(int time,String date){\n ArrayList<Booking>Hours=new ArrayList<>();\n for(int i=0;i<Schedule.size();++i){\n Booking temp=Schedule.get(i); \n String Day=temp.getDate();\n int Datevalue=Integer.parseInt(Day.substring(8,10));\n int Value=Integer.parseInt(date);\n if(time<10) {\n if (temp.getTime().substring(0, 2).equals(\"0\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n else{\n if (temp.getTime().substring(0, 2).equals(\"\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n }\n return Hours;\n }", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "private List<WavefrontEvent> filterEvents(List<WavefrontEvent> wavefrontEvents, Long startTime, Long endTime) {\n List<WavefrontEvent> filterEvents = wavefrontEvents.stream()\n .filter(event -> event.getEnd() >= startTime && event.getEnd() <= endTime).collect(Collectors.toList());\n log.debug(\"{} events were found out of time bound, startTime: {} and endTime: {}\",\n wavefrontEvents.size() - filterEvents.size(), startTime, endTime);\n return filterEvents;\n }", "@Query(\"select mc from MovieCinema mc where mc.dateTime > ?1\")\n List<MovieCinema> findAllWithHigherThanSpecificData(LocalDateTime dateTime);", "private TimeSpanList activeTimeAnswer()\r\n {\r\n return TimeSpanList.singleton(TimeSpan.get(myQueryTime));\r\n }", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<models.garaDB.tables.pojos.Ride> fetchByTimestamp(Timestamp... values) {\n return fetch(Ride.RIDE.TIMESTAMP, values);\n }", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "public List<Register> testTimeQuery(){\n NativeSearchQueryBuilder queryBuilder = new NativeSearchQueryBuilder();\n queryBuilder.withQuery(QueryBuilders.rangeQuery(\"order_time\").gt(\"2016-11-01T00:00:00.000Z\"));\n\n // 初始化分页参数\n int page =50;\n int size =3000;\n\n\n // 设置分页参数\n queryBuilder.withPageable(PageRequest.of(page, size));\n // 执行搜索,获取结果\n Page<OrderImes> Ot = this.orderImesRepository.search(queryBuilder.build());\n List<Register> Rt = new ArrayList<Register>();\n System.out.println(Ot.getTotalElements());\n // List<Page<Test>> Lt=new ArrayList<Page<Test> >();\n\n // Page<JtSelfRegisterDay> Jt = this.jtSelfRegisterDayRepository.search(queryBuilder.build());\n\n for (OrderImes O:Ot)\n {\n SearchQuery searchQuery1=new NativeSearchQueryBuilder().withQuery(QueryBuilders.matchQuery(\"meid\",O.getImes())).build();\n //System.out.println(J.getRow_id().getClass());\n List<Register> Te = elasticsearchTemplate.queryForList(searchQuery1, Register.class);\n //System.out.println(Te.size());\n for (int i = 0; i <Te.size() ; i++) {\n Rt.add(Te.get(i));\n }\n\n }\n System.out.println(Rt.size());\n\n\n return Rt;\n\n\n }", "@Override\r\n\tpublic List<ExecuteTask> getByMemberByTime(int memberId, String time1, String time2) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_member_id = ? AND et_task_id IN(SELECT task_id FROM task WHERE task_start_time >= ? AND task_start_time <= ?)\";\r\n\t\treturn getForList(sql,memberId,time1,time2);\r\n\t}", "protected static<T extends FitbitInterval> List<T> filterResults( List<T> results, FitbitQuery query ) {\n\t\tif ( query.atResolution( ) == FitbitResolution.DAILY )\n\t\t\treturn results;\n\t\t\n\t\tList<T> filteredResults = new ArrayList<T>( );\n\t\tfor ( T r : results )\n\t\t\tif ( r.getInterval( ).getStart( ).isAfter( query.from( ) ) && r.getInterval( ).getStart( ).isBefore( query.to( ) ) )\n\t\t\t\tfilteredResults.add( r );\n\t\t\t\t\n\t\treturn filteredResults;\n\t}", "private void checkPlayingAt(@NonNull TimeIntervalMatcher time) {\n checkPlaying();\n timeView.check(matches(withText(time)));\n }", "boolean hasTimeBoltDBoltH();", "public boolean contains(long millisInstant) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[3]++;\r\n long thisStart = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[4]++;\r\n long thisEnd = getEndMillis();\r\n return (millisInstant >= thisStart && millisInstant < thisEnd);\r\n }", "@Query(nativeQuery = true, value = \"select * from vamus.eventos where \" +\n \"ini_evento>=:inicio and fim_evento<=:fim\")\n List<EventoEntity> findByDate(@Param(\"inicio\") LocalDateTime ini,\n @Param(\"fim\") LocalDateTime fim);", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndIdInIsActiveTrue(@Param(\"type\") String type,@Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "public TimeEqualityFilter withColumn(ColumnIdentifier column) {\n setColumn(column);\n return this;\n }", "public static List<TaskTimeElement> findAll() {\r\n List<TaskTimeElement> ret = new ArrayList<TaskTimeElement>();\r\n String sql = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findAll\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"SELECT ID\" +\r\n \",DURATION\" + \r\n \",TASKDATE\" + \r\n \",TASKNAME\" + \r\n \",USERNAME\" +\r\n \" FROM TASKTIMEELEMENT\" +\r\n \" WHERE ENABLED IS TRUE\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" AND USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\")) +\r\n \" ORDER BY TASKDATE,TASKNAME\";\r\n rs = theStatement.executeQuery(sql);\r\n TaskTimeElement object;\r\n while(rs.next()) {\r\n object = new TaskTimeElement();\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setTaskDate(rs.getString(i++));\r\n object.setTaskName(rs.getString(i++));\r\n object.setUserName(rs.getString(i++));\r\n object.setEnabled(true);\r\n ret.add(object);\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n ret = null;\r\n }\r\n catch (Exception ex) {\r\n Trace.error(\"Exception\", ex);\r\n ret = null;\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "List<TimeLog> findTimelog(String username);", "@Override\r\n\tpublic List<Resource> findResourcetime(String condition) {\n\t\tConnection conn=this.getConnection();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(\"select * from resource where inputtime like '%\"+condition+\"%' order by resource_id desc\");\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\tList<Resource> list=new ArrayList<Resource>();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tResource d=new Resource();\r\n\t\t\t\td.setResourceid(rs.getInt(1));\r\n\t\t\t\td.setStyleid(rs.getInt(2));\r\n\t\t\t\td.setTitle(rs.getString(3));\r\n\t\t\t\td.setSize(rs.getString(4));\r\n\t\t\t\td.setLanguage(rs.getString(5));\r\n\t\t\t\td.setBanben(rs.getString(6));\r\n\t\t\t\td.setText(rs.getString(7));\r\n\t\t\t\td.setPoint(rs.getInt(8));\r\n\t\t\t\td.setInputtime(rs.getTimestamp(9));\r\n\t\t\t\td.setResadd(rs.getString(10));\r\n\t\t\t\td.setImageadd(rs.getString(11));\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public boolean isTimeToSelect();", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public List<TreateWait> queryAll() {\n\t\tQuery query = Query.query(Criteria.where(\"id\").exists(true));\n\t\treturn treateWaitDao.queryList(query);\n\t\t\n\t}", "public boolean timeExists(int time) {\n Node currentNode = first;\n while(currentNode != null) {\n if(time == currentNode.getData().getIntegerTime())\n return true;\n currentNode = currentNode.getNextNode();\n }\n return false;\n }", "public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByApprovedAt(Collection<LocalDateTime> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.APPROVED_AT.in(values));\n }", "protected void sequence_WITHIN_WithinTime(ISerializationContext context, WithinTime semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getWITHIN_Within()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getWITHIN_Within()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getWithinTime_Tv()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getWithinTime_Tv()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getWITHINAccess().getWithinWithinKeyword_0(), semanticObject.getWithin());\n\t\tfeeder.accept(grammarAccess.getWithinTimeAccess().getTvTimeValueParserRuleCall_1_0(), semanticObject.getTv());\n\t\tfeeder.finish();\n\t}", "@Override\r\n\tpublic ArrayList<Board1> getByTime(String startTime) {\n\t\treturn dao.selectByTime(startTime);\r\n\t}", "@Test\n public void testTimeArithmExpr() {\n if (!Config.enable_date_conversion) {\n String sql = \"SELECT * FROM t1 WHERE col1 < date '1994-01-01' + interval '1' year\";\n\n PlanChecker.from(connectContext)\n .analyze(sql)\n .rewrite()\n .matches(\n logicalFilter(logicalOlapScan())\n .when(f -> ((LessThan) f.getPredicate()).right() instanceof DateLiteral)\n );\n }\n }", "private static void isDateTime(String filters[]) throws WrongQueryFormatException {\n\t\tSimpleDateFormat format = new SimpleDateFormat(DateOperations.dateFormat);\n\t\ttry {\n\t\t\tDate startDate = format.parse(filters[3] + \" \" + filters[4]);\n\t\t\tDate endDate = format.parse(filters[5] + \" \" + filters[6]);\n\t\t\tif (startDate.after(endDate)) {\n\t\t\t\tthrow new WrongQueryFormatException(\"Start date,time should be before the end date/time\");\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tthrow new WrongQueryFormatException(\"Wrong format of date, format is yyyy-MM-dd HH:MM\");\n\t\t}\n\t}", "public ArrayList<Timestamp> getQueryParameters(Timestamp from, Timestamp to) {\n ArrayList<Timestamp> params = new ArrayList<Timestamp>();\n params.add(to);\n params.add(to);\n return params;\n }", "boolean hasCollectEndTime();", "List<SellOrder> findAscPendingOrdersByPriceTime(Date toTime, BigMoney price, OrderBookId orderBookId, int size);", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "public static void findByIn() {\n\t\tFindIterable<Document> findIterable = collection.find(in(\"status\", \"A\", \"D\"));\r\n\t\tprint(findIterable);\r\n\t}", "public ArrayList<Entry> load(Context context){\n ArrayList<String> read = DBM.fetch();\n ArrayList<Entry> temp = new ArrayList<>();\n for (String e:read){\n Calendar cal = Calendar.getInstance();\n String[] true_name = e.split(\", \");\n cal.setTimeZone(TimeZone.getTimeZone(true_name[1]));\n temp.add(new Entry(true_name[0],true_name[1],cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE) + \":\" + cal.get(Calendar.SECOND) ));\n }\n return temp;\n }", "@Override\n\tpublic List<RcuSettime> selectByExample(RcuSettimeExample example) {\n\t\treturn rcuSettimeMapper.selectByExample(example);\n\t}", "@Query(value = \"select * from chat_room cr where cr.cr_type=:type and cr.cr_name=:name and cr.cr_id in :ids and cr.cr_is_active=1 order by cr.cr_created_date desc limit :offset,:count\", nativeQuery = true)\n List<ChatRoomModel> findByTypeAndNameAndIdInIsActiveTrue(@Param(\"type\") String type, @Param(\"name\") String name, @Param(\"ids\") List<BigInteger> ids, @Param(\"offset\") int offset, @Param(\"count\") int count);", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "boolean isSetTimeInterval();", "List<InsureUnitTrend> queryInsureDate();", "public List<MiniEventTimetableConfigPojo> fetchByEndTime(Timestamp... values) {\n\t\treturn fetch(MiniEventTimetableConfig.MINI_EVENT_TIMETABLE_CONFIG.END_TIME, values);\n\t}", "public Map<Map<String, Object>, Map<String, Object>> queryFromAndTo(String siteId, int lastHours, String from, String to, String timeType) {\n String[] fromToIndices = filterRangeDateIndices(from, to, lastHours, timeType);\n boolean isLoggedTime = false;\n if (lastHours > 0 || timeType.equals(\"h\") || timeType.equals(\"m\")) {\n isLoggedTime = true;\n }\n return doMultiRequestForDays(siteId, fromToIndices, isLoggedTime, lastHours, timeType);\n }", "@Test\n public void test_column_type_detection_datetimes_03() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"13:15:00\", XSDDatatype.XSDtime), true, Types.TIME, Time.class.getCanonicalName());\n }", "@Scheduled(fixedRate = 60_000)\n public void checkEventTime() {\n isTimeService.findAll().forEach(event -> {\n if (event.getSchedulledTime().isBefore(LocalDateTime.now())) {\n this.producer.sendReachTimeMessage(new IsTime(event.getMessageId()));\n this.isTimeService.deleteById(event.getSchedulledId());\n }\n });\n// log.info(\"Schedulled time check.\");\n }", "boolean hasDateTime();", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "boolean hasQueryZone();" ]
[ "0.55995286", "0.5598008", "0.559316", "0.55796677", "0.5445158", "0.53529286", "0.5299936", "0.52836543", "0.52616113", "0.5256504", "0.52169305", "0.5213877", "0.51558286", "0.51558286", "0.512508", "0.51229465", "0.5099436", "0.5074878", "0.50725657", "0.5055805", "0.50321394", "0.5029506", "0.50125706", "0.49828765", "0.49795258", "0.49554318", "0.4942689", "0.49270678", "0.49024525", "0.48926738", "0.48913795", "0.4891145", "0.48849165", "0.48702058", "0.48659685", "0.48594075", "0.48495734", "0.48331472", "0.48305848", "0.48195556", "0.48178568", "0.4816371", "0.47897655", "0.4771875", "0.47591296", "0.4755604", "0.4751573", "0.4730194", "0.47204393", "0.47149548", "0.471336", "0.47009405", "0.46994123", "0.4694642", "0.46941993", "0.46934015", "0.46872288", "0.46767545", "0.46753287", "0.46635312", "0.466318", "0.4662175", "0.46608436", "0.46462983", "0.46444434", "0.46400902", "0.46207422", "0.46199533", "0.4613429", "0.4605732", "0.46051106", "0.4604618", "0.46014717", "0.45939142", "0.45929193", "0.45818916", "0.45720297", "0.45715323", "0.45672804", "0.45666003", "0.45612675", "0.45603675", "0.4550979", "0.45417717", "0.45347372", "0.45344546", "0.45270976", "0.45251873", "0.45250383", "0.45226797", "0.4521229", "0.45153493", "0.45150322", "0.45136008", "0.45113087", "0.44948035", "0.44883543", "0.4482579", "0.44813004", "0.44652835" ]
0.4656278
63
TODO Autogenerated method stub
@Override public void comer() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.6567672
1
TODO Autogenerated method stub
@Override public void moverse() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns the int value for month of the yeat.
private int getCalendarMonth(String month){ month = month.toUpperCase(); if (month.indexOf("JAN") == 0 ) { return Calendar.JANUARY; } else if (month.indexOf("FEB") == 0) { return Calendar.FEBRUARY; } else if (month.indexOf("MAR") == 0) { return Calendar.MARCH ; } else if (month.indexOf("APR") == 0) { return Calendar.APRIL; } else if (month.indexOf("MAY") == 0) { return Calendar.MAY; } else if (month.indexOf("JUN") == 0) { return Calendar.JUNE; } else if (month.indexOf("JUL") == 0) { return Calendar.JULY; } else if (month.indexOf("AUG") == 0) { return Calendar.AUGUST; } else if (month.indexOf("SEP") == 0) { return Calendar.SEPTEMBER; } else if (month.indexOf("OCT") == 0) { return Calendar.OCTOBER; } else if (month.indexOf("NOV") == 0) { return Calendar.NOVEMBER; } else if (month.indexOf("DEC") == 0) { return Calendar.DECEMBER; } else { throw new IllegalArgumentException("month must be one of {JAN, " + "FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV ,DEC)"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMonthInt() {\n return month;\r\n }", "public int intValue()\n {\n return this.month;\n }", "public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to construct e.g adate\n\t\t// to get the name of the month from getMonth(), 1 must be deducted.\n\t\treturn 1+m_calendar.get(Calendar.MONTH);\n\n\t}", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public int getMonth(){\n\t\treturn month;\n\t}", "public int getMonth()\n {\n return month;\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public int getMonth() {\n return month;\n }", "public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}", "public Integer getMonth() {\r\n return month;\r\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public static int getTodaysMonth() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.month + 1;\t\r\n\t\t\r\n\t}", "public int getCurrentDayOfMonthAsNum() {\n\t\t\t\tint dayOfMonth = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\t\t\treturn dayOfMonth;\n\t\t\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getMonthDate()\n\t{\n\t\tif (m_nType == AT_MONTH_DATE)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public int monthStringToNum (String month){\n int mese = 0;\n switch (month){\n case \"Gennaio\":\n mese = 0;\n break;\n case \"Febbraio\":\n mese = 1;\n break;\n case \"Marzo\":\n mese = 2;\n break;\n case \"Aprile\":\n mese = 3;\n break;\n case \"Maggio\":\n mese = 4;\n break;\n case \"Giugno\":\n mese = 5;\n break;\n case \"Luglio\":\n mese = 6;\n break;\n case \"Agosto\":\n mese = 7;\n break;\n case \"Settembre\":\n mese = 8;\n break;\n case \"Ottobre\":\n mese = 9;\n break;\n case \"Novembre\":\n mese = 10;\n break;\n case \"Dicembre\":\n mese = 11;\n break;\n }\n return mese;\n }", "private static int monthNum(String month) {\n switch (month) {\n case \"1\": case \"january\": return 1;\n case \"2\": case \"february\": return 2;\n case \"3\": case \"march\": return 3;\n case \"4\": case \"april\": return 4;\n case \"5\": case \"may\": return 5;\n case \"6\": case \"june\": return 6;\n case \"7\": case \"july\": return 7;\n case \"8\": case \"august\": return 8;\n case \"9\": case \"september\": return 9;\n case \"10\": case \"october\": return 10;\n case \"11\": case \"november\": return 11;\n case \"12\": case \"december\": return 12;\n }\n\n return 0; // default\n }", "int getExpMonth(String bookingRef);", "int calMonthDay(int m,int y){//calMonthDay(month,year)\n int x=0,c;\n for(c = 1; c < m; c++) {// Jan to less than the month 'm' as 'm' we are not taking the the whole days of that month\n if(c == 2) {//if Feb\n if(y%4 == 0)//checks if year is leap or not\n x += 29;\n else\n x += 28;\n }\n else\n x += mon.get(c-1);\n }\n return(x);\n }", "public int getDayOfMonth();", "public byte getMonth() {\r\n return month;\r\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public int getDayOfMonth() {\n\n return this.cdom;\n\n }", "public int getDayOfMonth() \n\t{\n\t\tint dayofmonth = m_calendar.get(Calendar.DAY_OF_MONTH);\n\t\treturn dayofmonth;\n\n\t}", "public int monthOfYear() {\r\n\t\treturn mC.get(Calendar.MONTH);\r\n\t}", "private static int monthStringToInteger(String month){\r\n\r\n\t\tswitch (month){\r\n\t\t\tcase \"Jan\": return 1;\r\n\t\t\tcase \"Feb\": return 2;\r\n\t\t\tcase \"Mar\": return 3;\r\n\t\t\tcase \"Apr\": return 4;\r\n\t\t\tcase \"May\": return 5;\r\n\t\t\tcase \"Jun\": return 6;\r\n\t\t\tcase \"Jul\": return 7;\r\n\t\t\tcase \"Aug\": return 8;\r\n\t\t\tcase \"Sep\": return 9;\r\n\t\t\tcase \"Oct\": return 10;\r\n\t\t\tcase \"Nov\": return 11;\r\n\t\t\tcase \"Dec\": return 12; \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int dayOfMonth() {\r\n\t\treturn mC.get(Calendar.DAY_OF_MONTH);\r\n\t}", "@JsonGetter(\"exp_month\")\r\n public int getExpMonth ( ) { \r\n return this.expMonth;\r\n }", "public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}", "public int getDayOfMonth(){\n\t\treturn dayOfMonth;\n\t}", "public int getMday() {\n return mday;\n }", "public abstract int daysInMonth(DMYcount DMYcount);", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "public int getDayOfMonth() {\n return _calendar.get(Calendar.DAY_OF_MONTH);\n }", "public int getDate(String month)\n\t{\n\t\tint a[] = {1,2,3};\n\t\t//17 Feb 2011 00:00:00\n\t\t\n\t\t\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"Jan\", 1);\n\t\tmap.put(\"Feb\", 2);\n\t\tmap.put(\"Mar\", 3);\n\t\tmap.put(\"Apr\", 4);\n\t\tmap.put(\"May\", 5);\n\t\tmap.put(\"Jun\", 6);\n\t\tmap.put(\"Jul\", 7);\n\t\tmap.put(\"Aug\", 8);\n\t\tmap.put(\"Sep\", 9);\n\t\tmap.put(\"Oct\", 10);\n\t\tmap.put(\"Nov\", 11);\n\t\tmap.put(\"Dec\", 12);\n\t\t\n\t\tint mon = (int) map.get(month);\n\t\treturn mon;\n\t}", "public int daysInMonth() {\r\n if (month == 4 || month == 6 || month == 9 || month == 11) {\r\n return 30;\r\n } else if (month == 2) {\r\n return 28;\r\n } else {\r\n return 31;\r\n }\r\n }", "static int getMonth(byte[] bytes) {\n return readBits(bytes, MONTH_POS, MONTH_BITS);\n }", "public int getMonthOfYear() {\n return _calendar.get(Calendar.MONTH) + 1;\n }", "public int getMonthInt(int monthint,String month){\n switch (month) {\n case \"JANUARY\": monthint = 1;\n break;\n case \"FEBUARY\": monthint = 2;\n break;\n case \"MARCH\": monthint = 3;\n break;\n case \"APRIL\": monthint = 4;\n break;\n case \"MAY\": monthint = 5;\n break;\n case \"JUNE\": monthint = 6;\n break;\n case \"JULY\": monthint = 7;\n break;\n case \"AUGUST\": monthint = 8;\n break;\n case \"SEPTEMBER\": monthint = 9;\n break;\n case \"OCTOBER\": monthint = 10;\n break;\n case \"NOVEMBER\": monthint = 11;\n break;\n case \"DECEMBER\": \n monthint = 12;\n break;\n// default: JOptionPane.showMessageDialog(null,\"Error\",\"INVALID INPUT\", JOptionPane.ERROR_MESSAGE);\n \n// break;\n }\n return monthint;\n }", "public static int getCurrentMonth(int month) {\n month++;\n return month;\n }", "public int getDaysInMonth()\r\n\t{\r\n\t\tif (this.year % 4 == 0)\r\n\t\t\treturn Date.leapMonthDays[this.month - 1];\r\n\t\telse\r\n\t\t\treturn monthDays[this.month - 1];\r\n\t}", "public String getMonth()\n {\n return Month.get();\n }", "public int getDay()\n\t{\n\t\treturn this.dayOfMonth;\n\t}", "@Test\n\tvoid teststringtoint(){\n\t\tCalendar cal=Calendar.getInstance();\n\t\tint m=cal.get(Calendar.MONTH);\n\t\tint d=cal.get(Calendar.DATE);\n\t\tSystem.out.println(\"m==\"+m+\" d==\"+d);\n\t}", "public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }", "public static int getRndMonthNumber() {\n return ThreadLocalRandom.current().nextInt(1, 12 + 1);\n }", "public String getMonth() {\r\n return month;\r\n }", "public long getActMonth(String date) {\n\t\treturn AnalyticsUDF.getMonthFromDate(date);\n\t}", "public int getMonths() {\n return this.months;\n }", "public String getMonth() {\n return month;\n }", "public int convertMonthNameToNumAsInt(String name) {\n\t\t int month = 0;\n\t\t name = name.substring(0,3);\n\t\t if (name.equals(\"Jan\")) { month = 1; }\n\t\t if (name.equals(\"Feb\")) { month = 2; }\n\t\t if (name.equals(\"Mar\")) { month = 3; }\n\t\t if (name.equals(\"Apr\")) { month = 4; }\n\t\t if (name.equals(\"May\")) { month = 5; }\n\t\t if (name.equals(\"Jun\")) { month = 6; }\n\t\t if (name.equals(\"Jul\")) { month = 7; }\n\t\t if (name.equals(\"Aug\")) { month = 8; }\n\t\t if (name.equals(\"Sep\")) { month = 9; }\n\t\t if (name.equals(\"Oct\")) { month = 10; }\n\t\t if (name.equals(\"Nov\")) { month = 11; }\n\t\t if (name.equals(\"Dec\")) { month = 12; }\n\t\t \treturn month;\n\t\t\t}", "@Override\n public int getMonth() {\n return this.deadline.getMonth();\n }", "protected static int getMonth(String dateTime) {\n return Integer.parseInt(dateTime.substring(3, 5)) - 1;\n }", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "public int getNumberOfDaysInTheMonth() {\n YearMonth yearMonthObject = YearMonth.of(year, month);\n return yearMonthObject.lengthOfMonth();\n }", "public static int getMonthNumberByDate(Date val) {\n\t\tif (val != null) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MM\");\n\t\t\treturn parseInt(format.format(val));\n\t\t} else {\n\n\t\t\treturn 0;\n\n\t\t}\n\t}", "public String getJP_AcctMonth();", "public int getNextMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger());\n\t\t\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\t\t\n\t\treturn getMonthInteger();\n\t\n\t}", "public final native int getUTCMonth() /*-{\n return this.getUTCMonth();\n }-*/;", "public static int number(int m, int d, int y) {\n int n = 0;\n // Tests for user inputted month then reassigns amount of days to a variable.\n if (m == 1) {\n n = n+0;\n } else if (m == 2) {\n n = n+31;\n } else if (m == 3) {\n n = n+59;\n } else if (m == 4) {\n n = n+90;\n } else if (m == 5) {\n n = n+120;\n } else if (m == 6) {\n n = n+151;\n } else if (m == 7) {\n n = n+181;\n } else if (m == 8) {\n n = n+212;\n } else if (m == 9) {\n n = n+243;\n } else if (m == 10) {\n n= n+273;\n } else if (m == 11) {\n n = n+304;\n } else if (m == 12) {\n n = n+334;\n }\n // Calculates the amount of dyas in the year the date is, considering leap years.\n n = n+d+(y*365+y/4-y/100+y/400);\n // Tests if the year entered is a leap year, and if true, 1 day is subtracted.\n if (n/4 == 0 && n/100 == 0 && n/400 == 0 || n/4 == 0 && n/100 != 0) {\n n = n-1;\n }\n return n;\n }", "public int getDateAsNumber(){\n\t\tSimpleDateFormat f = new SimpleDateFormat(\"yyyyMMdd\");\n\t\treturn Integer.parseInt(f.format(date.get()));\n\t}", "public static int getMonthFromTimestamp(long unixtime){\n \tCalendar c = Calendar.getInstance();\n \tc.setTimeInMillis(unixtime);\n \treturn (1 + c.get(Calendar.MONTH));\n }", "public static int numDaysInMonth(int month){\r\n switch (month) {\r\n case 1:\r\n case 3:\r\n case 5:\r\n case 7:\r\n case 9:\r\n case 11:\r\n return 31;\r\n case 2:\r\n return 29;\r\n\r\n default:\r\n return 30\r\n }\r\n}", "public String getMonth() {\n return month.getText();\n }", "public Month getMonth(){\n\t return this.month;\n }", "public int MagicDate(){\n return month = day = year = 1;\n \n }", "public int getDate() {\n\t\treturn date.getDayOfMonth();\n\t}", "@JsonSetter(\"exp_month\")\r\n public void setExpMonth (int value) { \r\n this.expMonth = value;\r\n }", "static private int getMonthIndex(String month) throws IllegalArgumentException {\n\t\tfor (int i = 0; i < Data.MESI.length; i++ ) {\n\t\t\tif ( month.equalsIgnoreCase(Data.MESI[i]) ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"'\" + month + \"' is a month name\");\n\t}", "public int getMon() {\n return mon;\n }", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public int getDayOfWeekInMonth() \n\t{\n\t\treturn m_calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH);\n\n\t}", "public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}", "int calDateMonth(int mC,int yC,int mG,int yG){//(current-month, current-year, goal-month, goal-year)\n int x = 0,i,countM=0;\n if(yC<=yG){\n for(i = yC; i < yG; i++)\n countM += 12;\n }\n\n countM -= mC;\n countM += mG;\n return (countM);\n }", "private int daysInMonth (int Month, int Year) {\n int result = 0;\n for (int i = 0; i <=6; i++) {\n if (Month == months31[i]){\n result = 31;\n } else {\n // ergänzen um schaltjahr\n if (Month == 2){\n result = daysFebruary(Year);\n } else {\n result = 30;\n }\n }\n } return result;\n\n }", "public Integer getFiscalYearStartMonth()\r\n {\r\n return (m_fiscalYearStartMonth);\r\n }", "public int lengthOfMonth() {\n\n return CALSYS.getLengthOfMonth(CopticEra.ANNO_MARTYRUM, this.cyear, this.cmonth);\n\n }", "public double getPer_month(){\n\t\tdouble amount=this.num_of_commits/12;\n\t\treturn amount;\n\t}", "private int daysInMonth(int month)\r\n {\n \r\n \tif (month == 4 || month == 5 || month == 9 || month == 11)\r\n \t{\r\n \t\treturn 30;\r\n \t}\r\n \tif (month == 2)\r\n \t{\r\n \t\tif (leapYear(year))\r\n \t\t{\r\n \t\t\treturn 29;\r\n \t\t}\r\n \t\telse \r\n \t\t{\r\n \t\t\treturn 28;\r\n \t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\treturn 31;\r\n \t}\r\n }", "public static int getMonthNumber(String monthName) {\r\n switch (monthName) {\r\n case \"Januar\": return 1;\r\n case \"Februar\": return 2;\r\n case \"Mars\": return 3;\r\n case \"April\": return 4;\r\n case \"Mai\": return 5;\r\n case \"Juni\": return 6;\r\n case \"Juli\": return 7;\r\n case \"August\": return 8;\r\n case \"September\": return 9;\r\n case \"Oktober\": return 10;\r\n case \"November\": return 11;\r\n case \"Desember\": return 12;\r\n default: return 0;\r\n }\r\n }", "public int[] getMonths() {\n return months;\n }", "public int getLastMonthOfYear (int year)\n {\n return 12;\n }", "public String getMonthOfYear() {\r\n return monthOfYear;\r\n }", "public static int getMonthFromString(String date) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.UK);\r\n\t\t\tDateTime dt = new DateTime((Date) sdf.parse(date));\r\n\t\t\treturn dt.getMonthOfYear();\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\t\r\n\t\t\r\n\t}", "public static int checkDaysInMonth(int m, int y) {\n if (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) { // if it is a long month\n return 31; // the month has 31 days\n } else if (m == 4 || m == 6 || m == 9 || m == 11) { // if it is a short month\n return 30; // the month has 30 days\n } else if (m == 2) { // if the month is February\n if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0) { // if it is a leap year\n return 29; // the month has 29 days\n } else { // if it is not a leap year\n return 28; // the month has 28 days\n }\n }\n return 0; // if the month number is invalid\n }", "public int getNumberOfDays()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1 || mn == 3 || mn == 5 || mn == 7 || mn == 8 || mn == 10 || mn == 12)\r\n {return 31;}\r\n if (mn == 4 || mn == 6 || mn == 9 || mn == 11)\r\n {return 30;}\r\n else\r\n {return 28;}\r\n }", "public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}", "public static int getTodaysDay() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.monthDay;\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int getMM() {\n\t\treturn MM;\r\n\t}", "public int getMM() {\n\t\treturn MM;\n\t}" ]
[ "0.7963361", "0.7959545", "0.7851938", "0.76307017", "0.7390417", "0.7248599", "0.7237235", "0.722384", "0.72030026", "0.71483785", "0.7135022", "0.7120462", "0.7120462", "0.7083211", "0.7067793", "0.7067793", "0.702463", "0.695514", "0.6952285", "0.68891215", "0.6824501", "0.6769548", "0.6713097", "0.66908056", "0.6684217", "0.6679346", "0.667927", "0.665218", "0.6645103", "0.6645103", "0.6645103", "0.6642722", "0.662214", "0.66046286", "0.66040426", "0.6576292", "0.65527827", "0.6527547", "0.6508943", "0.6498153", "0.6468021", "0.6465322", "0.64593726", "0.64552206", "0.6449528", "0.64296854", "0.64144856", "0.64033425", "0.63988525", "0.6377035", "0.63714606", "0.6362474", "0.6353163", "0.6321567", "0.6262755", "0.62590927", "0.6244524", "0.62211436", "0.621108", "0.6194418", "0.6173546", "0.61680037", "0.6142031", "0.6115734", "0.6111985", "0.6104444", "0.61031747", "0.6087523", "0.6083725", "0.60832274", "0.60804653", "0.60679823", "0.60458654", "0.60436803", "0.6042044", "0.6041852", "0.6025535", "0.60124624", "0.6003217", "0.6002396", "0.60003287", "0.59883237", "0.5981542", "0.59718174", "0.5969617", "0.5953466", "0.5952073", "0.5925746", "0.59254366", "0.59170264", "0.5912218", "0.59096026", "0.59036547", "0.5886915", "0.58852077", "0.58840847", "0.58818585", "0.58704716", "0.5864559", "0.5863619" ]
0.64446366
45
nothing to do yet
@Override public void initialize(Bootstrap<Configuration> bootstrap) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo38117a() {\n }", "protected void mo6255a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo12628c() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void baocun() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public abstract void mo70713b();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract void mo56925d();", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tprotected void logic() {\n\n\t}", "public void mo115190b() {\n }", "public abstract void mo6549b();", "private void parseData() {\n\t\t\r\n\t}", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo21825b() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "void mo57277b();", "public void mo12930a() {\n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void memoria() {\n \n }", "public void mo3376r() {\n }", "public void identify() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo21793R() {\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "public void mo21878t() {\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n public void preprocess() {\n }", "@Override\n public int retroceder() {\n return 0;\n }" ]
[ "0.6106569", "0.60834163", "0.6064461", "0.6015456", "0.59833896", "0.5946322", "0.59131056", "0.5862406", "0.5862406", "0.5840434", "0.5813796", "0.5810636", "0.5802016", "0.5800202", "0.5793572", "0.5790893", "0.577759", "0.5761792", "0.5761074", "0.5757549", "0.5749601", "0.57429975", "0.5716308", "0.57099295", "0.56784666", "0.56614083", "0.56385046", "0.56307936", "0.5628827", "0.56258684", "0.5625223", "0.56242096", "0.56242096", "0.56194216", "0.5614741", "0.5605735", "0.5597762", "0.5575846", "0.55452347", "0.554213", "0.554213", "0.554213", "0.554213", "0.554213", "0.554213", "0.554213", "0.5527121", "0.55238444", "0.55133426", "0.5496193", "0.5489599", "0.5486064", "0.54795647", "0.5475406", "0.5473728", "0.5460488", "0.5457497", "0.54440457", "0.54413104", "0.5438781", "0.54349214", "0.5422613", "0.5415786", "0.54107183", "0.5409447", "0.53939515", "0.53939515", "0.53878236", "0.53810465", "0.5379817", "0.5370255", "0.53628886", "0.5361535", "0.53554976", "0.53554153", "0.5346635", "0.5345538", "0.5344374", "0.534375", "0.5336419", "0.53269273", "0.53259814", "0.53253925", "0.5317175", "0.5313549", "0.53087884", "0.5308013", "0.53040594", "0.53024524", "0.5301352", "0.52962744", "0.5287651", "0.5283941", "0.527806", "0.5273071", "0.5269823", "0.526848", "0.5266955", "0.5266739", "0.5266666", "0.5265264" ]
0.0
-1
Executes the AddTodoCommand by adding the todo to the TaskList and storage file.
@Override public void execute(TaskList tasks, Storage storage, Ui ui) throws IOException { Todo toAdd = new Todo(description, false); tasks.addTask(toAdd); storage.writeToData(toAdd, tasks.getNumberOfTasks()); ui.acknowledgeAddCommand(toAdd, tasks.getNumberOfTasks()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CommandResult execute() {\n tasks.add(taskToAdd);\n try {\n storage.appendToFile(taskToAdd);\n return new CommandResult(String.format(MESSAGE_SUCCESS, taskToAdd));\n } catch (IOException e) {\n return new CommandResult(e.getMessage());\n }\n }", "@Override\n public void execute(TaskListHandler handler, Storage storage, String input) throws DukeException {\n ArrayList<Task> taskList = handler.getTasks();\n handler.addToList(newTask);\n Ui.printSuccess(\"add\", newTask, taskList);\n handler.saveCurrentTaskList(input);\n storage.saveToFile(taskList);\n }", "void addToList(Task task) throws InvalidCommandException;", "public void addToDo() throws StringIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.substring(TODO_HEADER);\n ToDo todo = new ToDo(taskDescription);\n tasks.add(todo);\n storage.writeToFile(todo);\n ui.echoUserInput(todo, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException {\n if (userInputCommand.trim().equals(COMMAND_TODO)) {\n throw new DukeException(ERROR_MESSAGE_GENERAL + MESSAGE_FOLLOWUP_NUll);\n } else if (userInputCommand.trim().charAt(4) == ' ') {\n String description = userInputCommand.split(\"\\\\s\",2)[1].trim();\n if (description.contains(\"/after\")) {\n String details = description.split(\"/after\", 2)[0].trim();\n String doaftertask = description.split(\"/after\", 2)[1].trim();\n if (details.isEmpty() || doaftertask.isEmpty()) {\n throw new DukeException(ERROR_MESSAGE_DO_AFTER);\n } else {\n taskList.addDoAfterTask(details, doaftertask);\n storage.saveFile(taskList);\n }\n } else {\n taskList.addTodoTask(description);\n storage.saveFile(taskList);\n }\n } else {\n throw new DukeException(ERROR_MESSAGE_RANDOM);\n }\n }", "private void doAddTask() {\n System.out.println(\n \"Kindly enter the time, description and date of the task you would like to add on separate lines.\");\n String time = input.nextLine();\n String description = input.nextLine();\n String date = input.nextLine();\n todoList.addTask(new Task(time,description,date));\n System.out.println(time + \" \" + description + \" \" + date + \" \" + \"has been added.\");\n }", "@Override\n public String execute() throws DukeCommandException {\n try {\n ToDo toDo = taskManager.addToDo(this.desc);\n Storage.saveTasks(taskManager.getTasks());\n return ui.constructAddMessage(toDo, taskManager.getTasksSize());\n } catch (DukeException e) {\n throw new DukeCommandException(\"todo\", desc, e.getMessage());\n }\n }", "public static void testAddTask(final Todoist todo, final String[] tokens) {\n try {\n todo.addTask(createTask(tokens));\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public static void testAddTask(final Todoist todo, final String[] tokens) {\n try {\n todo.addTask(createTask(tokens));\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public String execute(TaskList tasks, Ui ui, Storage storage) throws IOException, UpdateStateException {\n super.tasks = tasks;\n super.ui = ui;\n super.storage = storage;\n ToDo currTask = new ToDo(rawString.replaceFirst(\"todo \", \"\"));\n String output = tasks.add(currTask);\n super.addCommandUpdateState();\n return output;\n }", "public Task addTodo(String specifications) throws DukeException {\n Task newTask = new ToDo(specifications);\n tasks.add(newTask);\n return newTask;\n }", "@Override\n public void executeAction(String command) {\n String[] parts = command.split(\",\");\n Task task = Task.buildTask(parts[0], parts[1], DateSorting.parseDate(\"dd-MM-yyyy\", parts[2]),\n parts[3], parts[4]);\n\n TodoList.tasks.put(task.getId(), task);\n System.out.println(\"IP.TodoListApplication.App.Task successfully added!\");\n\n }", "public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}", "public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }", "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException {\n Deadline deadline = new Deadline(description, by);\n taskList.addTask(deadline);\n ui.showAddTask(deadline, taskList.getSize());\n storage.save(taskList.getData());\n }", "public void add(Task t)\n {\n\ttoDo.add(t);\n }", "public void addTask(String wholeLine) {\n String type;\n boolean completionStatus;\n String name;\n String date = null;\n try {\n Scanner currentLine = new Scanner(wholeLine);\n // something like [T][✓]\n if (currentLine.hasNext()) {\n String typeCompletion = currentLine.next();\n switch (typeCompletion.charAt(1)) {\n case ('T'):\n type = \"todo\";\n break;\n case ('E'):\n type = \"event\";\n break;\n case ('D'):\n type = \"deadline\";\n break;\n default:\n // this shouldn't happen\n type = null;\n }\n completionStatus = typeCompletion.charAt(4) != 'X';\n } else {\n throw Ui.DukeException.fileError();\n }\n\n if (currentLine.hasNext()) {\n name = currentLine.nextLine().trim();\n } else {\n throw Ui.DukeException.fileError();\n }\n assert type != null;\n int dateLocation = containsDate(name);\n if (dateLocation >= 0) {\n date = name.substring(dateLocation);\n name = name.substring(0, dateLocation - 5);\n }\n Task taskToAdd = new Task(type, name, completionStatus, date);\n storage.add(taskToAdd);\n if (taskToAdd.hasDate()) {\n if (!dateStorage.containsKey(taskToAdd.getDate())) {\n dateStorage.put(taskToAdd.getDate(), new ArrayList<>());\n }\n dateStorage.get(taskToAdd.getDate()).add(taskToAdd);\n }\n taskAdded(taskToAdd, storage);\n } catch (Ui.DukeException e) {\n echo(e.getMessage());\n }\n }", "public ToDoCommand(TaskList taskList, Storage storage, Ui ui, String userInput) {\n super(taskList, storage, ui, userInput);\n }", "public void addCommandMutable(ListItem task) {\n this.listItems.add(task);\n }", "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException, ParseException {\n if (userInputCommand.trim().equals(COMMAND_SNOOZE)) {\n throw new DukeException(ERROR_MESSAGE_EMPTY_INDEX + MESSAGE_FOLLOWUP_EMPTY_INDEX);\n } else if (userInputCommand.trim().charAt(6) == ' ') {\n String description = userInputCommand.trim().split(\"\\\\s\", 2)[1];\n if (isParsable(description)) {\n //converting string to integer\n int index = Integer.parseInt(description);\n if (index > taskList.getSize() || index <= 0) {\n if (taskList.getSize() == 0) {\n throw new DukeException(ERROR_MESSAGE_EMPTY_LIST);\n } else {\n throw new DukeException(ERROR_MESSAGE_INVALID_INDEX + taskList.getSize() + \".\");\n }\n } else {\n taskList.snoozeTask(index);\n if (description.contains(\" /by \")) {\n String details = taskList.getTask(index - 1).getDescription();\n String date = description.trim().split(\" /by \", 2)[1];\n if (details == null || date == null) {\n throw new DukeException(ERROR_MESSAGE_DEADLINE);\n } else {\n if (isParseDate(date)) {\n taskList.addDeadlineTask(details, date);\n storage.saveFile(taskList);\n } else {\n throw new DukeException(ERROR_MESSAGE_INVALID_DATE);\n }\n }\n } else if (description.contains(\" /at \")) {\n String details = description.trim().split(\" /at \", 2)[0];\n String date = description.trim().split(\" /at \", 2)[1];\n if (details == null || date == null) {\n throw new DukeException(ERROR_MESSAGE_EVENT);\n } else {\n taskList.addEventTask(details, date);\n storage.saveFile(taskList);\n }\n } else {\n description = userInputCommand.trim().split(\"\\\\s\", 2)[1];\n taskList.addTodoTask(description);\n storage.saveFile(taskList);\n }\n }\n } else {\n throw new DukeException(ERROR_MESSAGE_UNKNOWN_INDEX);\n }\n } else {\n throw new DukeException(ERROR_MESSAGE_RANDOM);\n }\n }", "public CommandResult executeCommand(Tasklist taskList, Response response, PersistentStorage storage)\n throws DukeException {\n Event event = new Event(this.description, this.eventDateTime);\n taskList.addTask(event);\n storage.saveTasks(taskList);\n return new CommandResult(response.showAddedTask(taskList, event));\n }", "@Override\n public String execute(Storage storage, TaskList taskList, Ui ui) throws IOException {\n\n int pos = deadlineDescription.indexOf(\"/\");\n String taskDescription = deadlineDescription.substring(0, pos - 1);\n String dueDate = deadlineDescription.substring(pos + 4);\n LocalDate byDate = LocalDate.parse(dueDate);\n\n Deadline deadline = new Deadline(taskDescription, byDate);\n taskList.storeTask(deadline);\n String output = ui.showTaskAdded(deadline, taskList);\n storage.saveFile(taskList.getAllTasks());\n return output;\n\n }", "@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }", "void addTask(Task task);", "public void storeTodoItems() throws IOException {\n Path path = Paths.get(filename);\n BufferedWriter bw = Files.newBufferedWriter(path);\n\n try {\n Iterator<TodoItem> i = todoItems.iterator();\n while (i.hasNext()) {\n TodoItem item = i.next();\n bw.write(String.format(\"%s\\t%s\\t%s\", item.getShortDescription(), item.getDetails(), item.getDeadline().format(formatter)));\n bw.newLine();\n }\n\n } finally {\n if (bw != null) {\n bw.close();\n }\n }\n }", "public void add(Task task){ this.tasks.add(task);}", "public void add(T ob) throws ToDoListException;", "public void addTask(Task task) {\n list.add(task);\n }", "public static void addTask(ArrayList<Task> taskList) {\n // String response; // String variable for user's input\n Task task; // declaring the temporary task variable for the user's task\n do { // do while loop for preventing the user from entering a label longer than 20 characters\n System.out.print(\"Task (max 20 char.): \"); // prompting the user for task label\n response = input.nextLine(); // receiving user input\n } while (response.length() > 20); // runs until they enter a valid input\n \n if (response.equals(\"\") || response.equals(\" \")) { // if they left the label blank\n task = new Task();\n } else {\n task = new Task(response);\n }\n System.out.print(\"Task added.\"); // tells the user that adding the task was successful\n System.out.println(\"\\n\"); // prints a newline for formatting\n taskList.add(task); // adds task to the task list\n pause(); // pauses the screen\n }", "public void addTask(Task newTask) {\n recordedTask.add(newTask);\n updateTaskToFile();\n }", "private void addTask(ToDoList toDoList, JSONObject jsonObject) {\n String name = jsonObject.getString(\"title\");\n LocalDate dueDate = LocalDate.parse(jsonObject.getString(\"dueDate\"));\n boolean complete = jsonObject.getBoolean(\"complete\");\n boolean important = jsonObject.getBoolean(\"important\");\n Task newTask = new Task(name, dueDate);\n newTask.setComplete(complete);\n newTask.setImportant(important);\n\n toDoList.addTask(newTask);\n }", "@Test\n public void execute() {\n new AddCommand(\"todo\",\"buy books\",null).execute(tasksTest,uiTest,storageTest);\n assertEquals(1,tasksTest.list.size());\n\n // Test AddCommand works for correct input - event command type\n new AddCommand(\"event\",\"birthday party\",\"08-12-2019 18:00\").execute(tasksTest,uiTest,storageTest);\n assertEquals(2,tasksTest.list.size());\n\n // Test AddCommand works for correct input - deadline command type\n new AddCommand(\"deadline\",\"report\",\"11-12-2019 23:59\").execute(tasksTest,uiTest,storageTest);\n assertEquals(3,tasksTest.list.size());\n }", "void add(final Task task);", "public void addNewToDo(String description) {\n Todo todo = new Todo(description);\n taskList.add(todo);\n printSuccessfulAddMessage(todo.toString());\n }", "@Override\n public Result execute(TaskList taskList, Ui ui, Storage storage) throws IOException {\n // This pair contains the updated task list along with an output message\n Pair<TaskList, String> taskListPair = taskList.markTask(ui, input);\n TaskList newTaskList = taskListPair.getKey();\n storage.saveTasksToFile(newTaskList);\n String message = taskListPair.getValue();\n return new Result(newTaskList, message);\n }", "public void add(final Task task) {\n }", "public String execute(TaskList taskList, Storage storage) {\n ArrayList<Task> list = taskList.getTaskList();\n\n Task event = new Event(eventName, date);\n\n taskList.addTaskList(event);\n storage.writeToFile(list);\n\n return UI.newTask(list);\n }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void add(Task task)\n {\n this.tasks.add(task);\n }", "public void addTask(View v) {\n EditText field = (EditText) findViewById(R.id.list_edittext);\n String task = field.getText().toString().trim();\n\n // Do not add empty tasks\n if(!task.equals(\"\")) {\n database.addTask(task);\n field.setText(\"\");\n Toast.makeText(this, String.format(getResources().getString(R.string.list_add_toast),\n task), Toast.LENGTH_LONG).show();\n }\n }", "public void addTask(View view) {\n // Model of the list data\n ListModel model = ListModel.getInstance();\n\n // String for the date in \"mm/dd/yyyy\" format\n String date;\n\n // Get the name of the task\n EditText text = (EditText) findViewById(R.id.taskInput);\n String taskName = text.getText().toString();\n\n // Add list to model\n model.addTask(listName, taskName);\n\n\n // Return to the single list activity\n Log.i(TAG, \"Creating intent to return to the single list activity\");\n Intent intent = new Intent(this, SingleListActivity.class);\n intent.putExtra(Extra.LIST, listName);\n Log.i(TAG, \"Intent created with extra message (list name).\");\n Log.i(TAG, \"Starting single list activity\");\n startActivity(intent);\n }", "@Override\n public void execute(TaskList task, Ui ui, Storage storage) {\n this.isExit = true;\n ui.goodbye();\n try {\n storage.writeFileContents(task);\n } catch (DukeException DE) {\n ui.showError(DE);\n }\n }", "@Override\r\n\tpublic void eventReceived(TaskEvent event) \r\n\t{\r\n\t\t//Add new Item\r\n\t\tif (event.getOperationType() == TaskEvent.ADD_NEW_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Add a new item to the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().add((makeTaskFromArray((String[]) event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if (event.getOperationType() == TaskEvent.REMOVE_TASK_EVENT)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Remove Item from the List\");\r\n\t\t\tModelLocator.getInstance().getTaskList().removeElementAt(Integer.parseInt((String)(event.parametersToCommand())));\r\n\t\t\tSystem.out.println(ModelLocator.getInstance().getTaskList());\r\n\t\t}\r\n\t\telse if(event.getOperationType() == TaskEvent.SET_TASK_DONE_EVENT)\r\n\t\t{\r\n\t\t\t//To be implemented\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Error!!!!!\");\r\n\t\t\r\n\t}", "public static void loadToDoListsFromFile() {\n\n\t\tAccount openedAccount = AccountManager.getAccount();\n\t\tFile loadListFile = new File(\n\t\t\t\tSystem.getProperty(\"user.dir\") + \"//ToDoLists//\" + openedAccount.getUserName() + \"//toDoList.txt\");\n\n\t\tif (loadListFile.exists()) {\n\n\t\t\ttry (Scanner readFromFile = new Scanner(loadListFile)) {\n\n\t\t\t\tString listName = new String();\n\t\t\t\tString taskName = new String();\n\t\t\t\tString taskDescription = new String();\n\t\t\t\tString taskTag = new String();\n\t\t\t\tString isFinished = new String();\n\t\t\t\tLocalDate dueDate;\n\t\t\t\tString[] time;\n\t\t\t\tint[] timeInt = new int[3];\n\n\t\t\t\twhile (readFromFile.hasNext()) {\n\n\t\t\t\t\tlistName = readFromFile.nextLine();\n\n\t\t\t\t\tcreateNewToDoList(listName);\n\n\t\t\t\t\tToDoList list = getToDoList(listName);\n\t\t\t\t\tFile taskFile = new File(System.getProperty(\"user.dir\") + \"//ToDoLists//\"\n\t\t\t\t\t\t\t+ openedAccount.getUserName() + \"//\" + list.getListName() + \".txt\");\n\n\t\t\t\t\ttry (Scanner readTaskFile = new Scanner(taskFile)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (readTaskFile.hasNext()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttaskName = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskDescription = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskTag = readTaskFile.nextLine();\n\t\t\t\t\t\t\tisFinished = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttime = readTaskFile.nextLine().split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\t\t\t\t\t\ttimeInt[i] = Integer.valueOf(time[i]);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tdueDate = LocalDate.of(timeInt[0], timeInt[1], timeInt[2]);\n\t\t\t\t\t\t\tlist.createNewTask(taskName, taskDescription, dueDate, taskTag);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (isFinished.equals(\"true\")) {\n\t\t\t\t\t\t\t\tlist.getTaskByTaskName(taskName).setFinished(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }", "public void add(Task task) {\r\n tasks.add(task);\r\n }", "String addTask(Task task);", "public TaskList addCommand(ListItem task) {\n List<ListItem> tempList = new ArrayList<>(this.listItems);\n tempList.add(task);\n return new TaskList(tempList);\n }", "public void addItemToList(String task, String completionDate, boolean completed)\n {\n Item.getToDoList().add(new Item(task, completionDate, completed));\n }", "public void addItemsToTask(Task task) {\n\n \tString n, t, description;\n\t\tItemType type;\n \t\n \tfor(int i = 0;i<currentTaskItems.size();i++) {\n \t\t\n \t\tString temp[] = currentTaskItems.get(i);\n \t\t\n \t\t//map for item\n \t\t//0 -> number of item\n \t\t//1 -> item type\n \t\t//2 -> description\n \t\tn = temp[0];\n \t\tt = temp[1];\n \t\tdescription = temp[2];\n \t\t\n \t\tInteger num = Integer.valueOf(n);\n \t\t\n \t\tif(t.equals(\"Photo\")) {\n \t\t\ttype = ItemType.PHOTO;\n \t\t}else if(t.equals(\"Audio\")) {\n \t\t\ttype = ItemType.AUDIO;\n \t\t}else if(t.equals(\"Video\")) {\n \t\t\ttype = ItemType.VIDEO;\n \t\t}else{\n \t\t\ttype = ItemType.TEXT;\n \t\t}\n \t\t\n \t\t//create the item\n \t\tTaskItem item = new TfTaskItem(type, num, description);\n \t\ttask.addItem(item); \t\t\n \t}\n }", "public void createTask()\n {\n boolean copy = false;\n if(check.checkTask(taskName.getText()))\n {\n // Go through list and make sure task isnt already there\n // If there is one already in list, then tell user there it is on list\n if(!(Item.getToDoList().isEmpty()))\n {\n for(Item task : Item.getToDoList())\n {\n if(task.getTask().equals(taskName.getText()))\n {\n status.setText(\"Task is already on the list. \");\n copy = true;\n }\n }\n\n if(!copy)\n {\n // If not copy, add the task to the list by calling method\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n }\n\n // If list is empty, then no need to check if task is copy\n else\n {\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n\n }\n\n // If task is invalid, alert user\n else\n {\n status.setText(\"Task invalid. Try again. \");\n }\n\n }", "public void addTask(Task task)\n {\n tasks.add(task);\n }", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "public void addTask(View v) {\n int taskId = Integer.parseInt(txtId.getText().toString());\n String tskName = txtTaskName.getText().toString();\n String taskDesc = txtTaskDescription.getText().toString();\n ContentValues values = new ContentValues();\n values.put(\"taskId\", taskId);\n values.put(\"taskName\", tskName);\n values.put(\"taskDescription\", taskDesc);\n try {\n taskManager.addTask(values);\n Toast.makeText(this, \"Data Inserted\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "private void addTask(String line, ArrayList<Task> tasks) {\n String[] info = line.split(\" \\\\| \");\n String type = info[0];\n int complete = Integer.parseInt(info[1]);\n String title = info[2];\n switch(type) {\n case \"T\":\n Todo newTodo = new Todo(title, complete);\n tasks.add(newTodo);\n break;\n case \"D\":\n String deadline = info[3];\n LocalDate deadlineInLocalDate = LocalDate.parse(deadline);\n Deadline newDeadline = new Deadline(title, complete, deadlineInLocalDate);\n tasks.add(newDeadline);\n break;\n case \"E\":\n String time = info[3];\n LocalDate timeInLocalDate = LocalDate.parse(time);\n Event newEvent = new Event(title, complete, timeInLocalDate);\n tasks.add(newEvent);\n break;\n case \"P\":\n String start = info[3];\n String end = info[4];\n LocalDate startInLocalDate = LocalDate.parse(start);\n LocalDate endLocalDate = LocalDate.parse(end);\n PeriodTask periodTask = new PeriodTask(title, complete, startInLocalDate, endLocalDate);\n tasks.add(periodTask);\n break;\n default:\n throw new AssertionError(type);\n }\n }", "@Override\n public void execute(TaskListHandler handler, Storage storage, String input) throws DukeException {\n ArrayList<Task> taskList;\n taskList = handler.clearList();\n for (Task t1 : taskList) {\n System.out.println(t1);\n }\n handler.saveCurrentTaskList(input);\n storage.saveToFile(taskList);\n }", "public static void main(String[] args) {\nSthToDoWithFile stdwf = new SthToDoWithFile();\r\nstdwf.addList(new File(\"some path to file\"));\r\n\t}", "public void execute(String[] args) {\n if (!(args.length != 1 || args.length != 2)) {\n System.out.println(\"Wrong number of arguments!\\n\");\n usage();\n return;\n }\n if (args.length == 2) {\n if (Const.validInputOfHelp.contains(args[1])) {\n // Print help message\n usage();\n return;\n }\n System.out.println(String.format(\"Wrong argument %s\\n\", args[1]));\n usage();\n return;\n }\n try {\n // Create the folder\n File dir = new File(Const.DEFAULT_FOLDER_PATH);\n if (dir.exists()) {\n System.out.println(\"Target folder is not empty!\");\n return;\n }\n if (!dir.mkdir()) {\n System.out.println(\"Unable to create the list in this folder!\");\n return;\n }\n\n // Create the list file\n File list = new File(Const.DEFAULT_FILE_PATH);\n if (list.exists()) {\n System.out.println(\"List file exists!\");\n return;\n }\n if (!list.createNewFile()) {\n System.out.println(\"Unable to create the list in this folder!\");\n return;\n }\n\n // Create an empty list\n TodoList todoList = new TodoList();\n // Serialize this list to file\n Util.saveToListFile(todoList);\n System.out.println(\"Successfully initialized an empty list in folder: .todo\");\n } catch (Exception e) {\n System.out.println(\"Unable to create the list in this folder!\");\n e.printStackTrace();\n }\n }", "public void onAddTaskButtonPressed(View view) {\n\t\tString taskName = taskNameField.getText().toString();\n\t\tif (taskName.equals(\"\"))\n\t\t\treturn;\n\t\ttaskNameField.setText(\"\");\n\t\ttodoList.addTask(taskName);\n\t}", "@Override\r\n\tpublic Task addTask(Task task) {\n\t\treturn taskRepository.save(task);\r\n\t}", "@Test\n public void confirmTaskAdded() {\n TaskList tasks = new TaskList(\"./test/junit.txt\");\n LocalDateTime date = LocalDateTime.parse(\"2015-10-20 1800\");\n String taskDescription = \"read a book\";\n tasks.addDeadline(taskDescription, date);\n Task addedTask = tasks.get(0);\n assertEquals(\"[D][ ] read a book by: 2015-10-20 18:00\", addedTask.toString());\n }", "public void addItemsToList(ArrayList<Todo> toDosToBeAdded, String fromListName){\n\t\tInteger lastItemIndex = toDosToBeAdded.size() - 1;\n\t\tfor (int i = lastItemIndex; i >= 0; i--){\n\n\t\t\tTodo todo = toDosToBeAdded.get(i);\n\t\t\t// if the todo is coming from the todolist we\n\t\t\t// we need to set it as an archived to do.\n\t\t\t// otherwise its come from the archive and\n\t\t\t// needs to be unarchived.\n\t\t\tif (fromListName == \"TODOLIST\"){\n\t\t\t\ttodo.setArchived(true);\n\t\t\t} else if (fromListName == \"ARCHIVEDTODOLIST\") { \n\t\t\t\ttodo.setArchived(false);\n\t\t\t} else {\n\t\t\t\t// this is a little akward I know\n\t\t\t\t// if the to do is coming from the input text\n\t\t\t\t// box setArchive does not need to be set\n\t\t\t\t// so we pass in an empty string to dodge the above\n\t\t\t\t// conditions\n\t\t\t}\n\t\t\tmTodos.add(0, todo);\n\t\t\tmAdapter.notifyDataSetChanged();\t\t\n\t\t}\n\t\t// update the save file\n\t\tDataLoader dataLoader = new DataLoader(getActivity(), \"TO_DO_DATA\");\n\t\tdataLoader.setData(mKeyNameForToDoList, mTodos);\n\t}", "public void execute(Ui ui, TaskList tasklist){\r\n tasklist.addTask(task);\r\n ui.printMessage(\"Got it. I've added this task: \");\r\n ui.printMessage(task.getTaskDetails());\r\n }", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public void addNewTask(String taskName) {\n\t\tCommand cmdAdd = new CmdAdd();\n\t\tcmdAdd.setParameter(CmdParameters.PARAM_NAME_TASK_NAME, taskName);\n\t\tcmdAdd.execute();\n\t}", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "@Override\n\t\tprotected String doInBackground(Task... arg0) {\n\t\t\tString taskID = TfTaskRepository.addTask(arg0[0], \n\t\t\t getApplicationContext());\n\t\t\t\n\t\t\ttaskID = taskID + \"\\n\";\n\t\t\t\n\t\t\t//saving the ID local\n\t\t\tlt.saveTaskId(taskID, getApplicationContext());\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public static void addTask( String Tasks[], int taskIndex ){\n\n System.out.println(\"Enter a description of the task:\");\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n String newTask = scanner.nextLine();\n Tasks[taskIndex] = newTask;\n }", "void addTask(Task<?> task) {\n tasks.addFirst(task);\n }", "@Override\n public void execute(TaskList taskList, UI ui, Storage storage) throws DukeException {\n\n super.execute(taskList, ui, storage);\n checkValidity();\n\n Task doneTask = taskList.getTaskByIndex(Integer.parseInt(this.descriptionOfTask.trim()) - 1);\n doneTask.markAsDone();\n ui.displayDone(doneTask);\n storage.saveToDataFile(taskList);\n\n }", "public void addTasks(TaskManager taskManager) throws IOException {\n FileWriter fileWriter = new FileWriter(filePath);\n List<Task> listOfTasks = taskManager.getListOfTasks();\n for (int i = 0; i < listOfTasks.size(); i++) {\n String line = listOfTasks.get(i).formatLine();\n fileWriter.write(line);\n }\n fileWriter.close();\n }", "private CommandResult executeAddCommand(Command userCommand) {\n switch (userCommand.getCommandType()) {\n case Command.COMMAND_ADD_TODO:\n if (userCommand.getCommandDescription().equals(Command.BLANK_DESCRIPTION)) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_TODO);\n }\n try {\n tasks.add(new Todo(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_TODO);\n }\n break;\n case Command.COMMAND_ADD_DEADLINE:\n try {\n tasks.add(new Deadline(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException | StringIndexOutOfBoundsException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_DEADLINE);\n } \n break;\n case Command.COMMAND_ADD_EVENT:\n try {\n tasks.add(new Event(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException | StringIndexOutOfBoundsException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_EVENT);\n }\n break;\n default:\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_ADD_TASK);\n }\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, CommandResult.BLANK_DESCRIPTION);\n }", "public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }", "public void add(Task newTask) {\n tasks.add(newTask);\n }", "void addTasks(List<Task> tasks);", "public static void add(Tasks currentTask) {\n tasks.add(currentTask);\n tasksCount++;\n }", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "public void addTask(Task task) {\n this.tasks.add(task);\n }", "public void saveToDoList() {\n try {\n jsonWriter.open();\n jsonWriter.write(toDoList);\n jsonWriter.close();\n\n System.out.println(\"Saved \" + toDoList.getName() + \" to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "public void execute(String s) {\n ToDoItem newItem = new ToDoItem();\n newItem.setItemName(s);\n arrayToDoList.add(newItem); // when list the newItem object which is going to be the element of the toDoList, we have tu use the getter of the newItem\n }", "public void addTodoItem(TodoItem item) {\n todoItems.add(item);\n }", "public static void addTask(Task taskToAdd)\n\t{\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tCalendar cal = taskToAdd.getCal();\n\t\tint year = cal.get(YEAR);\n\t\tint month = cal.get(MONTH);\n\t\tint day = cal.get(DAY_OF_MONTH);\n\t\tint hour = cal.get(HOUR_OF_DAY);\n\t\tint minute = cal.get(MINUTE);\n\t\t\n\t\tString descrip = taskToAdd.getDescription();\n\t\tboolean recur = taskToAdd.getRecurs();\n\t\tint recurI;\n\t\tif(recur) recurI = 1;\n\t\telse recurI = 0;\n\t\tint recursDays = taskToAdd.getRecurIntervalDays();\n\t\t\n\t\tstatement.executeUpdate(\"INSERT INTO tasks (Year, Month, Date, Hour, Minute, Description, Recursion, RecursionDays) VALUES(\" +year+\", \"+month+\", \"+day+\", \"+hour+\", \"+minute+\", '\"+descrip+\"', \"+recurI+\", \"+recursDays+\")\");\n\t\tstatement.close();\n\t\treturn;\n\t}", "public void addToDo() {\n\n ToDoDBContract.ToDoListDbHelper dbHelper = new ToDoDBContract.ToDoListDbHelper(context);\n\n String name = et_name.getText().toString(); // gets the name the user has entered in the et_name edit text\n\n // If the name is null or empty, alert the user that they must enter a name\n if (name.equals(null) || name.equals(\"\")) {\n Log.d(\"ERROR\", \"name is not valid\", null);\n AlertDialog alertDialog = new AlertDialog.Builder(context)\n .setMessage(R.string.dialog_message_input_error_name)\n .setTitle(R.string.dialog_title_input_error_name)\n .setPositiveButton(\"Ok!\", null).create();\n alertDialog.show();\n } else {\n // If the name was NOT null or empty, create a new ToDoItem with the valid to-do name entered by the user\n ToDoItem addToDo = new ToDoItem(name);\n String note = et_note.getText().toString();\n\n // Get the other inputs from the use and make sure they are not null or invalid\n // If not null or invalid, set the ToDoItem's instance variables to the corresponding inputs\n if (!note.equals(null) || !note.equals(\"\")) {\n addToDo.setNote(note);\n }\n if (dueDateDate != null) {\n if (dueDateDate.getTime() > 0)\n addToDo.setDueDate(dueDateDate);\n } else {\n addToDo.setDueDate(null);\n }\n if (alarmDate != null) {\n if (alarmDate.getTimeInMillis() > 0)\n addToDo.setAlarmDate(new Date(alarmDate.getTimeInMillis()));\n } else {\n alarmDate = null;\n addToDo.setAlarmDate(null);\n }\n dbHelper.insertNewToDo(addToDo); // add the to-do to the database\n\n // If the user set a valid alarm, schedule it.\n if (alarmDate != null && alarmDate.getTimeInMillis() > 0) {\n int alarmID = dbHelper.getID(addToDo);\n Intent intent = new Intent(context, ToDoAlarmReceiver.class);\n intent.putExtra(\"ToDoName\", name);\n intent.putExtra(\"AlarmID\", alarmID);\n Log.d(TAG, \"alarm id = \" + alarmID);\n AlarmManager alarm = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\n alarm.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, alarmDate.getTimeInMillis(), pendingIntent);\n }\n\n // Make a toast confirming that the to do has been added and redirect back to the ToDoFragment\n Toast.makeText(context, \"To do \\\"\" + name + \"\\\" added\", Toast.LENGTH_LONG).show();\n ToDoFragment newFragment = new ToDoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "@Test\r\n\tpublic void testAddTask() {\n\t\ttodo.addTask(new Task(\"Test task1\"));\r\n\t\t\r\n\t\tCollection<Task> col = todo.getAllTasks();\r\n\t\tassertTrue(\"Expected collectioon to contain 1 task object\", col.size() == 1);\t\t\r\n\t\t\r\n\t\tTask[] tasks = new Task[] {};\r\n\t\tTask t = col.toArray(tasks)[0];\r\n\t\t\r\n\t\tassertEquals(\"Test task1\", t.getDescription());\t\t\r\n\t}", "public void handleLoad() throws IOException {\n File file = new File(this.path);\n\n // creates data directory if it does not exist\n file.getParentFile().mkdirs();\n\n // creates tasks.txt if it does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n\n Scanner sc = new Scanner(file);\n\n while (sc.hasNext()) {\n String longCommand = sc.nextLine();\n String[] keywords = longCommand.split(\" \\\\|\\\\| \");\n Task cur = null;\n switch (keywords[1]) {\n case \"todo\":\n cur = new Todo(keywords[2]);\n break;\n case \"deadline\":\n cur = new Deadline(keywords[2], keywords[3]);\n break;\n case \"event\":\n cur = new Event(keywords[2], keywords[3]);\n break;\n default:\n System.out.println(\"error\");\n break;\n }\n if (keywords[0].equals(\"1\")) {\n cur.markAsDone();\n }\n TaskList.getTaskLists().add(cur);\n }\n sc.close();\n }", "public String execute(TaskList tasks, UI ui, Storage storage) {\n try {\n if (instruction.equals(\"\")) {\n throw new DukeException(\"☹ OOPS!!! The description of event cannot be empty\");\n } else if (date.equals(\"\")) {\n throw new DukeException(\"☹ OOPS!!! The event must be at by a certain date\");\n } else {\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n Event et = new Event(instruction, formatter.parse(date));\n if (tasks.contains(et)) {\n throw new DukeException(\"Item already exists in the list!\");\n } else {\n tasks.addItemToList(et);\n }\n } catch (java.text.ParseException exp) {\n return exp.getMessage();\n }\n try {\n storage.append(tasks.getLastItem());\n } catch (Exception exp) {\n return ui.showErrorMsg(exp.getMessage());\n }\n\n }\n } catch (DukeException exp) {\n return ui.showErrorMsg(exp.getMessage());\n }\n\n return ui.showTaskAddedMsg(tasks.getLastItem(), tasks.getListSize());\n }", "@Override\n public String execute(TaskList tasks, Ui ui, Storage storage) \n throws UnableToSaveException, NoSuchTaskException, NotNumberException {\n int taskNo;\n try {\n taskNo = Integer.parseInt(inputArr[1]) - 1;\n } catch (NumberFormatException e) {\n throw new NotNumberException();\n }\n if (taskNo > tasks.size()) {\n throw new NoSuchTaskException();\n }\n tasks.setDone(taskNo);\n storage.saveToSave(tasks);\n return ui.reply(\"Okcan, I mark this task as done:\\n \" + Constant.SPACE + tasks.getTask(taskNo));\n }", "public void addTask(String task, String... args) {\r\n\t\ttasks.add(new String[][]{new String[]{task}, args});\r\n\t}", "@Override\n public void addTodo(Todo todo) {\n todos.add(todo);\n adapter.notifyDataSetChanged();\n dismissFragment(); //this will remove the dialog from screen\n\n }", "public void addToDoEntry(String toDoItem) {\n\t\t// adds a new item at the end of the list\n\t\ttoDoList.add(new ToDoEntry(toDoItem));\n\t}", "public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }", "@FXML\n void addTaskClicked(ActionEvent event)\n {\n createTask();\n }", "public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}", "private static void taskContentsFileTransfer() {\n // Transfer text file to temporary file\n try {\n String taskContentsFilePath, taskContents;\n BufferedReader taskContentsLocation = new BufferedReader(new FileReader(FILE_PATH_CONTENT));\n taskContentsFilePath = taskContentsLocation.readLine();\n\n if (taskContentsFilePath != null) {\n BufferedReader taskContentsReader = new BufferedReader(new FileReader(taskContentsFilePath));\n\n taskContents = taskContentsReader.readLine();\n while (taskContents != null) {\n fileContent.add(taskContents);\n taskContents = taskContentsReader.readLine();\n }\n taskContentsReader.close();\n // Clear file\n PrintWriter pw = new PrintWriter(taskContentsFilePath);\n pw.close();\n }\n taskContentsLocation.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException {\n try {\n taskList.get(index).markAsDone();\n ui.showDone(taskList.get(index));\n storage.save(taskList.getList());\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(\"The task number is invalid :((\");\n }\n }" ]
[ "0.7472369", "0.68811834", "0.6730956", "0.6729878", "0.6552232", "0.65145016", "0.632217", "0.62435925", "0.62435925", "0.616682", "0.61272615", "0.60896015", "0.60875094", "0.6009808", "0.5976747", "0.59025294", "0.59020036", "0.59002453", "0.5868263", "0.58656096", "0.5863819", "0.5855988", "0.5850852", "0.58458555", "0.5802725", "0.57941467", "0.57940114", "0.5780288", "0.57349354", "0.5732197", "0.572809", "0.57238203", "0.57094157", "0.570192", "0.5698043", "0.569341", "0.5684436", "0.5683406", "0.56584346", "0.5629982", "0.56079394", "0.5606718", "0.56050116", "0.56037587", "0.5600813", "0.5598906", "0.55887836", "0.5573792", "0.55531514", "0.55522865", "0.55428296", "0.5538428", "0.5532652", "0.5530417", "0.55229956", "0.55103767", "0.5501997", "0.5501631", "0.5497178", "0.54824865", "0.54808164", "0.5479687", "0.54792285", "0.5476716", "0.5464677", "0.5460481", "0.5441567", "0.5441567", "0.5441567", "0.5440846", "0.5436238", "0.54351854", "0.54243624", "0.54148823", "0.54127324", "0.5404176", "0.5404095", "0.5403102", "0.5398509", "0.5381311", "0.5368319", "0.5363785", "0.5346175", "0.5331185", "0.53268945", "0.5315604", "0.53137815", "0.5312306", "0.5311832", "0.53064513", "0.528879", "0.528668", "0.5280649", "0.527977", "0.5269462", "0.52612025", "0.5252725", "0.52517587", "0.5249969", "0.5248927" ]
0.7172883
1
Getter for property id.
public abstract String getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public String getPropertyId() {\n return propertyId;\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public SimpleIntegerProperty getIDProperty(){ return id; }", "public String getIdPropertyName() {\n \t\treturn idPropertyName;\n \t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Define the identifier for the task.\")\n @JsonProperty(JSON_PROPERTY_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getId() {\n return id;\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public String getID() {\n return (id);\n }", "@JsonProperty( \"id\" )\n\tpublic Long getId()\n\t{\n\t\treturn m_id;\n\t}", "public int getPropertyId(int templateId, String templateproperty){\n\t\t\n \tint id=0;\n \t\n\t\tString sql = \"select id from templateproperty where \"\n\t\t\t\t+\" idtemplate=\"+templateId\n\t\t\t\t+\" AND \"\n\t\t\t\t+ \" templateproperty=\\\"\" +templateproperty+\"\\\"\";\n\t\t\n\t\ttry {\n\t\t\t// prepared statement para inserção\n\t\t\tConnection con = DatabaseConnectionFactory.getConnection();\n \t\n\t\t\tPreparedStatement stmt = con.prepareStatement(sql);\n\n\t\t\tResultSet rs = stmt.executeQuery();\n \n if(rs.next()) {\n // criando o objeto TemplateProperty\n \n \t id=rs.getInt(\"id\");\n\n }\n\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn id;\n\t}", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public final String getId() {\n return id;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public Long getId () {\r\n\t\treturn id;\r\n\t}", "public Long getId () {\n\t\treturn id;\n\t}", "public Integer getId() {\n return id.get();\n }", "public java.lang.String getId() {\n return id;\n }", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "Object getId();", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "@Override\n\tpublic Number getId() {\n\t\treturn this.id;\n\t}", "java.lang.String getID();", "public Long getId() {\n return this.id.get();\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final Integer getId() {\n return id;\n }", "public long getId() {\n\t\treturn(id);\n\t}", "public native final String id() /*-{\n\t\treturn this[\"id\"];\n\t}-*/;", "public java.lang.String getId() {\n return _id;\n }", "public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}", "public String getId() {\r\n \t\treturn id;\r\n \t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public String getId ()\n {\n return id;\n }", "public java.lang.Integer getId() {\n return id;\n }", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}" ]
[ "0.82991695", "0.82991695", "0.8296609", "0.8208903", "0.8208903", "0.8208903", "0.8208903", "0.8208903", "0.8208903", "0.8208903", "0.81119174", "0.77662045", "0.75110066", "0.73406005", "0.7248549", "0.703067", "0.6964534", "0.69414794", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6890585", "0.6886687", "0.6763356", "0.6740734", "0.6734113", "0.6724836", "0.6719987", "0.6714503", "0.67073756", "0.67073447", "0.6701975", "0.6701975", "0.6701975", "0.67001265", "0.67001265", "0.6687985", "0.6687985", "0.6687985", "0.6674395", "0.66719216", "0.6671047", "0.66696745", "0.666896", "0.6660691", "0.66548413", "0.6651579", "0.664955", "0.66462374", "0.66462374", "0.6642202", "0.6637078", "0.66263205", "0.6622324", "0.6622324", "0.6622324", "0.66051173", "0.6595049", "0.6584659", "0.65829515", "0.65742505", "0.656847", "0.6567691", "0.6567691", "0.6567691", "0.6567691", "0.6567691", "0.6565144", "0.6554605", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397", "0.65522397" ]
0.0
-1
make the constructor private so that this class cannot be instantiated
private SingleObject(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Rekenhulp()\n\t{\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Instantiation(){}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Security() { }", "private TMCourse() {\n\t}", "private Utility() {\n throw new IllegalAccessError();\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private DarthSidious(){\n }", "private Ex() {\n }", "private MApi() {}", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private Utility() {\n\t}", "private Log()\n {\n //Hides implicit constructor.\n }", "private Cat() {\n\t\t\n\t}", "private Mocks() { }", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private LOCFacade() {\r\n\r\n\t}", "private CommonMethods() {\n }", "private Supervisor() {\r\n\t}", "private Service() {}", "private Driver(){\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Helper() {\r\n // do nothing\r\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private void __sep__Constructors__() {}", "public Constructor(){\n\t\t\n\t}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private HailstoneSequence(){ // This private constructor hides the implicit public one\r\n\r\n}", "@SuppressWarnings(\"unused\")\n private Booking() {\n }", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "Reproducible newInstance();", "private Server()\n\t{\n\t}", "private PrivatePerson(String name, int age) {\n super(name, age);\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private CheckingTools() {\r\n super();\r\n }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "private Driver() {\n\n }", "private Builder()\n {\n }", "private Message(){\n // default constructor\n }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private R() {\n\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}", "private WolUtil() {\n }", "private Const() {\n }", "private Util() {\n }", "private Connection() {\n \n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private UtilityKlasse() {\n\n }", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "private ContentUtil() {\n // do nothing\n }", "private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }", "private Singleton()\n\t\t{\n\t\t}", "private HttpClient() {\n\t}", "private UserCourseCourse() {\n\t}", "@Test\n public void testPrivateCtor() throws Exception {\n Constructor<?> privateCtor = Helper.class.getDeclaredConstructors()[0];\n assertTrue(Modifier.isPrivate(privateCtor.getModifiers()));\n privateCtor.setAccessible(true);\n privateCtor.newInstance(new Object[] {});\n }", "private Singleton() {\n\t}", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "private HardCodedCitations() {\n }", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "private SingleObject()\r\n {\r\n }", "private ClassUtil() {}", "private BookReader() {\n\t}", "private AccessList() {\r\n\r\n }", "private Util() {\n }", "private Util() {\n }", "private ObjectFactory() { }", "private ObjectRepository() {\n\t}" ]
[ "0.78164923", "0.7690715", "0.75508887", "0.75341016", "0.75071687", "0.7502217", "0.74983394", "0.74767274", "0.74761236", "0.73241943", "0.7305842", "0.7281685", "0.72544193", "0.7217735", "0.7216033", "0.721312", "0.72022027", "0.72022027", "0.7194253", "0.7185625", "0.7184272", "0.7139096", "0.71378887", "0.7127508", "0.7113294", "0.71103126", "0.70889074", "0.7087834", "0.70803523", "0.70682186", "0.70682186", "0.70626825", "0.70494914", "0.704027", "0.70053816", "0.6994307", "0.69685984", "0.69663835", "0.6965178", "0.69476324", "0.6944875", "0.69399476", "0.69372016", "0.69372016", "0.69372016", "0.69372016", "0.69372016", "0.6936004", "0.69292057", "0.6922816", "0.69169575", "0.6912792", "0.690921", "0.69059134", "0.69057256", "0.68999106", "0.6891505", "0.6891397", "0.6889461", "0.6888544", "0.68810445", "0.6865987", "0.6865987", "0.6865987", "0.6865987", "0.6864678", "0.6838988", "0.68371844", "0.68293434", "0.68289375", "0.6824044", "0.68237424", "0.6820704", "0.68178546", "0.68127024", "0.6806438", "0.68031603", "0.6802726", "0.68003017", "0.6795035", "0.6793185", "0.6787261", "0.6785281", "0.67840624", "0.67838675", "0.6779989", "0.6776687", "0.67747307", "0.6772961", "0.67723966", "0.6770315", "0.67702913", "0.67682636", "0.6767168", "0.6764989", "0.67649287", "0.6762762", "0.67577964", "0.67577964", "0.6756067", "0.6754674" ]
0.0
-1
Get the only object available
public static SingleObject getInstance(){ return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getObject() {\n return getObject(null);\n }", "public Object getObject();", "public Object getObject() ;", "@Override\n public Object getObject()\n {\n return null;\n }", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public Object getObject() {\n return getWildcard();\n }", "public Object getObject()\n {\n if (currentObject == null)\n \t return null;\n else\n return AL.indexOf(currentObject);\n }", "public Object getObject()\n {\n return m_object;\n }", "public Object getObject() {\n return this.object;\n }", "public Object getObject() {\r\n\t\treturn this.object;\r\n\t}", "public Object getObject() {\n\t\treturn object;\n\t}", "public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}", "@Override\r\n\tpublic Object getObject(Object key) {\n\t\treturn null;\r\n\t}", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic U accessObject()\n\t{\n\t\treturn (primaryKey == null)?(null):\n\t\t (U)bean(GetUnity.class).getUnited(primaryKey);\n\t}", "public NetObject getObject();", "@Override\n\tpublic GamePiece getObject() {\n\t\treturn null;\n\t}", "public abstract LocalAbstractObject getObject(UniqueID objectID) throws NoSuchElementException;", "public Object getObject() {\n return getGroup();\n }", "public Object getObject(Class cls, long oid)\n{\n\treturn null;\n}", "public T getObject()\n\t{\n\t\treturn object;\n\t}", "Objet getObjetAlloue();", "public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}", "public ObjectReference getObject();", "GameObject getObject();", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "public boolean use() throws UnavailableObjectException {\r\n\t\tInventory inventory = Game.getInstance().getInventory();\r\n\t\tinventory.take(id);\r\n\t\treturn inventory.available(id);\r\n\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "public Object Get(String objectName)\n\t{\n\t\tif(storage.containsKey(objectName))\n\t\t\treturn storage.get(objectName);\n\t\tlog.debug(\"The object [\"+objectName+\"] doesn't exist in the room, return Null\");\n\t\treturn null;\n\t}", "private Object getOffendingObject (Object field)\n\t{\n\t\treturn ((field == null) ? \n\t\t\tgetModel().getClass(getClassName(), getClassLoader()) :\n\t\t\tgetModel().getField(getClassName(), field.toString()));\n\t}", "Object getFrom();", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public Object getObject(final String key)\r\n {\r\n return helperObjects.get(key);\r\n }", "static public Object getDefaultObject () {\n return defaultObject;\n }", "public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }", "public IronDome findFreeIronDome() {\n\t\tfor (IronDome ironDome : ironDomeArr) {\n\t\t\tif (!ironDome.getIsBusy())\n\t\t\t\treturn ironDome;\n\t\t}\n\n\t\treturn null;\n\t}", "public Object getUserObject();", "@Override\n\tpublic Objet Retrieve(int indice) {\n\t\treturn null;\n\t}", "public WorldObject getFirstObject(){\r\n\t\treturn this.firstObject;\r\n\t}", "public GameObject getObstacle() {\n \tif (selection != null) {\n \tjava.lang.Object data = selection.getBody().getUserData();\n \ttry {\n \t\treturn (GameObject)data;\n \t} catch (Exception e) {\n \t}\n }\n return null;\n }", "Object getUnless();", "Object getUnless();", "public static SingleObject getInstance(){\n return instance;\n }", "E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public Objects getObject(String itemName)\n {\n return items.get(itemName);\n }", "public Object getObject() {\n\t\ttry {\n\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(mStoredObjectArray);\n\t\t\tObjectInputStream p;\n\t\t\tObject toReturn = null;\n\t\t\tif (mIsJython) {\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttoReturn = null;\n\t\t\t}\n\t\t\tistream.close();\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "Object getIf();", "public T getSavedObject() {\n if (dbObjects.length == 0) {\n throw new MongoException(\"No objects to return\");\n }\n return getSavedObjects().get(0);\n }", "public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}", "private Object retrieveObject(String name)\r\n {\r\n Object retVal = null;\r\n\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (ref != null)\r\n {\r\n retVal = ref.get();\r\n }\r\n \r\n return retVal;\r\n }", "public ContentObject getCurrent(\n )\n {\n if(index < 0 || index >= objects.size())\n return null;\n\n return objects.get(index);\n }", "@Override\n\tpublic DmcObject findUniqueObject(DmcObjectName name) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Class<?> getCurrentObjectClass() {\n\t\treturn MissArticleDTO.class;\r\n\t}", "protected synchronized boolean isObjectPresent() { return objPresent; }", "protected boolean findObject(Object obj){\n \n }", "@Override\n\tpublic Object getObject(String NAAM) throws SQLException {\n\t\treturn null;\n\t}", "public abstract boolean retrieve();", "public boolean hasObject(){\n return _object != null;\n }", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "T getObject() {\n\t\t\treturn data;\n\t\t}", "public abstract LocalAbstractObject getObject(AbstractObjectKey key) throws NoSuchElementException;", "public Object load() {\n return null;\n }", "@JsonIgnore\n @Override\n public Person getOwner()\n {\n if (getFetchOptions() != null && getFetchOptions().hasOwner())\n {\n return owner;\n }\n else\n {\n throw new NotFetchedException(\"Owner has not been fetched.\");\n }\n }", "public AdvObject getObject(int index) {\n\t\treturn objects.get(index); // Replace with your code\n\t}", "public Object getObject() {\n return getSource();\n }", "private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }", "public Object getObject() {\n\t\treturn this.currentAction.getObject();\n\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "protected boolean isObjectHeld() { return objHeld; }", "public synchronized final Object readObject() {\n\t\tif (!inQueue.isEmpty())\n\t\t\treturn inQueue.dequeue();\n\t\telse return null;\n\t}", "public abstract Object getObservedObject();", "public People getObjUser() {\n return instance.getObjUser();\n }", "protected E getEmptyObject() {\n try {\n ParameterizedType type = (ParameterizedType) getClass().getGenericSuperclass();\n Class<E> eClazz = (Class<E>) type.getActualTypeArguments()[0];\n\n return eClazz.newInstance();\n } catch (InstantiationException | IllegalAccessException ex) {\n return null;\n }\n }", "public final Object getObject() \n\t{\n\tif (fTop > 0)\n\t\t{\n\t\tfTop--;\n\t\tObject result = fBin[fTop];\n\t\tfBin[fTop] = null;\n\t\treturn result;\n\t\t}\n\n\tfUnderflowCounter++;\n\tif (fHasOverflowed && (fBin.length < MAX_BIN_SIZE))\n\t\t{\n\t\tcreateBin(fBin.length + BIN_GROW_SIZE);\n\t\tfHasOverflowed = false;\n\t\t}\n\t\t\n\ttry\n\t\t{\n\t\treturn fClass.newInstance();\n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\treturn null;\n\t\t}\n\t}", "public ObjectInfo getObjectInfo();", "@Nullable\n public DBObject findOne() {\n return findOne(new BasicDBObject());\n }", "protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public A force_get()\n {\n throw new UnsupportedOperationException();\n }", "MageObject getObject(UUID objectId);", "default Empty getEmptyObject() {\n return null;\n }", "Object getIf1();", "Object get(ID id) throws Exception;", "public Door getFreeDoor() {\n for (Door d: doors) {\n if (!d.getUsed()) {\n return d;\n }\n }\n return null;\n }", "public abstract LocalAbstractObject getObject(String locator) throws NoSuchElementException;", "public ObjectImage getObjectImage ()\r\n {\r\n return recoverable_.getObjectImage ();\r\n }" ]
[ "0.68583935", "0.652992", "0.64311755", "0.6410686", "0.6353578", "0.6353578", "0.6353578", "0.6353578", "0.6215893", "0.61350125", "0.6074731", "0.6022927", "0.6017502", "0.6006481", "0.6002375", "0.5965988", "0.5964752", "0.59063226", "0.5845608", "0.5837876", "0.5833118", "0.5826605", "0.5790437", "0.578741", "0.57873815", "0.5785125", "0.5782859", "0.57720685", "0.5768618", "0.5764654", "0.5741976", "0.5721685", "0.5712033", "0.5704973", "0.56781286", "0.56695074", "0.56654555", "0.5646877", "0.5646415", "0.5645363", "0.56381065", "0.56296146", "0.5612157", "0.56075394", "0.5585505", "0.5585505", "0.55774146", "0.55719876", "0.55593365", "0.5554", "0.5554", "0.5554", "0.5554", "0.5554", "0.5554", "0.5554", "0.55521315", "0.55502695", "0.5542556", "0.5539591", "0.5536943", "0.5535499", "0.5532466", "0.5521135", "0.55035484", "0.54948926", "0.54807234", "0.54799247", "0.54706514", "0.54659635", "0.54477113", "0.5445969", "0.5436768", "0.5431154", "0.5429482", "0.54238874", "0.5401604", "0.5398403", "0.5393478", "0.5391593", "0.53911436", "0.5390149", "0.53845596", "0.53819245", "0.535793", "0.53489095", "0.5340431", "0.532582", "0.53257006", "0.5300246", "0.5297248", "0.5294545", "0.5273653", "0.5266572", "0.52617323", "0.5259423", "0.5258947", "0.52586925", "0.5254016", "0.52518564" ]
0.5464523
70
Used by getPastDueAmountBySignup on InvoiceServiceImpl
@Query("select i from Invoice i inner join i.signup s where s.signupId=?1 and DATE(i.dueDate)< DATE(now()) AND s.status = 'Active'") List<Invoice> getPastInvoiceByActiveSignup(Long signupId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getUnpaidAmount();", "public BigDecimal getOverdueAmount() {\n return overdueAmount;\n }", "public Money getInterestDue();", "public BigDecimal getBackPaid() {\n return backPaid;\n }", "public void setOverdueAmount(BigDecimal overdueAmount) {\n this.overdueAmount = overdueAmount;\n }", "public Date getDue() {\n return this.due;\n }", "public LocalDate getDue() {\n return this.due;\n }", "public CheckBalanceUpcoming() {\n this.upcomingPayment = -1;\n }", "double getPaidAmount();", "@Override\r\n public double purchaseFee(){\r\n return fee;\r\n }", "Date getDueDate();", "Date getDueDate();", "public BigDecimal getTotalAmountDue() {\n\t\treturn totalAmountDue;\n\t}", "public double getBalanceDue(double paymentMade){\n balanceDue -= paymentMade;\n return balanceDue;\n }", "Date getNextIncomeDate() throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "@Test\n public void testInsuredPayerEstAmtDue() {\n new InsuredPayerFieldTester()\n .verifyAmountStringFieldTransformedCorrectly(\n FissInsuredPayer.Builder::setEstAmtDue,\n RdaFissPayer::getEstAmtDue,\n RdaFissPayer.Fields.estAmtDue);\n }", "public void setDue(LocalDate due) {\n this.due = due;\n }", "public void setDueDate(Date d){dueDate = d;}", "@Override\r\n\tpublic long getPaidDateTime() {\n\t\treturn 0;\r\n\t}", "double getPaid();", "public BigDecimal getTotalDue() {\n\t\treturn totalDue;\n\t}", "public BigDecimal getPbackPaid() {\n return pbackPaid;\n }", "public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}", "public BigDecimal getAmountAfter() {\n return amountAfter;\n }", "public int getFee(){return 0;}", "public long getAmountRequested();", "public String getPayDue(){\n return payDue;\n }", "public void setOverdueDays(Integer overdueDays) {\n this.overdueDays = overdueDays;\n }", "TotalInvoiceAmountType getTotalInvoiceAmount();", "public double getAmountPaid(){\n return amountPaid;\n }", "public Integer getOverdueDays() {\n return overdueDays;\n }", "InsurancePremiumAmountType getInsurancePremiumAmount();", "public void payDueAmount(String mobileNumber, int dueAmount) {\n\t\tSystem.out.println(em.find(Receipt.class, mobileNumber));\r\n\t\tReceipt receipt = em.find(Receipt.class, mobileNumber);\r\n\r\n\t\tint currentDue = receipt.getDueAmount() - dueAmount;\r\n\r\n\t\t/**\r\n\t\t * store the records in due pay table\r\n\t\t */\r\n\t\tDuePay duePay = new DuePay();\r\n\t\tduePay.setBatchNo(receipt.getBatchNo());\r\n\t\tduePay.setStudentId(receipt.getStudentId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setCourse(receipt.getCourse());\r\n\t\tduePay.setDate(\"08-08-2018\");\r\n\t\tduePay.setDuePaid(dueAmount);\r\n\t\tduePay.setEmailId(receipt.getEmailId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setTotalDueAmount(receipt.getDueAmount());\r\n\t\tduePay.setMobileNumber(mobileNumber);\r\n\t\tduePay.setBalDueAmount(currentDue);\r\n\t\t/**\r\n\t\t * transaction begin\r\n\t\t */\r\n\t\tem.getTransaction().begin();\r\n\t\t\r\n\t\tem.persist(duePay);\r\n\r\n\t\t/**\r\n\t\t * upadating previous Receipt Due with due paid amount\r\n\t\t */\r\n\t\treceipt.setDueAmount(currentDue);\r\n\t/**\r\n\t * updating total amount in Receipt table\r\n\t */\r\n\t\tInteger currentTotalAmount = receipt.getTotaAmount()+dueAmount;\r\n\t\treceipt.setTotaAmount(currentTotalAmount);\r\n\r\n\t\tem.persist(receipt);\r\n\t\tem.getTransaction().commit();\r\n\r\n\t}", "public double getUpcoming(int sessionID) {\n //use sessionID and communicate with bank server\n //mock upcomingPayment = $143.85\n this.upcomingPayment = 143.85;\n return this.upcomingPayment;\n }", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public int remainingFees()\r\n\t{\r\n\t\treturn feesTotal-feesPaid;\t\t\r\n\t}", "public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }", "public long calcRemaining(){\n return getGrandTotal() - getTotalPaid();\n }", "public Calendar getDueDate(){\n return dueDate;\n }", "public String getDueDate()\r\n {\r\n return dueDate;\r\n }", "@Override\r\n\tpublic double deductAccountMaintenanceFee() {\n\t\tif (this.getBalance() < 250.0)\r\n\t\t\treturn super.withdraw(250.0);\r\n\t\telse \r\n\t\t\treturn this.getBalance();\r\n\t\t\r\n\t}", "public void setPayDue(String payDue){\n this.payDue = payDue;\n }", "@Override\n\tpublic int fees() {\n\t\treturn 25000;\n\t\t\n\t}", "private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}", "public void setBackPaid(BigDecimal backPaid) {\n this.backPaid = backPaid;\n }", "public void setDueDate(String dueDate) {\n }", "public BigDecimal getBackPaidRate() {\n return backPaidRate;\n }", "private BigDecimal getAmountToBeDepreciated(DepreciationInputs depInputs, Long fromDate, Long toDate) {\n\n\t\t// deciding the from date for the current depreciation from the last\n\t\t// depreciation date\n\t\tif (depInputs.getLastDepreciationDate().compareTo(fromDate) >= 0)\n\t\t\tfromDate = depInputs.getLastDepreciationDate();\n\t\telse {\n\t\t\t// set asset dateofcreation as from date if it is greater than financial from date\n\t\t}\n\n\t\t// getting the no of days betweeen the from and todate using ChronoUnit\n\t\tLong noOfDays = ((toDate - fromDate) / 1000 / 60 / 60 / 24)+1;\n\n\t\t// deprate for the no of days = no of days * calculated dep rate per day\n\t\tDouble depRateForGivenPeriod = noOfDays * depInputs.getDepreciationRate() / 365;\n\n\t\t// returning the calculated amt to be depreciated using the currentvalue from\n\t\t// dep inputs and depreciation rate for given period\n\t\treturn BigDecimal.valueOf(depInputs.getCurrentValue().doubleValue() * (depRateForGivenPeriod / 100));\n\t}", "public int getDownPayment() {\n return downPayment;\n }", "@Override \npublic double getPaymentAmount() { \n return getCommissionRate() * getGrossSales(); \n}", "@Override\r\n public void tuitionDue() {\r\n if (getTotalTuitionPaid() > 0)\r\n return;\r\n double _tuitionOwed = 0;\r\n if (getCredits() < MINIMUM_FULL_TIME_CREDITS)\r\n _tuitionOwed = (getCredits() * RESIDENT_TUITION_RATE_PER_CREDIT) + PART_TIME_UNIVERSITY_FEE;\r\n else if (getCredits() >= MINIMUM_FULL_TIME_CREDITS && getCredits() <= ADDITIONAL_TUITION_CREDIT_THRESHOLD)\r\n _tuitionOwed = FULL_TIME_RESIDENT_TUITION + FULL_TIME_UNIVERSITY_FEE - financialAid;\r\n else\r\n _tuitionOwed = FULL_TIME_RESIDENT_TUITION + FULL_TIME_UNIVERSITY_FEE + (RESIDENT_TUITION_RATE_PER_CREDIT * \r\n (getCredits() - ADDITIONAL_TUITION_CREDIT_THRESHOLD)) - financialAid;\r\n setTuitionOwed(_tuitionOwed);\r\n }", "public BigDecimal futureValue(Integer paymentsInMonths)\r\n {\r\n List<Payment> schedule = amortizationSchedule();\r\n \r\n BigDecimal totalPayed = BigDecimal.ZERO;\r\n for (int paymentNumber = 0; paymentNumber < paymentsInMonths; paymentNumber++)\r\n {\r\n Payment payment = schedule.get(paymentNumber);\r\n totalPayed = totalPayed.add(payment.getPrinciple());\r\n }\r\n BigDecimal fv = getBalance().add(totalPayed);\r\n return fv.setScale(2, BigDecimal.ROUND_HALF_DOWN);\r\n }", "BigDecimal getAmountAssigned(DestinationEntity destinationEntity);", "public java.lang.Double getTotalOverdueAmount() {\n return totalOverdueAmount;\n }", "@Override\n\tpublic void businessMoney() {\n\n\t}", "public void annualProcess() {\n super.withdraw(annualFee);\n }", "public int getNoPaymentsYearly(){return this.no_payments_yearly;}", "@Override\n\tpublic double getInsuranceAmount() {\n\t\treturn 13_00_000;\n\t}", "public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }", "public int getFulfillmentTimeInDays () {\n return 0;\n }", "@Override\r\n public void setPostpaidLimit(BigDecimal postpaidLimit) {\n }", "public int getAmountDone();", "long getAmount();", "public abstract double getLateFee(int daysLate);", "@Test\n public void testBeneZPayerEstAmtDue() {\n new BeneZPayerFieldTester()\n .verifyAmountStringFieldTransformedCorrectly(\n FissBeneZPayer.Builder::setEstAmtDue,\n RdaFissPayer::getEstAmtDue,\n RdaFissPayer.Fields.estAmtDue);\n }", "public static double getPaymentAmountDue(Payment payment, HashMap requestParams, accVendorPaymentDAO accVendorPaymentobj) throws ServiceException, ParseException {\n boolean isOpeningPayment = false;\n boolean isAdvancePaymentToVendor = false;\n boolean isRefundPaymentToCustomer = false;\n DateFormat df = (DateFormat) requestParams.get(GoodsReceiptCMNConstants.DATEFORMAT);\n if (df == null) {\n df = (DateFormat) requestParams.get(Constants.df);\n }\n String companyid = (String) requestParams.get(GoodsReceiptCMNConstants.COMPANYID);\n double paymentDueAmt = 0;\n if ((payment.getAdvanceDetails() != null && !payment.getAdvanceDetails().isEmpty()) || payment.isIsOpeningBalencePayment()) {\n double paymentAmt = 0;\n double linkedPaymentAmt = 0;\n if (payment.isIsOpeningBalencePayment()) {//opening payment\n isOpeningPayment = true;\n paymentAmt += payment.getDepositAmount();\n } else if (payment.getVendor() != null) {//advance payment against vendor\n isAdvancePaymentToVendor = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n paymentAmt += advanceDetail.getAmount();\n }\n } else if (payment.getCustomer() != null) {//Refund payment against customer\n isRefundPaymentToCustomer = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n if (advanceDetail.getReceiptAdvanceDetails() == null) {//Only such refunds can be due in which at the time of creation no document (no advance receipt) is selected \n paymentAmt += advanceDetail.getAmount();\n }\n }\n //In this case paymentAmt can be zero (if all refund have advance receipt documnet selected) so we need to retun amount due zero here\n if (paymentAmt == 0) {\n return 0;\n }\n }\n HashMap<String, Object> reqParams1 = new HashMap();\n reqParams1.put(\"paymentid\", payment.getID());\n reqParams1.put(\"companyid\", companyid);\n reqParams1.put(Constants.df, df);\n if (requestParams.containsKey(\"asofdate\") && requestParams.get(\"asofdate\") != null) {\n reqParams1.put(\"asofdate\", requestParams.get(\"asofdate\"));\n }\n if (isOpeningPayment || isAdvancePaymentToVendor) {\n KwlReturnObject result = accVendorPaymentobj.getLinkedDetailsPayment(reqParams1);\n List<LinkDetailPayment> linkedDetaisPayments = result.getEntityList();\n for (LinkDetailPayment ldp : linkedDetaisPayments) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getLinkDetailPaymentToCreditNote(reqParams1);\n List<LinkDetailPaymentToCreditNote> linkedDetaisPaymentsToCN = result.getEntityList();\n for (LinkDetailPaymentToCreditNote ldp : linkedDetaisPaymentsToCN) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getAdvanceReceiptDetailsByPayment(reqParams1);\n List<Object[]> list2 = result.getEntityList();\n for (Object obj[] : list2) {\n double revExchangeRate = 1.0;\n double amount = obj[1] != null ? Double.parseDouble(obj[1].toString()) : 0.0;\n double exchangeRate = obj[2] != null ? Double.parseDouble(obj[2].toString()) : 0.0;\n if (exchangeRate != 0.0) {\n revExchangeRate = 1 / exchangeRate;\n }\n linkedPaymentAmt += authHandler.round(revExchangeRate * amount, companyid);\n }\n result = accVendorPaymentobj.getLinkDetailReceiptToAdvancePayment(reqParams1);\n List<LinkDetailReceiptToAdvancePayment> linkDetailReceiptToAdvancePayment = result.getEntityList();\n for (LinkDetailReceiptToAdvancePayment ldp : linkDetailReceiptToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmountInPaymentCurrency();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n } else if (isRefundPaymentToCustomer) {\n KwlReturnObject result = accVendorPaymentobj.getLinkDetailAdvanceReceiptToRefundPayment(reqParams1);\n List<LinkDetailPaymentToAdvancePayment> linkDetailPaymentToAdvancePayment = result.getEntityList();\n for (LinkDetailPaymentToAdvancePayment ldp : linkDetailPaymentToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmount();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n }\n }\n paymentDueAmt = authHandler.round(paymentDueAmt, companyid);\n return paymentDueAmt;\n }", "@Override\n\tpublic void payRent(RentDue d) {\n\t\t\n\t}", "public BigDecimal getRemainFee() {\r\n return remainFee;\r\n }", "com.google.protobuf.Int64Value getDeliveryDateAfter();", "public BigDecimal getPriceLastInv();", "public LocalDate get_raw_due_date()\n {\n return task_due_date;\n }", "public double getRemainingMonthlyBudget() {\n\t\treturn 0;\n\t}", "public float handleClaim(){\r\n float re_amount = amount;\r\n depreciate();\r\n return re_amount;\r\n }", "public int getFee()\n {\n return fee;\n }", "public double getPrincipalAmount(){return this.principal_amount;}", "public BigDecimal getPayAmt();", "public BigDecimal getAmountBefore() {\n return amountBefore;\n }", "@Override\r\n\tpublic int yearsTillRetirement() //calculate years until retirement\r\n\t{\n\t\tint retire = (int)Math.round((35 - (super.getYears() + (double)(usedUnpaidVacation + usedVacation* 2 + usedSickDays)/260)));\r\n\t\t\r\n\t\treturn retire;\r\n\t\t\r\n\t\t\r\n\t}", "public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}", "public double getPaymentDue()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tdouble start = ParkingRateUtil.calculateCost(this.clock.getTime()-this.currentTicket.getStartTime());\n\t\t\tdouble payed = ParkingRateUtil.calculateCost(this.currentTicket.getPaymentTime()-this.currentTicket.getStartTime());\n\t\t\tif(this.currentTicket.getPaymentTime() != 0)\n\t\t\t{\n\t\t\t\tif (this.clock.getTime()-this.currentTicket.getPaymentTime()>ParkingRateUtil.EXIT_TIME_LIMIT)\n\t\t\t\t{return start-payed;}\n\t\t\t\treturn payed;\n\t\t\t}\n\t\t\treturn start;\n\t\t}\n\t\treturn 0.0;\n\t}", "public Date getDueDate() {\r\n\t\treturn dueDate;\r\n\t}", "@Override\n\tpublic double getAdditionalFee() {\n\t\t\n\t\treturn 0;\n\t}", "public int daysOverdue(int today);", "public java.util.Date getDateDue() {\n return this.dateDue;\n }", "public BigDecimal getmPaid() {\n return mPaid;\n }", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "public int getDeliveryFee()\n {\n return deliveryFee;\n }", "public int getMoney() {\n return this.budget;\n }", "public int raiseMoney()\r\n {\r\n int total = super.raiseMoney();\r\n getCandidate().setMoneyMod(getCandidate().getMoneyMod() - .05);\r\n return total;\r\n }", "public Income() {\r\n\t\t//this.customer = customer;\r\n\t\tperiod = 31;\t\t\t\t//sets the default payment period to 31 days\r\n\t\tvalue = 1000;\t\t\t\t//sets the default income value to 1000\r\n\t\t\r\n\t}", "public BigDecimal getTaxAmtPriceLimit();", "public void setDownPayment(int value) {\n this.downPayment = value;\n }", "public double getAmount() {\r\n\t\treturn investmentAmount;\r\n\t}", "public int getBeadAmount()\n\t{\n\t\treturn initialBeadAmount; //allows controller to access\n\t}", "@Override\n\tpublic double getInsuranceAmount() {\n\t\treturn 200000;\n\t}", "@java.lang.Override\n public long getAmount() {\n return instance.getAmount();\n }", "@Override\n public void tuitionDue()\n {\n // Studies Abroad\n if(isStudyAbroad == true) {\n this.setTuitionDue( Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n // Full-Time and Credits > 16 and Not Study Abroad\n else if(this.getStatus() == FULL_TIME && this.getCreditHours() > CREDIT_HOURS_MAX && isStudyAbroad == false) {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE +\n Student.NON_RES_PART_TIME_TUITION_RATE * (this.getCreditHours() - CREDIT_HOURS_MAX));\n }\n // Full-Time and Credits Between 12 and 16\n else if(this.getStatus() == FULL_TIME)\n {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n\n double newTuition = (getTuitionDue() - getTotalPayment()) > 0 ? getTuitionDue()-getTotalPayment() : 0;\n this.setTuitionDue(newTuition);\n }", "public Amount getAmountPaid() {\n return this.amountPaid;\n }", "int getAmount();", "public abstract String withdrawAmount(double amountToBeWithdrawn);", "Money getDiscountValue();" ]
[ "0.67251265", "0.65496624", "0.62303776", "0.62087256", "0.620764", "0.61727566", "0.61473876", "0.61296046", "0.61065483", "0.6080116", "0.6065049", "0.6065049", "0.6031935", "0.60100734", "0.5995907", "0.5935754", "0.59095424", "0.59085506", "0.5897213", "0.58888286", "0.58796865", "0.5873079", "0.5868699", "0.58546823", "0.58210397", "0.5806301", "0.57997304", "0.57972914", "0.5786062", "0.57749027", "0.5765057", "0.57308525", "0.5726947", "0.57169193", "0.5686759", "0.56769997", "0.56739604", "0.56711435", "0.56689817", "0.5653283", "0.56448936", "0.56105655", "0.56095904", "0.56015074", "0.5601124", "0.5592623", "0.5591442", "0.5589532", "0.5583846", "0.55832505", "0.5574163", "0.5571414", "0.5569961", "0.55671465", "0.55588436", "0.55560464", "0.5553885", "0.55531174", "0.5549655", "0.5545593", "0.552418", "0.55210096", "0.5510768", "0.54879", "0.54750276", "0.5472729", "0.5471719", "0.5467767", "0.54582065", "0.5456211", "0.5456051", "0.5448026", "0.5441626", "0.543383", "0.5420857", "0.5420406", "0.54170173", "0.5407684", "0.540374", "0.54035914", "0.5401107", "0.5396459", "0.5389965", "0.5389817", "0.5387463", "0.53856397", "0.5369901", "0.53687966", "0.5367282", "0.5365828", "0.5360454", "0.53582686", "0.5356942", "0.53561705", "0.5356121", "0.5353608", "0.5353182", "0.53431803", "0.5341785", "0.53368276", "0.53346956" ]
0.0
-1
used by getAllInvoiceByBilldate on InvoiceServiceImpl
@Query("select i from Invoice i where i.signup = ?1 AND DATE(i.billDate)>=DATE(?2) AND DATE(i.billDate)<DATE(?3) order by billDate asc") List<Invoice> findBySignupAndBillDateOrderByBillDateAscending(Signup signUp, Date billDate, Date nextBillDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getDateInvoice() {\n return dateInvoice;\n }", "@Override\r\n\tpublic ArrayList<SalesReturnBillPO> getBillsByDate(String from, String to) throws RemoteException {\n\t\tArrayList<SalesReturnBillPO> bills=new ArrayList<SalesReturnBillPO>();\r\n\t\ttry{\r\n\t\t\tStatement s=DataHelper.getInstance().createStatement();\r\n\t\t\tResultSet r=s.executeQuery(\"SELECT * FROM \"+billTableName+\r\n\t\t\t\t\t\" WHERE generateTime>'\"+from+\"' AND generateTime<DATEADD(DAY,1,\"+\"'\"+to+\"');\");\r\n\t\t\twhile(r.next()){\r\n\t\t\t\tSalesReturnBillPO bill=new SalesReturnBillPO();\r\n\t\t\t\tbill.setCustomerId(r.getString(\"SRBCustomerID\"));\r\n\t\t\t\tbill.setDate(r.getString(\"generateTime\").split(\" \")[0]);\r\n\t\t\t\tbill.setId(r.getString(\"SRBID\"));\r\n\t\t\t\tbill.setOperatorId(r.getString(\"SRBOperatorID\"));\r\n\t\t\t\tbill.setOriginalSBId(r.getString(\"SRBOriginalSBID\"));\r\n\t\t\t\tbill.setOriginalSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setRemark(r.getString(\"SRBRemark\"));\r\n\t\t\t\tbill.setReturnSum(r.getDouble(\"SRBReturnSum\"));\r\n\t\t\t\tbill.setSalesManName(r.getString(\"SRBSalesmanName\"));\r\n\t\t\t\tbill.setState(r.getInt(\"SRBCondition\"));\r\n\t\t\t\tbill.setTime(r.getString(\"generateTime\").split(\" \")[1]);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<bills.size();i++){\r\n\t\t\t\tStatement s1=DataHelper.getInstance().createStatement();\r\n\t\t\t\tResultSet r1=s1.executeQuery(\"SELECT * FROM \"+recordTableName+\r\n\t\t\t\t\t\t\" WHERE SRRID=\"+bills.get(i).getId()+\";\");\r\n\t\t\t\tArrayList<SalesItemsPO> items=new ArrayList<SalesItemsPO>();\r\n\t\t\t\t\r\n\t\t\t\twhile(r1.next()){\r\n\t\t\t\t\tSalesItemsPO item=new SalesItemsPO(\r\n\t\t\t\t\t\t\tr1.getString(\"SRRComID\"),\r\n\t\t\t\t\t\t\tr1.getString(\"SRRRemark\"),\r\n\t\t\t\t\t\t\tr1.getInt(\"SRRComQuantity\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRPrice\"),\r\n\t\t\t\t\t\t\tr1.getDouble(\"SRRComSum\"));\r\n\t\t\t\t\titems.add(item);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbills.get(i).setSalesReturnBillItems(items);;\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn bills;\r\n\t}", "public List getFiAvailableInvoices(FiAvailableInvoice fiAvailableInvoice);", "public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }", "public List<TblMemorandumInvoiceDetail>getAllMemorandumInvoiceDetail(Date startDate,Date endDate,TblPurchaseOrder po,TblMemorandumInvoice mi,TblItem item,ClassMemorandumInvoiceBonusType bonusType);", "public Invoice(){//String invoiceId, String customer, String invoiceIssuer, Timestamp invoicingDate, TimeStamp dueDate, BigDecimal netAmount, BigDecimal vat, BigDecimal totalAmount, String currency, String linkToInvoiceDocument, String linkToInvoiceDocumentCopy, String invoicingPeriod, BigDecimal gp, Event event, Timestamp paidDate, BigDecimal amountOpen, String revenueType, String originalInvoiceId) {\r\n }", "public void getCurrentInvoices() {\n Cursor res = db.getAllCurrentDayInvoices();\n if(res.getCount() < 0){\n Log.e(\"Error\",\"Not able to retrieve product data\");\n }\n else {\n list.clear();\n while (res.moveToNext()) {\n String invoiceNum = res.getString(3);\n String customerName = res.getString(9);\n String statusPost = res.getString(21);\n list.add(new SearchInvoiceClass(customerName+System.lineSeparator()+invoiceNum+System.lineSeparator()+statusPost, R.drawable.ic_baseline_print, R.drawable.ic_baseline_preview, R.drawable.ic_baseline_cancel));\n }\n }\n }", "public Invoice getInvoice() {\n return invoice;\n }", "@RequestMapping(value = \"/invoice\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<InvoiceViewModel> getInvoice(){\n\n return invoiceService.getAllIvm();\n\n }", "public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);", "public JSONObject getInvoiceForGSTR3BNillRated(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n double taxableAmountInv = 0d;\n double taxableAmountCN = 0d;\n double taxableAmountAdv = 0d;\n double taxableAmountAdvAdjusted = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n JSONObject jSONObject = new JSONObject();\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"GST3B\", !reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.remove(\"zerorated\");\n List invoiceData = accEntityGstDao.getNillInvoiceDataWithDetailsInSql(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n taxableAmountInv = data[0] != null ? (Double) data[0] : 0;\n count = data[1] != null ? ((BigInteger) data[1]).intValue() : 0;\n }\n\n//\n// /**\n// * Get CN amount\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// List cnData = accEntityGstDao.getNillCNDNWithInvoiceDetailsInSql(reqParams);\n// if (!cnData.isEmpty() && cnData.get(0) != null) {\n// taxableAmountCN = (Double) cnData.get(0);\n// }\n//\n// /**\n// * Get Advance for which invoice not linked yet\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.put(\"at\", true);\n// reqParams.remove(\"atadj\");\n// List AdvData = accEntityGstDao.getNillAdvanceDetailsInSql(reqParams);\n// if (!AdvData.isEmpty() && AdvData.get(0) != null) {\n// taxableAmountAdv = (Double) AdvData.get(0);\n// }\n// /**\n// * Get Advance for which invoice isLinked\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.remove(\"at\");\n// reqParams.put(\"atadj\", true);\n// AdvData = accEntityGstDao.getNillAdvanceDetailsInSql(reqParams);\n// if (!AdvData.isEmpty() && AdvData.get(0) != null) {\n// taxableAmountAdvAdjusted = (Double) AdvData.get(0);\n// }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"Nature of Supplies\", \"e) Non GST outward supplies\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "List<InvoiceDTO> fetchAll();", "public void createInvoice() {\n\t}", "public interface FixerIncomeService {\n List<FixerIncome> listIncome(Integer fixerId, Date startDate, Date endDate, boolean withPaymentInfo);\n}", "public interface IInvoiceService {\r\n\r\n\t/**\r\n\t * Get a list of invoices from persistence layer\r\n\t * @return all items\r\n\t */\r\n\tList<InvoiceDTO> fetchAll();\r\n\r\n\t/**\r\n\t * Get invoice from persistence layer\r\n\t * @param id a unique lookup\r\n\t * @return an invoice with a matching ID\r\n\t */\r\n\tInvoiceDTO fetchByID(int id);\r\n\r\n\t/**\r\n\t * Add the given DTO\r\n\t * @param invoiceDTO an invoice dto without an ID\r\n\t * @return Success or failure\r\n\t */\r\n\tboolean add(InvoiceDTO invoiceDTO);\r\n\t\r\n\t/**\r\n\t * Edit the given DTO by ID\r\n\t * @param itemDTO an invoice dto with an ID\r\n\t * @return Success or failure\r\n\t */\r\n\tboolean edit(InvoiceDTO invoiceDTO);\r\n\r\n}", "List<Invoice> getByDebtorIdOrderByDateAsc(int debtorId);", "Invoice getById(int invoiceId);", "public interface SalesDateLocationDetailService extends BaseService<SalesDateLocationDetailHolder>,\r\n DBActionService<SalesDateLocationDetailHolder>\r\n{\r\n public List<SalesDateLocationDetailHolder> selectSalesLocationDetailByKey(BigDecimal salesOid) throws Exception;\r\n}", "@Test\n public void getInvoiceByCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Verify it was added to the database\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n\n // Add an Item to the database\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Verify it was added\n Item itemCopy = service.findItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n\n // Add an InvoiceItem to the database\n Invoice_Item invoiceItem = new Invoice_Item();\n invoiceItem.setItem_id(item.getItem_id());\n invoiceItem.setQuantity(42);\n invoiceItem.setUnit_rate(new BigDecimal(\"4.99\"));\n invoiceItem.setDiscount(new BigDecimal(\"0.99\"));\n\n // Collect all the InvoiceItems into a list\n List<Invoice_Item> invoiceItemList = new ArrayList<>();\n invoiceItemList.add(invoiceItem);\n\n // Create an InvoiceViewModel\n InvoiceViewModel invoiceViewModel = new InvoiceViewModel();\n invoiceViewModel.setCustomer_id(customer.getCustomerId());\n invoiceViewModel.setOrder_date(LocalDate.of(2000,1,1));\n invoiceViewModel.setPickup_date(LocalDate.of(2000,2,2));\n invoiceViewModel.setReturn_date(LocalDate.of(2000,3,3));\n invoiceViewModel.setLate_fee(new BigDecimal(\"4.99\"));\n invoiceViewModel.setInvoice_items(invoiceItemList);\n invoiceViewModel = service.createInvoiceViewModel(invoiceViewModel);\n\n // Get Invoice By Customer\n service.getInvoiceByCustomer(customer.getCustomerId());\n }", "@Override\n\tpublic JavaBean1 findB(String date) {\n\t\t\n\t\tArrayList<PaymentOrderPO> pos=new ArrayList<>();\n\t\tjb1=new JavaBean1();\n\t\tString sql=\"select * from paymentlist\";\n\t\tjb1.setResultMessage(ResultMessage.NotExist);\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tpo=new PaymentOrderPO();\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"NotApprove\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"Approve\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjb1.setObject(pos);\n\t\t\t return jb1;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn jb1;\n\t\t}\n\t}", "public JSONObject getInvoiceForGSTR3BZeroRated(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n double taxableAmountInv = 0d;\n double taxableAmountCN = 0d;\n double taxableAmountAdv = 0d;\n double taxableAmountAdvAdjusted = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n// String term = data[1]!=null?data[1].toString():\"\";\n// double termamount = data[0]!=null?(Double) data[0]:0;\n taxableAmountInv = data[2]!=null?(Double) data[2]:0;\n }\n\n// /**\n// * Get CN amount\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// List<Object> cnData = accEntityGstDao.getCNDNWithInvoiceDetailsInSql(reqParams);\n// for (Object object : cnData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountCN = (Double) data[2];\n// }\n//\n// /**\n// * Get Advance for which idx not linked yet\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.put(\"at\", true);\n// reqParams.remove(\"atadj\");\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n//\n// }\n// /**\n// * Get Advance for which invoice isLinked\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.remove(\"at\");\n// reqParams.put(\"atadj\", true);\n// AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdvAdjusted = (Double) data[2];\n//\n// }\n jSONObject.put(\"Nature of Supplies\", \"b) Outward taxable supplies (zero rated)\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n public ArrayList<Invoice> getAllInvoice() {\n return DatabaseInvoicePostgre.getAllInvoice();\n }", "public interface BillService {\n\n//\t/**\n//\t * <p>MethodName: getCount</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint getCount() throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: getPageList</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: List<BaseInfo></P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tList<BaseInfo> getPageList(PageParameter pageParameter) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(List<String> idList) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(String billId) throws Exception;\n\n\t\n}", "@Repository\npublic interface InvoicesRepository extends JpaRepository<Invoice, Integer> {\n\n /**\n * Get the list of invoices of the defined debtor with pagination\n *\n * @return all invoices of this debtor\n */\n List<Invoice> getByDebtorIdOrderByDateDesc(int debtorId, Pageable page);\n\n /**\n * Get the list of invoices of the defined debtor without pagination\n *\n * @return all invoices of this debtor\n */\n List<Invoice> getByDebtorIdOrderByDateDesc(int debtorId);\n\n /**\n * Get the list of invoices of the defined debtor in ascending order\n *\n * @return all invoices of this debtor\n */\n List<Invoice> getByDebtorIdOrderByDateAsc(int debtorId);\n\n /**\n * Get the invoice by id\n *\n * @return invoice\n */\n Invoice getById(int invoiceId);\n}", "public List<InvoiceViewModel> getAllInvoices(){\n\n try{\n return invoiceService.getAllInvoices();\n }catch (RuntimeException e){\n throw new InvoiceNotFoundException(\"The database is empty!!! No Invoice(s) found in the Database\");\n }\n }", "InvoiceDTO fetchByID(int id);", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "public JSONArray getGoodsReceiptsJsonForMonthlyAgedPayables(HashMap<String, Object> request, List<GoodsReceipt> list, JSONArray jArr, AccountingHandlerDAO accountingHandlerDAOobj, accCurrencyDAO accCurrencyDAOobj, accGoodsReceiptDAO accGoodsReceiptobj, accAccountDAO accAccountDAOobj, accGoodsReceiptCMN accGoodsReceiptCommon, accTaxDAO accTaxObj) throws ServiceException {\n try {\n String companyid = (String) request.get(GoodsReceiptCMNConstants.COMPANYID);\n String currencyid = (String) request.get(GoodsReceiptCMNConstants.GCURRENCYID);\n DateFormat df = (DateFormat) request.get(GoodsReceiptCMNConstants.DATEFORMAT);\n String only1099AccStr = (String) request.get(GoodsReceiptCMNConstants.ONLY1099ACC);\n List ll = null;\n KwlReturnObject curresult = accountingHandlerDAOobj.getObject(KWLCurrency.class.getName(), currencyid);\n KWLCurrency currency = (KWLCurrency) curresult.getEntityList().get(0);\n boolean isBadDebtInvoices = false;// for Malasian Company\n boolean isproductCategory = false;\n boolean isproductType = false;\n if (request.containsKey(\"isBadDebtInvoices\") && request.get(\"isBadDebtInvoices\") != null) {\n isBadDebtInvoices = (Boolean) request.get(\"isBadDebtInvoices\");\n }\n if (request.containsKey(\"productCategoryid\") && request.get(\"productCategoryid\") != null && !StringUtil.isNullOrEmpty((String) request.get(\"productCategoryid\"))) {\n isproductCategory = true;\n }\n if (request.containsKey(InvoiceConstants.productid) && request.get(InvoiceConstants.productid) != null && !StringUtil.isNullOrEmpty((String) request.get(InvoiceConstants.productid))) {\n isproductType = true;\n }\n boolean belongsTo1099 = false;\n boolean isAged = (request.containsKey(\"isAged\") && request.get(\"isAged\") != null) ? Boolean.parseBoolean(request.get(\"isAged\").toString()) : false;\n boolean only1099Acc = (only1099AccStr != null ? Boolean.parseBoolean(only1099AccStr) : false);\n boolean ignoreZero = request.get(GoodsReceiptCMNConstants.IGNOREZERO) != null;\n boolean onlyAmountDue = request.get(GoodsReceiptCMNConstants.ONLYAMOUNTDUE) != null;\n boolean booleanAged = true;//Added for aged payable/receivable\n List InvoiceList = new ArrayList();\n Calendar oneDayBeforeCal1 = (Calendar) request.get(\"oneDayBeforeCal1\");\n Calendar cal1 = (Calendar) request.get(\"cal1\");\n Calendar cal2 = (Calendar) request.get(\"cal2\");\n Calendar cal3 = (Calendar) request.get(\"cal3\");\n Calendar cal4 = (Calendar) request.get(\"cal4\");\n Calendar cal5 = (Calendar) request.get(\"cal5\");\n Calendar cal6 = (Calendar) request.get(\"cal6\");\n Calendar cal7 = (Calendar) request.get(\"cal7\");\n Date oneDayBeforeCal1Date = null;\n Date cal1Date = null;\n Date cal2Date = null;\n Date cal3Date = null;\n Date cal4Date = null;\n Date cal5Date = null;\n Date cal6Date = null;\n Date cal7Date = null;\n DateFormat dateFormat=(DateFormat) authHandler.getDateOnlyFormat();\n String oneDayBeforeCal1String = dateFormat.format(oneDayBeforeCal1.getTime());\n oneDayBeforeCal1Date = dateFormat.parse(oneDayBeforeCal1String);\n String cal1String = dateFormat.format(cal1.getTime());\n cal1Date = dateFormat.parse(cal1String);\n String cal2String = dateFormat.format(cal2.getTime());\n cal2Date = dateFormat.parse(cal2String);\n String cal3String = dateFormat.format(cal3.getTime());\n cal3Date = dateFormat.parse(cal3String);\n String cal4String = dateFormat.format(cal4.getTime());\n cal4Date = dateFormat.parse(cal4String);\n String cal5String = dateFormat.format(cal5.getTime());\n cal5Date = dateFormat.parse(cal5String);\n String cal6String = dateFormat.format(cal6.getTime());\n cal6Date = dateFormat.parse(cal6String);\n String cal7String = dateFormat.format(cal7.getTime());\n cal7Date = dateFormat.parse(cal7String);\n double amountdue1 = 0;\n double amountdue2 = 0;\n double amountdue3 = 0;\n double amountdue4 = 0;\n double amountdue5 = 0;\n double amountdue6 = 0;\n double amountdue7 = 0;\n double amountdue8 = 0;\n Date asOfDate = null, today = new Date();\n if (request.containsKey(\"asofdate\") && request.get(\"asofdate\") != null) {\n String asOfDateString = (String) request.get(\"asofdate\");\n asOfDate = df.parse(asOfDateString);\n }\n boolean asOfDateEqualsToday = asOfDate != null ? DateUtils.isSameDay(today, asOfDate) : false;\n request.put(\"asOfDateEqualsToday\", asOfDateEqualsToday);\n if (list != null && !list.isEmpty()) {\n for (Object objectArr : list) {\n Object[] oj = (Object[]) objectArr;\n String invid = oj[0].toString();\n amountdue1 = amountdue2 = amountdue3 = amountdue4 = amountdue5 = amountdue6 = amountdue7 = amountdue8 = 0;\n KwlReturnObject objItr = accountingHandlerDAOobj.getObject(GoodsReceipt.class.getName(), invid);\n GoodsReceipt gReceipt = (GoodsReceipt) objItr.getEntityList().get(0);\n //Below If Block code is used to remove duplicate invoice id's when filter on the basis of Product category or Product name\n if (isproductCategory || isproductType) {\n if (InvoiceList.contains(gReceipt.getID())) {\n continue;\n } else {\n InvoiceList.add(gReceipt.getID());\n }\n }\n JournalEntry je = null;\n JournalEntryDetail d = null;\n if (gReceipt.isNormalInvoice()) {\n je = gReceipt.getJournalEntry();\n d = gReceipt.getVendorEntry();\n }\n double invoiceOriginalAmt = 0d;\n double externalCurrencyRate = 0d;\n boolean isopeningBalanceInvoice = gReceipt.isIsOpeningBalenceInvoice();\n Date creationDate = null;\n currencyid = (gReceipt.getCurrency() == null ? currency.getCurrencyID() : gReceipt.getCurrency().getCurrencyID());\n Account account = null;\n creationDate = gReceipt.getCreationDate();\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n KwlReturnObject accObjItr = accountingHandlerDAOobj.getObject(Account.class.getName(), gReceipt.getVendor().getAccount().getID());\n account = (Account) accObjItr.getEntityList().get(0);\n externalCurrencyRate = gReceipt.getExchangeRateForOpeningTransaction();\n invoiceOriginalAmt = gReceipt.getOriginalOpeningBalanceAmount();\n } else {\n account = d.getAccount();\n externalCurrencyRate = je.getExternalCurrencyRate();\n// creationDate = je.getEntryDate();\n invoiceOriginalAmt = d.getAmount();\n }\n double amountdue = 0;\n boolean invoiceAmountDueEqualsInvAmount= ((!gReceipt.isIsOpeningBalenceInvoice() && gReceipt.isNormalInvoice()) ? (gReceipt.getInvoiceAmount() == gReceipt.getInvoiceamountdue()) : false);\n request.put(\"invoiceAmtDueEqualsInvoiceAmt\",invoiceAmountDueEqualsInvAmount);\n if (asOfDateEqualsToday || invoiceAmountDueEqualsInvAmount) {\n if (gReceipt.isIsExpenseType()) {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getUpdatedExpGRAmountDue(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getExpGRAmountDue(request, gReceipt);\n }\n if(gReceipt.isIsOpeningBalenceInvoice()){\n amountdue=gReceipt.getOpeningBalanceAmountDue();\n }else{\n amountdue=gReceipt.getInvoiceamountdue();\n }\n belongsTo1099 = (Boolean) ll.get(3);\n } else {\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n ll = new ArrayList();\n ll.add(gReceipt.getOriginalOpeningBalanceAmount());\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n ll.add(\"\");\n ll.add(false);\n ll.add(0.0);\n } else {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getInvoiceDiscountAmountInfo(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getGRAmountDueForMonthlyAgedPayable(request, gReceipt);\n }\n }\n\n if (gReceipt.isIsOpeningBalenceInvoice()) {\n amountdue = gReceipt.getOpeningBalanceAmountDue();\n } else {\n amountdue = gReceipt.getInvoiceamountdue();\n }\n belongsTo1099 = (Boolean) ll.get(3);\n }\n } else {\n if (gReceipt.isIsExpenseType()) {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getUpdatedExpGRAmountDue(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getExpGRAmountDue(request, gReceipt);\n }\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n } else {\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n ll = new ArrayList();\n ll.add(gReceipt.getOriginalOpeningBalanceAmount());\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n ll.add(\"\");\n ll.add(false);\n ll.add(0.0);\n } else {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getInvoiceDiscountAmountInfo(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getGRAmountDueForMonthlyAgedPayable(request, gReceipt);\n }\n }\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n }\n }\n if (onlyAmountDue && authHandler.round(amountdue, companyid) == 0 || (only1099Acc && !belongsTo1099)) {//remove //belongsTo1099&&gReceipt.isIsExpenseType()\\\\ in case of viewing all accounts. [PS]\n continue;\n }\n if ((ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n continue;\n }\n if (request.containsKey(\"excludeInvoiceId\") && request.get(\"excludeInvoiceId\") != null) {\n String excludeInvoiceId = (String) request.get(\"excludeInvoiceId\");\n if (gReceipt.getGoodsReceiptNumber().equals(excludeInvoiceId)) {\n continue;\n }\n }\n Vendor vendor = gReceipt.getVendor();\n HashMap<String, Object> hashMap = new HashMap<>();\n hashMap.put(\"invoiceID\", gReceipt.getID());\n com.krawler.utils.json.base.JSONObject obj = new com.krawler.utils.json.base.JSONObject();\n obj.put(GoodsReceiptCMNConstants.BILLID, gReceipt.getID());\n obj.put(\"isOpeningBalanceTransaction\", gReceipt.isIsOpeningBalenceInvoice());\n obj.put(\"isNormalTransaction\", gReceipt.isNormalInvoice());\n obj.put(GoodsReceiptCMNConstants.PERSONID, vendor == null ? account.getID() : vendor.getID());\n obj.put(GoodsReceiptCMNConstants.BILLNO, gReceipt.getGoodsReceiptNumber());\n obj.put(GoodsReceiptCMNConstants.CURRENCYID, currencyid);\n obj.put(GoodsReceiptCMNConstants.CURRENCYSYMBOL, (gReceipt.getCurrency() == null ? currency.getSymbol() : gReceipt.getCurrency().getSymbol()));\n obj.put(\"currencyCode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"currencycode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"termname\", (gReceipt.getTermid() == null ? vendor.getDebitTerm().getTermname() : gReceipt.getTermid().getTermname()));\n obj.put(GoodsReceiptCMNConstants.CURRENCYNAME, (gReceipt.getCurrency() == null ? currency.getName() : gReceipt.getCurrency().getName()));\n KwlReturnObject bAmt = accCurrencyDAOobj.getBaseToCurrencyAmount(request, 1.0, currencyid, creationDate, 0);\n obj.put(GoodsReceiptCMNConstants.OLDCURRENCYRATE, bAmt.getEntityList().get(0));\n obj.put(GoodsReceiptCMNConstants.DATE, df.format(creationDate));\n obj.put(GoodsReceiptCMNConstants.DUEDATE, df.format(gReceipt.getDueDate()));\n obj.put(GoodsReceiptCMNConstants.PERSONNAME, vendor == null ? account.getName() : vendor.getName());\n obj.put(GoodsReceiptCMNConstants.PERSONINFO, vendor == null ? account.getName() : vendor.getName()+\"(\"+vendor.getAcccode()+\")\");\n obj.put(GoodsReceiptCMNConstants.EXTERNALCURRENCYRATE, externalCurrencyRate);\n obj.put(GoodsReceiptCMNConstants.JOURNALENTRYID, je != null ? je.getID() : \"\"); //'journalentryid' is used to fetch data of this invoice to show in journal entry tab\n obj.put(GoodsReceiptCMNConstants.ENTRYNO, je != null ? je.getEntryNumber() : \"\"); // 'entryno' is used to show journalentry no. in entry no. column\n obj.put(\"cashtransaction\", gReceipt.isCashtransaction());\n obj.put(GoodsReceiptCMNConstants.TYPE, \"Purchase Invoice\");\n Set<GoodsReceiptDetail> goodsReceiptDetails = gReceipt.getRows();\n // Calculating total invoice amount in base currency\n KwlReturnObject invoiceTotalAmtInBaseResult = null;\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n } else {\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n }\n double invoiceTotalAmountInBase = authHandler.round((Double) invoiceTotalAmtInBaseResult.getEntityList().get(0), companyid);\n if (isBadDebtInvoices) {// in case of Malasian Company\n double totalTaxAmt = 0d;\n double invoiceLevelTaxAmt = gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount();\n String taxId = gReceipt.getTaxEntry() == null ? \"\" : gReceipt.getTax().getID();\n double rowTaxAmt = 0d;\n for (GoodsReceiptDetail invoiceDetail : goodsReceiptDetails) {\n rowTaxAmt += invoiceDetail.getRowTaxAmount() + invoiceDetail.getRowTermTaxAmount();\n taxId = (invoiceDetail.getTax() != null) ? invoiceDetail.getTax().getID() : taxId;\n }\n totalTaxAmt = invoiceLevelTaxAmt + rowTaxAmt;\n if (totalTaxAmt == 0) {// no need to put invoice in bad debt section if it has tax 0\n continue;\n }\n // get Paid amount of invoice\n Date badDebtCalculationToDate = null;\n if (request.get(\"badDebtCalculationToDate\") != null) {\n badDebtCalculationToDate = df.parse((String) request.get(\"badDebtCalculationToDate\"));\n }\n KwlReturnObject invoicePaidAmtObj = accPaymentDAOobj.getPaymentFromBadDebtClaimedInvoice(gReceipt.getID(), true, badDebtCalculationToDate);//accPaymentDAOobj.getPaymentAmountofBadDebtGoodsReceipt(gReceipt.getID(),true);\n double paidAmt = 0;\n List paidList = invoicePaidAmtObj.getEntityList();\n if (paidList != null && !paidList.isEmpty()) {\n Iterator pmtIt = paidList.iterator();\n while (pmtIt.hasNext()) {\n PaymentDetail rd = (PaymentDetail) pmtIt.next();\n double paidAmtInPaymentCurrency = rd.getAmount();\n// KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getJournalEntry().getEntryDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getCreationDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n double paidAmtInBase = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n paidAmt += paidAmtInBase;\n\n }\n }\n String fromcurrencyid = gReceipt.getCurrency().getCurrencyID();\n HashMap<String, Object> badMaps = new HashMap<String, Object>();\n badMaps.put(\"companyid\", companyid);\n badMaps.put(\"invoiceid\", invid);\n\n KwlReturnObject badDebtMappingResult = accGoodsReceiptobj.getBadDebtPurchaseInvoiceMappingForGoodsReceipt(badMaps);\n double totalRecoveredAmt = 0;\n List badDebtMapping = badDebtMappingResult.getEntityList();\n if (!badDebtMapping.isEmpty()) {\n Iterator badIt = badDebtMapping.iterator();\n while (badIt.hasNext()) {\n BadDebtPurchaseInvoiceMapping debtInvoiceMapping = (BadDebtPurchaseInvoiceMapping) badIt.next();\n totalRecoveredAmt += debtInvoiceMapping.getBadDebtAmtRecovered();\n }\n }\n // Calculate Recover Amount in base\n// KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n totalRecoveredAmt = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n double paidAfterClaimed = paidAmt - totalRecoveredAmt;\n if (authHandler.round(amountdue, companyid) == 0 && authHandler.round(paidAfterClaimed, companyid) == 0) {// don't put invoices which has amount due zero and whole gst has been recovered\n continue;\n }\n }\n\n //For getting amountdue [PS]\n if (gReceipt.isCashtransaction()) {\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, 0);\n obj.put(GoodsReceiptCMNConstants.INCASH, true);\n } else {\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, authHandler.round(amountdue,companyid), currencyid, creationDate, externalCurrencyRate);\n } else {\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmount(request, authHandler.round(amountdue,companyid), currencyid, creationDate, externalCurrencyRate);\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, authHandler.round((Double) bAmt.getEntityList().get(0), companyid));\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, authHandler.round(amountdue, companyid));\n\n if (booleanAged) {//Added for aged payable/receivable\n int datefilter = (request.containsKey(\"datefilter\") && request.get(\"datefilter\") != null) ? Integer.parseInt(request.get(\"datefilter\").toString()) : 0;// 0 = Invoice Due date OR 1 = Invoice date\n Date dueDate = null;\n if (!StringUtil.isNullOrEmpty(df.format(gReceipt.getDueDate()))) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n }\n if (datefilter == 0) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n } else {\n dueDate = df.parse(df.format(creationDate));\n }\n\n if (dueDate.after(oneDayBeforeCal1Date) && (dueDate.before(cal1Date) || dueDate.equals(cal1Date))) {\n amountdue1 = authHandler.round(amountdue, companyid);\n } else if ((cal2Date.before(dueDate) || cal2Date.equals(dueDate)) && cal1Date.after(dueDate)) {\n amountdue2 = authHandler.round(amountdue, companyid);\n } else if ((cal3Date.before(dueDate) || cal3Date.equals(dueDate)) && cal2Date.after(dueDate)) {\n amountdue3 = authHandler.round(amountdue, companyid);\n } else if ((cal4Date.before(dueDate) || cal4Date.equals(dueDate)) && cal3Date.after(dueDate)) {\n amountdue4 = authHandler.round(amountdue, companyid);\n } else if ((cal5Date.before(dueDate) || cal5Date.equals(dueDate)) && cal4Date.after(dueDate)) {\n amountdue5 = authHandler.round(amountdue, companyid);\n } else if ((cal6Date.before(dueDate) || cal6Date.equals(dueDate)) && cal5Date.after(dueDate)) {\n amountdue6 = authHandler.round(amountdue, companyid);\n } else if ((cal7Date.before(dueDate) || cal7Date.equals(dueDate)) && cal6Date.after(dueDate)) {\n amountdue7 = authHandler.round(amountdue, companyid);\n } else {\n amountdue8 = authHandler.round(amountdue, companyid);\n }\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, (amountdue <= 0) ? 0 : authHandler.round(amountdue, companyid));\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNT, authHandler.round((Double) invoiceOriginalAmt, companyid)); //actual invoice amount\n obj.put(GoodsReceiptCMNConstants.AMOUNTINBASE, invoiceTotalAmountInBase);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE1, amountdue1);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE2, amountdue2);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE3, amountdue3);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE4, amountdue4);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE5, amountdue5);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE6, amountdue6);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE7, amountdue7);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE8, amountdue8);\n if (!(ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n jArr.put(obj);\n }\n }\n }\n } catch (Exception ex) {\n throw ServiceException.FAILURE(\"accGoodsReceiptController.getGoodsReceiptsJsonForMonthlyAgedPayables : \" + ex.getMessage(), ex);\n }\n return jArr;\n }", "private Collection<ContractsGrantsInvoiceDocument> getInvoicesByParametersFromRequest(InvoiceReportDeliveryForm form) throws WorkflowException, ParseException {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"mm/dd/yyyy\");\r\n SimpleDateFormat reqDateFormat = new SimpleDateFormat(\"yyyy-mm-dd hh:mm:ss\");\r\n Timestamp fromDate = null;\r\n Timestamp toDate = null;\r\n if (StringUtils.isNotEmpty(form.getToDate())) {\r\n toDate = Timestamp.valueOf(reqDateFormat.format(dateFormat.parse(form.getToDate())));\r\n }\r\n if (StringUtils.isNotEmpty(form.getFromDate())) {\r\n fromDate = Timestamp.valueOf(reqDateFormat.format(dateFormat.parse(form.getFromDate())));\r\n }\r\n String user = form.getUserId();\r\n ContractsGrantsInvoiceDocumentService invoiceDocumentService = SpringContext.getBean(ContractsGrantsInvoiceDocumentService.class);\r\n Map<String, String> fieldValues = new HashMap<String, String>();\r\n if (StringUtils.isNotEmpty(form.getProposalNumber())) {\r\n fieldValues.put(\"proposalNumber\", form.getProposalNumber());\r\n }\r\n if (StringUtils.isNotEmpty(form.getDocumentNumber())) {\r\n fieldValues.put(\"documentNumber\", form.getDocumentNumber());\r\n }\r\n if (ObjectUtils.isNotNull(form.getInvoiceAmount())) {\r\n fieldValues.put(\"documentHeader.financialDocumentTotalAmount\", form.getInvoiceAmount());\r\n }\r\n if (StringUtils.isNotEmpty(form.getChartCode())) {\r\n fieldValues.put(ArPropertyConstants.CustomerInvoiceDocumentFields.BILL_BY_CHART_OF_ACCOUNT_CODE, form.getChartCode());\r\n }\r\n if (StringUtils.isNotEmpty(form.getOrgCode())) {\r\n fieldValues.put(ArPropertyConstants.CustomerInvoiceDocumentFields.BILLED_BY_ORGANIZATION_CODE, form.getOrgCode());\r\n }\r\n Collection<ContractsGrantsInvoiceDocument> list = invoiceDocumentService.retrieveAllCGInvoicesByCriteria(fieldValues);\r\n Collection<ContractsGrantsInvoiceDocument> finalList = new ArrayList<ContractsGrantsInvoiceDocument>();\r\n if (CollectionUtils.isEmpty(list)) {\r\n return null;\r\n }\r\n for (ContractsGrantsInvoiceDocument item : list) {\r\n Document document = SpringContext.getBean(DocumentService.class).getByDocumentHeaderId(item.getDocumentNumber());\r\n if (ArConstants.ArDocumentTypeCodes.CONTRACTS_GRANTS_INVOICE.equals(document.getDocumentHeader().getWorkflowDocument().getDocumentTypeName())) {\r\n ContractsGrantsInvoiceDocument invoice = (ContractsGrantsInvoiceDocument) document;\r\n if (invoice.getDocumentHeader().getWorkflowDocument().isFinal()) {\r\n if (StringUtils.isNotEmpty(user)) {\r\n Person person = SpringContext.getBean(PersonService.class).getPersonByPrincipalName(user);\r\n if (person == null) {\r\n throw new IllegalArgumentException(\"The parameter value for initiatorPrincipalName [\" + user + \"] passed in does not map to a person.\");\r\n }\r\n if (StringUtils.equalsIgnoreCase(invoice.getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId(), person.getPrincipalId())) {\r\n // if (invoice.getDocumentHeader().getWorkflowDocument().userIsInitiator(person)){\r\n }\r\n if (invoice.getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId().equals(person.getPrincipalId())) {\r\n if (this.isInvoiceBetween(invoice, fromDate, toDate)) {\r\n if (ObjectUtils.isNull(invoice.getDateReportProcessed()) || ObjectUtils.isNull(invoice.getMarkedForProcessing())) {\r\n finalList.add(invoice);\r\n }\r\n }\r\n }\r\n }\r\n else if (this.isInvoiceBetween(invoice, fromDate, toDate)) {\r\n if (ObjectUtils.isNull(invoice.getDateReportProcessed()) || ObjectUtils.isNull(invoice.getMarkedForProcessing())) {\r\n finalList.add(invoice);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return finalList;\r\n }", "public interface VaccinePurchaseRecordReadService {\n /**\n * 查询 采购中心-疫苗购置 单据 单条\n *\n * @param id 单据id\n * @return VaccinePurchaseRecord对象\n */\n Response<VaccinePurchaseRecord> findById(Long id);\n\n /**\n * @param id 主 键\n * @return 状态\n */\n Response<Map<String, Object>> findStatusById(Long id);\n\n /**\n * 分页查询 采购中心-疫苗购置 单据 -- 养殖端\n *\n * @param pageNo 页码\n * @param pageSize 每页多少条\n * @param status 参数\n * @return Paging<VaccinePurchaseRecord>\n */\n Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecord(Integer pageNo, Integer pageSize,Long breedFactoryId, Integer status);\n\n /**\n * 根据从日期到日期和养殖场名称查看防疫中心5项纪录的列表\n */\n\n Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize, String factoryName, Date fromDate, Date toDate);\n Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize,Map map);\n\n Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize, Long breedFactoryId,Integer breedType, Date fromDate, Date toDate);\n\n\n}", "public JSONObject getInvoiceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n reqParams.remove(\"isb2cs\"); // remove to avoid CN index while fetching data\n double taxableAmountInv = 0d;\n double totalAmountInv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n String term = data[1]!=null?data[1].toString():\"\";\n double termamount = data[0]!=null?(Double) data[0]:0;\n count = data[4]!=null?((BigInteger) data[4]).intValue():0;\n totalAmountInv = data[3]!=null?(Double) data[3]:0;\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n IGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n CGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if(StringUtil.isNullOrEmpty(term)){\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n }\n }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv, companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Object[] findBillingByInvoiceAndDate(String invoice, Date trxDate,\n\t\t\tObject[] mt940Data) {\n\t\tString sql = \"select \"\n\t\t\t\t\t+\"inv.invoice_number, \"\n\t\t\t\t\t+\"reg.id_registrant, \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.due_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.payment_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"nama_registrant, \"\n\t\t\t\t\t+\"inv.amount \"\n\t\t\t\t\t+\"from \"\n\t\t\t\t\t+\"invoices inv join payments pay on \"\n\t\t\t\t\t+\"inv.id_invoice = pay.id_invoice \"\n\t\t\t\t\t+\"join registrants reg \"\n\t\t\t\t\t+\"on pay.id_registrant = reg.id_registrant \"\n\t\t\t\t\t+\"where inv.invoice_number = :invoice \"\n\t\t\t\t\t+\"and pay.payment_date is not null \"; \n\t\t\n\t\tQuery query = getSessionFactory().getCurrentSession().createSQLQuery(sql);\n\t\tquery.setParameter(\"invoice\", invoice);\n\t\t\t\n\t\tObject obj = new Object();\n\t\tObject[] objectArray = null;\n\t\t\n\t\tList<Object> result = query.list();\n\t\tif (result.size()>0) {\n\t\t\tobj = result.get(0);\n\t\t\tobjectArray = (Object[]) obj;\n\t\t}\n\t\treturn objectArray;\n\t}", "public void setInvoiceDate (java.util.Date invoiceDate) {\n\t\tthis.invoiceDate = invoiceDate;\n\t}", "List<Invoice> getByDebtorIdOrderByDateDesc(int debtorId);", "public interface IOaOffPriceService {\n\n /**\n * 查询批量特价调整单明细List\n * @param map\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 9, 2015\n */\n public PageData selectOaOffPriceDetailList(PageMap map) throws Exception;\n\n /**\n * 新增批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int addOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 修改批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int editOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 查询批量特价申请单\n * @param id\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public OaOffPrice selectOaOffPrice(String id) throws Exception;\n\n /**\n * 查询批量特价调整单明细List\n * @param billid\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public List<OaOffPriceDetail> selectOaOffPriceDetailListByBillid(String billid) throws Exception;\n\n /**\n * 查询商品\n *\n * @param pageMap\n * @return\n * @throws Exception\n * @author limin\n * @date Sep 30, 2015\n */\n public PageData getGoodsList(PageMap pageMap) throws Exception;\n}", "public List getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate);", "@Override\n\tpublic void execute(Invoice invoice) {\n\t\t\n\t}", "public int getInvoiceID(){\n return invoiceID;\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "public Invoice findById(long id);", "public interface OrdRefundSaleRecordService {\r\n public int insert(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public OrdRefundSaleRecord selectByPrimaryKey(Long ordRefundSaleRecordId);\r\n\r\n public int updateByPrimaryKeySelective(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public int updateByOrderItemIdSelective(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public List<OrdRefundSaleRecord> findOrdRefundSaleRecordList(Map<String,Object> params);\r\n\r\n /**\r\n * 根据订单初始化记录\r\n * @param ordOrder\r\n */\r\n public void init(OrdOrder ordOrder, Date applyTime);\r\n\r\n public List<OrdRefundSaleRecord> getOrdRefundSaleRecordByOrder(OrdOrder ordOrder, Date applyTime);\r\n}", "public void testUpdateInvoiceAccuracy() throws Exception {\n Invoice invoice = new Invoice();\n\n invoice.setId(4);\n invoice.setCreationDate(new Date());\n invoice.setCreationUser(\"tc\");\n invoice.setModificationDate(new Date());\n invoice.setModificationUser(\"tc\");\n invoice.setCompanyId(5);\n invoice.setProjectId(8);\n invoice.setInvoiceNumber(\"invoiceNumber\");\n invoice.setPaid(true);\n invoice.setDueDate(new Date());\n invoice.setInvoiceDate(new Date());\n invoice.setPurchaseOrderNumber(\"purchaseOrderNumber\");\n invoice.setSalesTax(new BigDecimal(5));\n\n ExpenseEntry entry = new ExpenseEntry();\n entry.setAmount(new BigDecimal(5));\n ExpenseEntry[] expenseEntries = new ExpenseEntry[] {entry};\n invoice.setExpenseEntries(expenseEntries);\n\n PaymentTerm paymentTerm = new PaymentTerm();\n paymentTerm.setId(3);\n invoice.setPaymentTerm(paymentTerm);\n\n FixedBillingEntry fixedBillingEntry = new FixedBillingEntry();\n FixedBillingEntry[] fixedBillingEntries = new FixedBillingEntry[] {fixedBillingEntry};\n invoice.setFixedBillingEntries(fixedBillingEntries);\n\n InvoiceServiceDetail detail = new InvoiceServiceDetail();\n detail.setAmount(new BigDecimal(8));\n detail.setId(4);\n InvoiceServiceDetail[] serviceDetails = new InvoiceServiceDetail[] {detail};\n invoice.setServiceDetails(serviceDetails);\n\n InvoiceStatus invoiceStatus = new InvoiceStatus(4, \"description\", \"user\", \"user\", new Date(), new Date());\n invoice.setInvoiceStatus(invoiceStatus);\n\n invoiceSessionBean.updateInvoice(invoice, true);\n\n }", "public interface InventoryChangeFormService {\n\n\n\n Page<InventoryChangeHistoryForm> getHistoryChangeForm(Long maxCatalog,\n Long minCatalog,\n Date start,\n Date end,\n String goodsInfoName,\n String goodsInfoItemNo,\n Pageable pageable);\n}", "public List<TblPurchaseOrderDetail>getAllDataPurchaseOrderDetail(TblSupplier supplier,TblPurchaseOrder po,RefPurchaseOrderStatus poStatus,TblItem item,Date startDate,Date endDate,TblPurchaseRequest mr);", "public interface DistrInNoticeService {\r\n\r\n\r\n /**\r\n * 获取订单详情\r\n * @param id\r\n * @return\r\n */\r\n DistrInNoticeVO getDistrInOrderDtlList(Long id,UserVO loginUser);\r\n\r\n\r\n /**\r\n * 获取分页列表\r\n * @param requestVO\r\n * @param userVO\r\n * @return\r\n */\r\n Page getDistrInNoticePageList(DistrInNoticeRequestVO requestVO, UserVO userVO) throws Exception;\r\n\r\n\r\n Page getDistrNoticeDetailList(String ids,Integer pageNo,Integer pageSize,UserVO userVO);\r\n\r\n void exportDetail(OutputStream output, Long orderId, UserVO loginUser);\r\n\r\n\tvoid getDistrInNoticeList(Page<OrderReportVo<DistrInNoticeReportVo>> page, RequestDistrInNotice requestDistrInNotice);\r\n\r\n void excelExportReport(OutputStream output, List<DistrInNoticeReportVo> distrInNoticeReportVos, UserVO userVO);\r\n\r\n void saveDistrInNotice(UserVO loginUser, SaveDistrInNoticeVO saveDistrInNoticeVO) throws Exception;\r\n\r\n List<GoodsInNoticeVO> getGoodsByParam(UserVO userVO,Long supplierId,String param);\r\n\r\n void cancelDistrInNotice(Long id,UserVO loginUser) throws Exception;\r\n\r\n void updateDistrInNotice(UserVO loginUser, SaveDistrInNoticeVO saveDistrInNoticeVO) throws Exception;\r\n\r\n List<DistrReqPlanPageVO> getDistrReqPlanPage(int pageNo, int pageSize, Long enterpriseId, Page page, Date startTime, Date endTime, String orderName, String orderType);\r\n\r\n List<DistrReqPlanDetailPageVO> getDistrReqPlanDetailPage(int pageNo, int pageSize, Long enterpriseId, Page page, Date startTime, Date endTime, Long planId);\r\n\r\n DistrInNoticeVO callDistrReqPlan(Long id, UserVO loginUser) throws Exception;\r\n}", "public java.util.Date getInvoiceDate () {\n\t\treturn invoiceDate;\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public interface PaymentRequestDao {\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param paymentRequestIdentifier - Payment Request Identifier (can be null)\n * @param purchaseOrderIdentifier - PO Identifier (can be null)\n * @param vendorHeaderGeneratedIdentifier\n * - Vendor Header ID\n * @param vendorDetailAssignedIdentifier - Vendor Detail ID\n * @param currentSqlDateMidnight current SQL date midnight\n * @return - list of payment requests that need to be extracted\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(String campusCode, Integer paymentRequestIdentifier, Integer purchaseOrderIdentifier, Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, Date currentSqlDateMidnight);\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param vendor - Vendor Header ID, Vendor Detail ID, Country, Zip Code\n * @param onOrBeforePaymentRequestPayDate\n * only payment requests with a pay date on or before this value will be returned in the\n * iterator\n * @return - list of payment requests that need to be extracted\n */\n public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that need to be extracted to PDP.\n *\n * @param onlySpecialPayments - true only include special payments, False - include all\n * @param chartCode - if not null, limit results to a single chart\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that are marked immediate that need to be extracted to PDP.\n *\n * @param chartCode - chart of accounts code\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode);\n\n /**\n * Get all payment request documents that are eligible for auto-approval. Whether or not a document is eligible for\n * auto-approval is determined according to whether or not the document total is below a pre-determined minimum amount. This\n * amount is derived from the accounts, charts and/or organizations associated with a given document. If no minimum amount can\n * be determined from chart associations a default minimum specified as a system parameter is used to determine the minimum\n * amount threshold.\n *\n * @param todayAtMidnight\n * @return - an Iterator over all payment request documents eligible for automatic approval\n */\n public List<String> getEligibleForAutoApproval(Date todayAtMidnight);\n\n public List<String> getEligibleForAutoApproval();\n\n /**\n * Get a payment request document number by id.\n *\n * @param id - PaymentRequest Id\n * @return - PaymentRequest or null if not found\n */\n public String getDocumentNumberByPaymentRequestId(Integer id);\n\n /**\n * Retrieves a list of document numbers by purchase order id.\n *\n * @param id - purchase order id\n * @return - list of document numbers\n */\n public List<String> getDocumentNumbersByPurchaseOrderId(Integer id);\n\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @param invoiceNumber - invoice number as entered by AP\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId, String invoiceNumber);\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId);\n\n /**\n * Retrieves a list of Payment Requests with the given PO Id, invoice amount, and invoice date.\n *\n * @param poId - purchase order ID\n * @param invoiceAmount - amount of the invoice as entered by AP\n * @param invoiceDate - date of the invoice as entered by AP\n * @return - List of Pay Reqs.\n */\n public List getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate);\n\n /**\n * Retrieves a list of potentially active payment requests for a purchase order by status code. Active being defined as being\n * enroute and before final. The issue is that a status of vendor_tax_review may not mean that it's in review, but could be in\n * final (as there isn't a final status code for payment request). Workflow status must be checked further after retrieval.\n *\n * @param purchaseOrderId\n * @return\n */\n public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId);\n\n /**\n * Get all payment request which are waiting in receiving status queue\n *\n * @return\n */\n public List<String> getPaymentRequestInReceivingStatus();\n\n}", "public static Map<String, Object> createCommissionInvoices(DispatchContext dctx, Map<String, Object> context) {\n Delegator delegator = dctx.getDelegator();\n LocalDispatcher dispatcher = dctx.getDispatcher();\n GenericValue userLogin = (GenericValue) context.get(\"userLogin\");\n Locale locale = (Locale) context.get(\"locale\");\n List<String> salesInvoiceIds = UtilGenerics.cast(context.get(\"invoiceIds\"));\n List<Map<String, String>> invoicesCreated = new LinkedList<>();\n Map<String, List<Map<String, Object>>> commissionParties = new HashMap<>();\n for (String salesInvoiceId : salesInvoiceIds) {\n List<String> salesRepPartyIds = UtilGenerics.cast(context.get(\"partyIds\"));\n BigDecimal amountTotal = InvoiceWorker.getInvoiceTotal(delegator, salesInvoiceId);\n if (amountTotal.signum() == 0) {\n Debug.logWarning(\"Invoice [\" + salesInvoiceId + \"] has an amount total of [\" + amountTotal + \"], so no commission invoice will be \"\n + \"created\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionZeroInvoiceAmount\", locale));\n }\n BigDecimal appliedFraction = amountTotal.divide(amountTotal, 12, ROUNDING);\n GenericValue invoice = null;\n boolean isReturn = false;\n List<String> billFromVendorInvoiceRoles;\n List<GenericValue> invoiceItems;\n try {\n List<EntityExpr> invoiceRoleConds = UtilMisc.toList(\n EntityCondition.makeCondition(\"invoiceId\", EntityOperator.EQUALS, salesInvoiceId),\n EntityCondition.makeCondition(\"roleTypeId\", EntityOperator.EQUALS, \"BILL_FROM_VENDOR\"));\n EntityQuery roleQuery = EntityQuery.use(delegator).select(\"partyId\").from(\"InvoiceRole\").where(invoiceRoleConds);\n billFromVendorInvoiceRoles = EntityUtil.getFieldListFromEntityList(roleQuery.queryList(), \"partyId\", true);\n\n invoiceRoleConds = UtilMisc.toList(\n EntityCondition.makeCondition(\"invoiceId\", EntityOperator.EQUALS, salesInvoiceId),\n EntityCondition.makeCondition(\"roleTypeId\", EntityOperator.EQUALS, \"SALES_REP\"));\n // if the receiving parties is empty then we will create commission invoices for all sales agent associated to sales invoice.\n if (UtilValidate.isEmpty(salesRepPartyIds)) {\n salesRepPartyIds = EntityUtil.getFieldListFromEntityList(roleQuery.where(invoiceRoleConds).queryList(), \"partyId\", true);\n if (UtilValidate.isEmpty(salesRepPartyIds)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"No party found with role sales representative for sales invoice \" + salesInvoiceId, locale));\n }\n } else {\n List<String> salesInvoiceRolePartyIds = EntityUtil.getFieldListFromEntityList(roleQuery.where(invoiceRoleConds).queryList(),\n \"partyId\", true);\n if (UtilValidate.isNotEmpty(salesInvoiceRolePartyIds)) {\n salesRepPartyIds = UtilGenerics.cast(CollectionUtils.intersection(salesRepPartyIds, salesInvoiceRolePartyIds));\n }\n }\n invoice = EntityQuery.use(delegator).from(\"Invoice\").where(\"invoiceId\", salesInvoiceId).queryOne();\n String invoiceTypeId = invoice.getString(\"invoiceTypeId\");\n if (\"CUST_RTN_INVOICE\".equals(invoiceTypeId)) {\n isReturn = true;\n } else if (!\"SALES_INVOICE\".equals(invoiceTypeId)) {\n Debug.logWarning(\"This type of invoice has no commission; returning success\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionInvalid\", locale));\n }\n invoiceItems = EntityQuery.use(delegator).from(\"InvoiceItem\").where(\"invoiceId\", salesInvoiceId).queryList();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n // Map of commission Lists (of Maps) for each party.\n // Determine commissions for various parties.\n for (GenericValue invoiceItem : invoiceItems) {\n BigDecimal amount = BigDecimal.ZERO;\n BigDecimal quantity = invoiceItem.getBigDecimal(\"quantity\");\n amount = invoiceItem.getBigDecimal(\"amount\");\n amount = isReturn ? amount.negate() : amount;\n String productId = invoiceItem.getString(\"productId\");\n String invoiceItemSeqId = invoiceItem.getString(\"invoiceItemSeqId\");\n String invoiceId = invoiceItem.getString(\"invoiceId\");\n // Determine commission parties for this invoiceItem\n if (UtilValidate.isNotEmpty(productId)) {\n Map<String, Object> resultMap = null;\n try {\n resultMap = dispatcher.runSync(\"getCommissionForProduct\", UtilMisc.<String, Object>toMap(\n \"productId\", productId,\n \"invoiceId\", invoiceId,\n \"invoiceItemSeqId\", invoiceItemSeqId,\n \"invoiceItemTypeId\", invoiceItem.getString(\"invoiceItemTypeId\"),\n \"amount\", amount,\n \"quantity\", quantity,\n \"userLogin\", userLogin));\n if (ServiceUtil.isError(resultMap)) {\n return ServiceUtil.returnError(ServiceUtil.getErrorMessage(resultMap));\n }\n } catch (GenericServiceException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n // build a Map of partyIds (both to and from) in a commission and the amounts\n // Note that getCommissionForProduct returns a List of Maps with a lot values. See services.xml definition for reference.\n List<Map<String, Object>> itemCommissions = UtilGenerics.cast(resultMap.get(\"commissions\"));\n if (UtilValidate.isNotEmpty(itemCommissions)) {\n for (Map<String, Object> commissionMap : itemCommissions) {\n commissionMap.put(\"invoice\", invoice);\n commissionMap.put(\"appliedFraction\", appliedFraction);\n if (!billFromVendorInvoiceRoles.contains(commissionMap.get(\"partyIdFrom\"))\n || !salesRepPartyIds.contains(commissionMap.get(\"partyIdTo\"))) {\n continue;\n }\n String partyIdFromTo = (String) commissionMap.get(\"partyIdFrom\") + (String) commissionMap.get(\"partyIdTo\");\n if (!commissionParties.containsKey(partyIdFromTo)) {\n commissionParties.put(partyIdFromTo, UtilMisc.toList(commissionMap));\n } else {\n List<Map<String, Object>> commissionPartiesPartyIdFromTo = commissionParties.get(partyIdFromTo);\n commissionPartiesPartyIdFromTo.add(commissionMap);\n }\n }\n }\n }\n }\n }\n Timestamp now = UtilDateTime.nowTimestamp();\n // Create invoice for each commission receiving party\n for (Map.Entry<String, List<Map<String, Object>>> commissionParty : commissionParties.entrySet()) {\n List<GenericValue> toStore = new LinkedList<>();\n List<Map<String, Object>> commList = commissionParty.getValue();\n // get the billing parties\n if (UtilValidate.isEmpty(commList)) {\n continue;\n }\n // From and To are reversed between commission and invoice\n String partyIdBillTo = (String) (commList.get(0)).get(\"partyIdFrom\");\n String partyIdBillFrom = (String) (commList.get(0)).get(\"partyIdTo\");\n GenericValue invoice = (GenericValue) (commList.get(0)).get(\"invoice\");\n BigDecimal appliedFraction = (BigDecimal) (commList.get(0)).get(\"appliedFraction\");\n Long days = (Long) (commList.get(0)).get(\"days\");\n // create the invoice record\n // To and From are in commission's sense, opposite for invoice\n Map<String, Object> createInvoiceMap = new HashMap<>();\n createInvoiceMap.put(\"partyId\", partyIdBillTo);\n createInvoiceMap.put(\"partyIdFrom\", partyIdBillFrom);\n createInvoiceMap.put(\"invoiceDate\", now);\n // if there were days associated with the commission agreement, then set a dueDate for the invoice.\n if (days != null) {\n createInvoiceMap.put(\"dueDate\", UtilDateTime.getDayEnd(now, days));\n }\n createInvoiceMap.put(\"invoiceTypeId\", \"COMMISSION_INVOICE\");\n // start with INVOICE_IN_PROCESS, in the INVOICE_READY we can't change the invoice (or shouldn't be able to...)\n createInvoiceMap.put(\"statusId\", \"INVOICE_IN_PROCESS\");\n createInvoiceMap.put(\"currencyUomId\", invoice.getString(\"currencyUomId\"));\n createInvoiceMap.put(\"userLogin\", userLogin);\n // store the invoice first\n Map<String, Object> createInvoiceResult;\n try {\n createInvoiceResult = dispatcher.runSync(\"createInvoice\", createInvoiceMap);\n if (ServiceUtil.isError(createInvoiceResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionError\", locale), null, null, null);\n }\n } catch (GenericServiceException e) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionError\", locale), null, null, null);\n }\n String invoiceId = (String) createInvoiceResult.get(\"invoiceId\");\n // create the bill-from (or pay-to) contact mech as the primary PAYMENT_LOCATION of the party from the store\n GenericValue partyContactMechPurpose = null;\n try {\n partyContactMechPurpose = EntityQuery.use(delegator).from(\"PartyContactMechPurpose\")\n .where(\"partyId\", partyIdBillTo, \"contactMechPurposeTypeId\", \"BILLING_LOCATION\").queryFirst();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n if (partyContactMechPurpose != null) {\n GenericValue invoiceContactMech = delegator.makeValue(\"InvoiceContactMech\", UtilMisc.toMap(\n \"invoiceId\", invoiceId,\n \"contactMechId\", partyContactMechPurpose.getString(\"contactMechId\"),\n \"contactMechPurposeTypeId\", \"BILLING_LOCATION\"));\n toStore.add(invoiceContactMech);\n }\n try {\n partyContactMechPurpose = EntityQuery.use(delegator).from(\"PartyContactMechPurpose\")\n .where(\"partyId\", partyIdBillTo, \"contactMechPurposeTypeId\", \"PAYMENT_LOCATION\").queryFirst();\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n if (partyContactMechPurpose != null) {\n GenericValue invoiceContactMech = delegator.makeValue(\"InvoiceContactMech\", UtilMisc.toMap(\n \"invoiceId\", invoiceId,\n \"contactMechId\", partyContactMechPurpose.getString(\"contactMechId\"),\n \"contactMechPurposeTypeId\", \"PAYMENT_LOCATION\"));\n toStore.add(invoiceContactMech);\n }\n // create the item records\n for (Map<String, Object> commissionMap : commList) {\n BigDecimal elemAmount = ((BigDecimal) commissionMap.get(\"commission\")).multiply(appliedFraction);\n BigDecimal quantity = (BigDecimal) commissionMap.get(\"quantity\");\n String invoiceIdFrom = (String) commissionMap.get(\"invoiceId\");\n String invoiceItemSeqIdFrom = (String) commissionMap.get(\"invoiceItemSeqId\");\n elemAmount = elemAmount.setScale(DECIMALS, ROUNDING);\n Map<String, Object> resMap = null;\n try {\n resMap = dispatcher.runSync(\"createInvoiceItem\", UtilMisc.toMap(\"invoiceId\", invoiceId,\n \"productId\", commissionMap.get(\"productId\"),\n \"invoiceItemTypeId\", \"COMM_INV_ITEM\",\n \"quantity\", quantity,\n \"amount\", elemAmount,\n \"userLogin\", userLogin));\n if (ServiceUtil.isError(resMap)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionErrorItem\", locale), null, null, resMap);\n }\n resMap = dispatcher.runSync(\"createInvoiceItemAssoc\", UtilMisc.toMap(\"invoiceIdFrom\", invoiceIdFrom,\n \"invoiceItemSeqIdFrom\", invoiceItemSeqIdFrom,\n \"invoiceIdTo\", invoiceId,\n \"invoiceItemSeqIdTo\", resMap.get(\"invoiceItemSeqId\"),\n \"invoiceItemAssocTypeId\", \"COMMISSION_INVOICE\",\n \"partyIdFrom\", partyIdBillFrom,\n \"partyIdTo\", partyIdBillTo,\n \"quantity\", quantity,\n \"amount\", elemAmount,\n \"userLogin\", userLogin));\n if (ServiceUtil.isError(resMap)) {\n return ServiceUtil.returnError(ServiceUtil.getErrorMessage(resMap));\n }\n } catch (GenericServiceException e) {\n return ServiceUtil.returnError(e.getMessage());\n }\n }\n // store value objects\n try {\n delegator.storeAll(toStore);\n } catch (GenericEntityException e) {\n Debug.logError(e, \"Entity/data problem creating commission invoice: \" + e.toString(), MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingInvoiceCommissionEntityDataProblem\",\n UtilMisc.toMap(\"reason\", e.toString()), locale));\n }\n invoicesCreated.add(UtilMisc.<String, String>toMap(\"commissionInvoiceId\", invoiceId, \"salesRepresentative \", partyIdBillFrom));\n }\n String invCreated = Integer.toString(invoicesCreated.size());\n Map<String, Object> result = ServiceUtil.returnSuccess(UtilProperties.getMessage(RESOURCE,\n \"AccountingCommissionInvoicesCreated\",\n UtilMisc.toMap(\"invoicesCreated\", invCreated), locale));\n Debug.logInfo(\"Created Commission invoices for each commission receiving parties \"\n + invCreated, MODULE);\n result.put(\"invoicesCreated\", invoicesCreated);\n return result;\n }", "public void setInvoice(String invoice) {\n this.invoice = invoice;\n }", "@Override\r\n\tpublic List<InvoiceToPay> getInvoiceToPays(String count) {\n\t\tList<InvoiceToPay> invoiceToPays=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tinvoiceToPays=boardDao.getInvoiceToPays(count);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn invoiceToPays;\r\n\t}", "@GetMapping(\"/invoice-lines\")\n public List<InvoiceLinesDTO> getAllInvoiceLines() {\n log.debug(\"REST request to get all InvoiceLines\");\n return invoiceLinesService.findAll();\n }", "@Override\n\tpublic void prepareInvoice(){\n\t\tSystem.out.println(\"invoice prepared...\");\n\t}", "public interface modelPurchasesI {\r\n\t/***\r\n\t * ottiene l'id del record corrente\r\n\t * @return\r\n\t * un integer che contiene l'id\r\n\t */\r\n\tInteger getID();\r\n\t/***\r\n\t * salva la data dell'acquisto\r\n\t * @param data\r\n\t * data di tipo Object sql.date\r\n\t */\r\n void setDate(Date data);\r\n\t/***\r\n\t * settaggio dello sconto per questo acquisto\r\n\t * @param sconto\r\n\t * lo sconto passato come float\r\n\t */\r\n\tvoid setDiscount(float sconto);\r\n\t/***\r\n\t * settaggio del provider di questo acquisto\r\n\t * @param IDProvuder\r\n\t * ID del provider passato come Integer\r\n\t */\r\n\tvoid setProvider(modelProvidersI IDProvider);\r\n\t/***\r\n\t * settaggio del numero della recivuta per questo acquisto(lo stesso usato nello scontrino di questo acquisto)\r\n\t * @param nRicevuta\r\n\t * numero della recivuto passato come integer\r\n\t */\r\n\tvoid setNumberPaymentReceipt(int nRicevuta);\r\n\t/***\r\n\t * settaggio dell'iva per questo acquisto\r\n\t * @param iva\r\n\t * iva passato come float\r\n\t */\r\n\tvoid setIVA(float iva);\r\n\t\r\n\t/***\r\n\t * ottiene il numero della ricevuta dell'acquisto( lo stesso usato nello scontrino per questo acquisto)\r\n\t * @return\r\n\t * un int con il numero della ricevuta\r\n\t */\r\n\tint getNumberPaymentReceipt();\r\n\t/***\r\n\t * ottiene il fornitore di questo acquisto\r\n\t * @return\r\n\t * il fornitore\r\n\t */\r\n\tmodelProvidersI getProvider();\r\n\t/***\r\n\t * ottiene l'iva per questo acquisto\r\n\t * @return\r\n\t * l'iva\r\n\t */\r\n\tfloat getIva();\r\n\t/***\r\n\t * ottiene la data dell'acquisto\r\n\t * @return\r\n\t * una object sql.date che contiene la data dell'acquisto\r\n\t */\r\n\tDate getDate();\r\n\t/***\r\n\t * ottiene lo sconto per l'acquisto\r\n\t * @return\r\n\t * un float con lo sconto dell'acquisto\r\n\t */\r\n\tfloat getDiscount();\r\n\t/***\r\n\t * ottiene una lista con tutti i prodotti acquistati\r\n\t * @return\r\n\t * una lista con i prodotti acquistati altrimenti una lista vuota\r\n\t */\r\n\tList<transactionsProducts> purchasedProducts();\r\n\t/***\r\n\t * ottiene il totale speso per questo acquisto\r\n\t * @return\r\n\t * un double con il totale speso\r\n\t */\r\n\tDouble getTotalSpent();\r\n\t\r\n\t/***\r\n\t * metodo che salva ogni modifica/creazione di un acquisto. \r\n\t * @return\r\n\t * true se e andato a buon fine\r\n\t */\r\n\tboolean update();\r\n\t\r\n\t/***\r\n\t * eliminazione dell'accquisto corrente\r\n\t * @return\r\n\t * true se e andato a buon fine\r\n\t */\r\n\tboolean deletePurchase();\r\n\r\n\t/***\r\n\t * elenco di tutti gli acquisti realizzati\r\n\t * @return\r\n\t * una lista contenente tutti gli acquisti fatti\r\n\t */\r\n\tpublic static List<modelPurchasesI> purchasesList(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tDataBaseSearch query = DataBaseSearch.queryDaTabella(\"Acquisti\");\r\n\t\t\ttry {\r\n\t\t\t\treturn query.find().stream()\r\n\t\t\t\t\t\t.map(e -> new modelPurchases(e))\r\n\t\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}\r\n\t/***\r\n\t * ricerca di una ricevuta di acquisto tramite il numero\r\n\t * @param nRicevuta\r\n\t * numero della ricevuta passato come int\r\n\t * @return\r\n\t * l'acquisto realizzato altrimenti null\r\n\t */\r\n\tpublic static modelPurchasesI searchPurchase(int nRicevuta){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t.filter(p -> p.getNumberPaymentReceipt() == nRicevuta)\r\n\t\t\t\t.findFirst()\r\n\t\t\t\t.orElse(null);\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}\r\n\t/***\r\n\t * ottiene il report degli acquisti\r\n\t * @return\r\n\t * una lista contenente tutti gli acquisti ordinati in maniera decrescente in base alle spese altrimenti una lista vuota\r\n\t */\r\n\tpublic static List<modelPurchasesI> reportPurchases(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tComparator<modelPurchasesI> sort = (primo, secondo) -> Double.compare(primo.getTotalSpent(), secondo.getTotalSpent());\r\n\t\t\t\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t\t.sorted(sort)\r\n\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t}else\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}\r\n\t/***\r\n\t * creazione di un acquisto\r\n\t * @param data\r\n\t * data dell'acquisto\r\n\t * @param sconto\r\n\t * socnto dell'acquisto\r\n\t * @param iva\r\n\t * iva dell'acquisto\r\n\t * @param nRicevuta\r\n\t * numero della ricevuta\r\n\t * @param fornitore\r\n\t * fornitore dell'acquisto\r\n\t * @param prodotti\r\n\t * prodotti dell'acquisto\r\n\t * @return\r\n\t * true se creato altrimenti false\r\n\t */\r\n\tpublic static boolean builder(Date data, float sconto, float iva, int nRicevuta, modelProvidersI fornitore, List<transactionsProductsI> prodotti){\r\n\t\tif(modelUsersI.isLogged())\r\n\t\t{\r\n\t\t\tmodelPurchasesI temp = new modelPurchases();\r\n\t\t\ttemp.setProvider(fornitore);\r\n\t\t\ttemp.setDate(data);\r\n\t\t\ttemp.setDiscount(sconto);\r\n\t\t\ttemp.setIVA(iva);\r\n\t\t\t//salvataggio dei prodotti acquistati\r\n\t\t\tif(modelTransactionsI.transactionsProducts(nRicevuta, prodotti, false))\r\n\t\t\t\treturn temp.update();\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}\r\n\t\r\n}", "List<Invoice> getByDebtorIdOrderByDateDesc(int debtorId, Pageable page);", "public interface AccountSerialService extends BaseService<AccountSerialModel,AccountSerial>{\n\n\n /**\n * 分页查询记账明细\n * @param userId\n * @param accountType\n * @param tradeType\n * @param bookkeeping\n * @param page\n * @param orderBy\n * @param order\n * @return\n * @throws Exception\n */\n public Page queryForPage(Long userId, AccountType accountType, AccountTradeType tradeType, AccountTradeType bookkeeping, Page page, String orderBy,\n String order) throws Exception;\n\n}", "public JSONArray getGoodsReceiptsJsonMerged(HashMap<String, Object> request, List<GoodsReceipt> list, JSONArray jArr, AccountingHandlerDAO accountingHandlerDAOobj, accCurrencyDAO accCurrencyDAOobj, accGoodsReceiptDAO accGoodsReceiptobj, accAccountDAO accAccountDAOobj, accGoodsReceiptCMN accGoodsReceiptCommon, accTaxDAO accTaxObj) throws ServiceException {\n try {\n String companyid = (String) request.get(GoodsReceiptCMNConstants.COMPANYID);\n String currencyid = (String) request.get(GoodsReceiptCMNConstants.GCURRENCYID);\n// DateFormat userDateFormat = (DateFormat) request.get(Constants.userdf);\n DateFormat userDateFormat=null;\n if (request.containsKey(Constants.userdf) && request.get(Constants.userdf) != null) {\n userDateFormat = (DateFormat) request.get(Constants.userdf);\n }\n DateFormat df = (DateFormat) request.get(GoodsReceiptCMNConstants.DATEFORMAT);\n String only1099AccStr = (String) request.get(GoodsReceiptCMNConstants.ONLY1099ACC);\n DateFormat dateFormat=(DateFormat) authHandler.getDateOnlyFormat();\n List ll = null;\n /*\n * amoutinbase is used to calculate excnahnge rate for transaction \n */\n double amountInBase=0.0;\n KwlReturnObject extraprefresult = null;\n ExtraCompanyPreferences extraCompanyPreferences = null;\n if(!StringUtil.isNullOrEmpty(companyid)){\n extraprefresult = accountingHandlerDAOobj.getObject(ExtraCompanyPreferences.class.getName(), companyid);\n extraCompanyPreferences = extraprefresult != null ? (ExtraCompanyPreferences) extraprefresult.getEntityList().get(0) : null;\n }\n boolean isMalaysian = extraCompanyPreferences != null ? extraCompanyPreferences.getCompany().getCountry().getID().equalsIgnoreCase(\"137\") : false;\n KwlReturnObject curresult = accountingHandlerDAOobj.getObject(KWLCurrency.class.getName(), currencyid);\n KWLCurrency currency = (KWLCurrency) curresult.getEntityList().get(0);\n boolean isBadDebtInvoices = false;// for Malasian Company\n boolean isproductCategory=false;\n boolean isproductType = false;\n KwlReturnObject cmp = accountingHandlerDAOobj.getObject(Company.class.getName(), companyid);\n Company company = (Company) cmp.getEntityList().get(0);\n int countryid = company.getCountry() != null ? Integer.parseInt(company.getCountry().getID()) : 0;\n request.put(\"countryid\", countryid);\n if (request.containsKey(\"isBadDebtInvoices\") && request.get(\"isBadDebtInvoices\") != null) {\n isBadDebtInvoices = (Boolean) request.get(\"isBadDebtInvoices\");\n }\n if (request.containsKey(\"productCategoryid\") && request.get(\"productCategoryid\")!=null && !StringUtil.isNullOrEmpty((String) request.get(\"productCategoryid\"))) {\n isproductCategory = true;\n }\n if (request.containsKey(InvoiceConstants.productid) && request.get(InvoiceConstants.productid) != null && !StringUtil.isNullOrEmpty((String) request.get(InvoiceConstants.productid))) {\n isproductType = true;\n }\n int noOfInterval = Constants.DefaultNoOfIntervals;\n if(request.containsKey(\"noOfInterval\") && request.get(\"noOfInterval\") != null) {\n noOfInterval = request.get(\"noOfInterval\").toString().equals(\"\") ? Constants.DefaultNoOfIntervals : Integer.parseInt(request.get(\"noOfInterval\").toString());\n }\n\n double taxPercent = 0;\n boolean belongsTo1099 = false;\n boolean isAged = (request.containsKey(\"isAged\") && request.get(\"isAged\") != null) ? Boolean.parseBoolean(request.get(\"isAged\").toString()) : false;\n boolean isProduct = (request.containsKey(GoodsReceiptCMNConstants.PRODUCTID) && !StringUtil.isNullOrEmpty((String) request.get(GoodsReceiptCMNConstants.PRODUCTID))) ? true : false;\n boolean only1099Acc = (only1099AccStr != null ? Boolean.parseBoolean(only1099AccStr) : false);\n boolean ignoreZero = request.get(GoodsReceiptCMNConstants.IGNOREZERO) != null;\n boolean onlyAmountDue = request.get(GoodsReceiptCMNConstants.ONLYAMOUNTDUE) != null;\n boolean report = request.get(\"report\") != null;\n boolean isFixedAsset = request.containsKey(\"isFixedAsset\") ? (Boolean) request.get(\"isFixedAsset\") : false;\n boolean isConsignment = request.containsKey(\"isConsignment\") ? (Boolean) request.get(\"isConsignment\") : false;\n int duration = (request.containsKey(GoodsReceiptCMNConstants.DURATION) && request.get(GoodsReceiptCMNConstants.DURATION) != null) ? Integer.parseInt(request.get(GoodsReceiptCMNConstants.DURATION).toString()) : 30;\n int invoiceLinkedWithGRNStatus = (request.containsKey(\"invoiceLinkedWithGRNStatus\") && request.get(\"invoiceLinkedWithGRNStatus\") != null) ? Integer.parseInt(request.get(\"invoiceLinkedWithGRNStatus\").toString()) : 0;\n boolean isExport = (request.get(\"isExport\") == null) ? false : (Boolean) request.get(\"isExport\");\n\n Date startDate=null;\n if(request.containsKey(Constants.REQ_startdate) && request.get(Constants.REQ_startdate)!=null){\n try{\n startDate=dateFormat.parse(request.get(Constants.REQ_startdate).toString());\n }catch(Exception ex){\n startDate = null;\n }\n }\n String curDateString = \"\";\n Date curDate = null;\n boolean booleanAged = false;//Added for aged payable/receivable\n\n //Custom field details Maps for Global data\n HashMap<String, String> customFieldMap = new HashMap<String, String>();\n HashMap<String, String> customDateFieldMap = new HashMap<String, String>();\n\n HashMap<String, Object> fieldrequestParams = new HashMap();\n int moduleid=isFixedAsset ? Constants.Acc_FixedAssets_PurchaseInvoice_ModuleId :isConsignment?Constants.Acc_Consignment_GoodsReceipt_ModuleId: Constants.Acc_Vendor_Invoice_ModuleId;\n fieldrequestParams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid));\n fieldrequestParams.put(Constants.filter_values, Arrays.asList(companyid, moduleid));\n HashMap<String, String> replaceFieldMap = new HashMap<String, String>();\n HashMap<String, Integer> FieldMap = accAccountDAOobj.getFieldParamsCustomMap(fieldrequestParams, replaceFieldMap, customFieldMap, customDateFieldMap);\n\n //Custom field details Maps for Line Level data\n HashMap<String, Object> fieldrequestParamsRows = new HashMap();\n HashMap<String, String> replaceFieldMapRows = new HashMap();\n HashMap<String, String> customFieldMapRows = new HashMap();\n HashMap<String, String> customDateFieldMapRows = new HashMap();\n fieldrequestParamsRows.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, Constants.customcolumn));\n fieldrequestParamsRows.put(Constants.filter_values, Arrays.asList(companyid, moduleid, 1));\n HashMap<String, Integer> fieldMapRows = null;\n fieldMapRows = accAccountDAOobj.getFieldParamsCustomMap(fieldrequestParamsRows, replaceFieldMapRows, customFieldMapRows, customDateFieldMapRows);\n\n List InvoiceList=new ArrayList();\n String compids[] = Constants.Companyids_Chkl_And_Marubishi.split(\",\");\n boolean isFromChklorMarubishi = false;\n for (int cnt = 0; cnt < compids.length; cnt++) {\n String compid = compids[cnt];\n if (compid.equalsIgnoreCase(companyid)) {\n isFromChklorMarubishi = true;\n }\n }\n Calendar oneDayBeforeCal1 = Calendar.getInstance();\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n Calendar cal3 = Calendar.getInstance();\n Calendar cal4 = Calendar.getInstance();\n Calendar cal5 = Calendar.getInstance();\n Calendar cal6 = Calendar.getInstance();\n Calendar cal7 = Calendar.getInstance();\n Calendar cal8 = Calendar.getInstance();\n Calendar cal9 = Calendar.getInstance();\n Calendar cal10 = Calendar.getInstance();\n\n if (request.get(Constants.asOfDate) != null) {//Added for aged payable/receivable\n curDateString = (String) request.get(Constants.asOfDate);\n\n if (request.get(\"MonthlyAgeingCurrDate\") != null) {\n curDate = (Date) request.get(\"MonthlyAgeingCurrDate\");\n } else {\n curDate = df.parse(curDateString);\n }\n booleanAged = true;\n oneDayBeforeCal1.setTime(curDate);\n cal1.setTime(curDate);\n cal2.setTime(curDate);\n cal3.setTime(curDate);\n cal4.setTime(curDate);\n cal5.setTime(curDate);\n cal6.setTime(curDate);\n cal7.setTime(curDate);\n cal8.setTime(curDate);\n cal9.setTime(curDate);\n cal10.setTime(curDate);\n oneDayBeforeCal1.add(Calendar.DAY_OF_YEAR, -1); //Need to verify in multiple cases, then only take action on it\n cal2.add(Calendar.DAY_OF_YEAR, -duration);\n cal3.add(Calendar.DAY_OF_YEAR, -(duration * 2));\n cal4.add(Calendar.DAY_OF_YEAR, -(duration * 3));\n cal5.add(Calendar.DAY_OF_YEAR, -(duration * 4));\n cal6.add(Calendar.DAY_OF_YEAR, -(duration * 5));\n cal7.add(Calendar.DAY_OF_YEAR, -(duration * 6));\n cal8.add(Calendar.DAY_OF_YEAR, -(duration * 7));\n cal9.add(Calendar.DAY_OF_YEAR, -(duration * 8));\n cal10.add(Calendar.DAY_OF_YEAR, -(duration * 9));\n }\n\n Date oneDayBeforeCal1Date = null;\n Date cal1Date = null;\n Date cal2Date = null;\n Date cal3Date = null;\n Date cal4Date = null;\n Date cal5Date = null;\n Date cal6Date = null;\n Date cal7Date = null;\n Date cal8Date = null;\n Date cal9Date = null;\n Date cal10Date = null;\n\n String oneDayBeforeCal1String = dateFormat.format(oneDayBeforeCal1.getTime());\n oneDayBeforeCal1Date = dateFormat.parse(oneDayBeforeCal1String);\n\n String cal1String = dateFormat.format(cal1.getTime());\n cal1Date = dateFormat.parse(cal1String);\n\n String cal2String = dateFormat.format(cal2.getTime());\n cal2Date = dateFormat.parse(cal2String);\n\n String cal3String = dateFormat.format(cal3.getTime());\n cal3Date = dateFormat.parse(cal3String);\n\n String cal4String = dateFormat.format(cal4.getTime());\n cal4Date = dateFormat.parse(cal4String);\n\n String cal5String = dateFormat.format(cal5.getTime());\n cal5Date = dateFormat.parse(cal5String);\n\n String cal6String = dateFormat.format(cal6.getTime());\n cal6Date = dateFormat.parse(cal6String);\n\n String cal7String = dateFormat.format(cal7.getTime());\n cal7Date = dateFormat.parse(cal7String);\n\n String cal8String = dateFormat.format(cal8.getTime());\n cal8Date = dateFormat.parse(cal8String);\n\n String cal9String = dateFormat.format(cal9.getTime());\n cal9Date = dateFormat.parse(cal9String);\n\n String cal10String = dateFormat.format(cal10.getTime());\n cal10Date = dateFormat.parse(cal10String);\n\n double amountdue1 = 0;\n double amountdue2 = 0;\n double amountdue3 = 0;\n double amountdue4 = 0;\n double amountdue5 = 0;\n double amountdue6 = 0;\n double amountdue7 = 0;\n double amountdue8 = 0;\n double amountdue9 = 0;\n double amountdue10 = 0;\n double amountdue11 = 0;\n// double accruedbalance = 0;\n if (list != null && !list.isEmpty()) {\n for (Object objectArr : list) {\n Object[] oj = (Object[]) objectArr;\n String invid = oj[0].toString();\n //Withoutinventory 0 for normal, 1 for billing\n boolean withoutinventory = Boolean.parseBoolean(oj[1].toString());\n {\n amountdue1 = amountdue2 = amountdue3 = amountdue4 = amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n KwlReturnObject objItr = accountingHandlerDAOobj.getObject(GoodsReceipt.class.getName(), invid);\n GoodsReceipt gReceipt = (GoodsReceipt) objItr.getEntityList().get(0);\n\n \n \n \n /*------- Code for Loading Data in Invoice Grid as per Applied filter of PI linking with GR--------- */\n if (invoiceLinkedWithGRNStatus != 0) {\n boolean invoiceLinkedWithGRNStatusFilter = false;\n\n if (invoiceLinkedWithGRNStatus == 11) {//When PI is fully received\n invoiceLinkedWithGRNStatusFilter = isInvoiceFullyLinkedWithGR(gReceipt);\n } else if (invoiceLinkedWithGRNStatus == 12) {//When PI is not linked with GR\n invoiceLinkedWithGRNStatusFilter = isInvoiceNotLinkedWithAnyGR(gReceipt);\n } else if (invoiceLinkedWithGRNStatus == 13) {//When PI is partially received\n invoiceLinkedWithGRNStatusFilter = isInvoicePartiallyLinkedWithGR(gReceipt);\n }\n /*--------Only relevant Data will load as per applied filter--------- */\n if (!invoiceLinkedWithGRNStatusFilter) {\n continue;\n }\n\n }\n\n \n //Below If Block code is used to remove duplicate invoice id's when filter on the basis of Product category or Product name\n if (isproductCategory || isproductType) {\n if (InvoiceList.contains(gReceipt.getID())) {\n continue;\n } else {\n InvoiceList.add(gReceipt.getID());\n }\n }\n JournalEntry je = null;\n JournalEntryDetail d = null;\n if (gReceipt.isNormalInvoice()) {\n je = gReceipt.getJournalEntry();\n d = gReceipt.getVendorEntry();\n }\n\n double invoiceOriginalAmt = 0d;\n double externalCurrencyRate = 0d;\n boolean isopeningBalanceInvoice = gReceipt.isIsOpeningBalenceInvoice();\n Date creationDate = null;\n\n currencyid = (gReceipt.getCurrency() == null ? currency.getCurrencyID() : gReceipt.getCurrency().getCurrencyID());\n Account account = null;\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n KwlReturnObject accObjItr = accountingHandlerDAOobj.getObject(Account.class.getName(), gReceipt.getVendor().getAccount().getID());\n account = (Account) accObjItr.getEntityList().get(0);\n externalCurrencyRate = gReceipt.getExchangeRateForOpeningTransaction();\n creationDate = gReceipt.getCreationDate();\n invoiceOriginalAmt = gReceipt.getOriginalOpeningBalanceAmount();\n } else {\n account = d.getAccount();\n externalCurrencyRate = je.getExternalCurrencyRate();\n JSONObject jObj = extraCompanyPreferences.getColumnPref() != null ? new JSONObject(extraCompanyPreferences.getColumnPref()) : new JSONObject();\n boolean isPostingDateCheck = false;\n if (!StringUtil.isNullObject(jObj) && jObj.has(Constants.IS_POSTING_DATE_CHECK) && jObj.get(Constants.IS_POSTING_DATE_CHECK) != null && jObj.optBoolean(Constants.IS_POSTING_DATE_CHECK, false)) {\n isPostingDateCheck = true;\n }\n if(isPostingDateCheck){\n creationDate = gReceipt.getCreationDate();\n }else{\n creationDate = je.getEntryDate();\n }\n invoiceOriginalAmt = d.getAmount();\n }\n double amountdue = 0,amountdueinbase = 0, deductDiscount = 0,amountDueOriginal=0.0;\n if (gReceipt.isIsExpenseType()) {\n if(Constants.InvoiceAmountDueFlag && !isAged){\n ll = accGoodsReceiptCommon.getUpdatedExpGRAmountDue(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getExpGRAmountDue(request, gReceipt);\n amountdueinbase = (Double) ll.get(5);\n }\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n } else {\n if (gReceipt.isIsOpeningBalenceInvoice() && !gReceipt.isNormalInvoice()) {\n ll = new ArrayList();\n ll.add(gReceipt.getOriginalOpeningBalanceAmount());\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n ll.add(\"\");\n ll.add(false);\n ll.add(0.0);\n ll.add(gReceipt.getOpeningBalanceAmountDue());\n } else {\n if (Constants.InvoiceAmountDueFlag && !isAged) {\n ll = accGoodsReceiptCommon.getInvoiceDiscountAmountInfo(request, gReceipt);\n } else {\n ll = accGoodsReceiptCommon.getGRAmountDue(request, gReceipt);\n amountdueinbase = (Double) ll.get(6);\n }\n }\n\n amountdue = (Double) ll.get(1);\n belongsTo1099 = (Boolean) ll.get(3);\n deductDiscount = (Double) ll.get(4);\n amountDueOriginal = (Double) ll.get(5);\n }\n if (onlyAmountDue && authHandler.round(amountdue, companyid) == 0 || (only1099Acc && !belongsTo1099)) {//remove //belongsTo1099&&gReceipt.isIsExpenseType()\\\\ in case of viewing all accounts. [PS]\n continue;\n }\n if ((ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n continue;\n }\n int isReval = 0;\n if (report) {\n KwlReturnObject brdAmt = accGoodsReceiptobj.getRevalFlag(gReceipt.getID());\n List reval = brdAmt.getEntityList();\n if (!reval.isEmpty() && (Long) reval.get(0) > 0) {\n isReval = 1;\n }\n }\n\n if (request.containsKey(\"excludeInvoiceId\") && request.get(\"excludeInvoiceId\") != null) {\n String excludeInvoiceId = (String) request.get(\"excludeInvoiceId\");\n if (gReceipt.getGoodsReceiptNumber().equals(excludeInvoiceId)) {\n continue;\n }\n }\n Vendor vendor=gReceipt.getVendor();\n HashMap<String, Object> hashMap = new HashMap<>();\n hashMap.put(\"invoiceID\", gReceipt.getID());\n hashMap.put(\"companyid\", companyid);\n KwlReturnObject object = accInvoiceDAOobj.getinvoiceDocuments(hashMap);\n int attachemntcount = object.getRecordTotalCount();\n com.krawler.utils.json.base.JSONObject obj = new com.krawler.utils.json.base.JSONObject();\n obj.put(GoodsReceiptCMNConstants.BILLID, gReceipt.getID());\n obj.put(\"isdropshipchecked\", gReceipt.isIsDropshipDocument());\n obj.put(Constants.isDraft, gReceipt.isIsDraft());\n boolean isForTemplate = (request.containsKey(\"isForTemplate\") && Boolean.parseBoolean(request.get(\"isForTemplate\").toString()))?true:false;\n //KwlReturnObject cmp = accountingHandlerDAOobj.getObject(Company.class.getName(), companyid);\n // Company company = (Company) cmp.getEntityList().get(0);\n // int countryid = company.getCountry() != null ? Integer.parseInt(company.getCountry().getID()) : 0;\n // Comment this code because get Company object availble for method\n\n String landedInvoice = accProductObj.consignmentInvoice(gReceipt.getID(), companyid);\n\n \n if (Constants.indian_country_id == countryid) {\n List<ExciseDetailsInvoice> ed = null;\n if (!isForTemplate) {\n if (extraCompanyPreferences.isExciseApplicable()) {\n KwlReturnObject exciseDetails = accGoodsReceiptobj.getExciseDetails(gReceipt.getID());\n// if (!exciseDetails.getEntityList().isEmpty()){\n ed = exciseDetails.getEntityList();\n// }\n }\n if (extraCompanyPreferences.isExciseApplicable() && ed.size() > 0) {\n if (isFixedAsset) {\n obj.put(\"assetExciseid\", ed.get(0).getId());\n } else {\n obj.put(\"exciseDetailid\", ed.get(0).getId());\n }\n obj.put(\"suppliers\", ed.get(0).getSupplier());\n obj.put(\"supplierTINSalesTAXNo\", ed.get(0).getSupplierTINSalesTaxNo());\n obj.put(\"supplierExciseRegnNo\", ed.get(0).getSupplierExciseRegnNo());\n obj.put(\"cstnumber\", ed.get(0).getCstnumber());\n obj.put(\"supplierRange\", ed.get(0).getSupplierRange());\n obj.put(\"supplierCommissionerate\", ed.get(0).getSupplierCommissioneRate());\n obj.put(\"supplierAddress\", ed.get(0).getSupplierAddress());\n obj.put(\"supplierImporterExporterCode\", ed.get(0).getSupplierImporterExporterCode());\n obj.put(\"supplierDivision\", ed.get(0).getSupplierDivision());\n obj.put(\"manufacturername\", ed.get(0).getManufacturerName());\n obj.put(\"manufacturerExciseRegnNo\", ed.get(0).getManufacturerExciseregnNo());\n obj.put(\"manufacturerRange\", ed.get(0).getManufacturerRange());\n obj.put(\"manufacturerCommissionerate\", ed.get(0).getManufacturerCommissionerate());\n obj.put(\"manufacturerDivision\", ed.get(0).getManufacturerDivision());\n obj.put(\"manufacturerAddress\", ed.get(0).getManufacturerAddress());\n obj.put(\"manufacturerImporterExporterCode\", ed.get(0).getManufacturerImporterexporterCode());\n obj.put(\"supplierState\", ed.get(0).getSupplierstate());\n obj.put(\"registrationType\", ed.get(0).getRegistrationType());\n obj.put(\"UnitName\", ed.get(0).getUnitname());\n obj.put(\"ECCNo\", ed.get(0).getECCNo());\n obj.put(\"isExciseInvoiceWithTemplate\", (!ed.get(0).getRegistrationType().equals(\"\") || !ed.get(0).getUnitname().equals(\"\") || !ed.get(0).getECCNo().equals(\"\")) ? true : false);\n }\n HashMap tmpHashMap = new HashMap();\n tmpHashMap.put(\"moduleRecordId\", invid);\n tmpHashMap.put(\"companyid\", companyid);\n KwlReturnObject exciseTemp = accountingHandlerDAOobj.getExciseTemplatesMap(tmpHashMap);\n if (exciseTemp != null && exciseTemp.getEntityList().size() > 0) {\n ExciseDetailsTemplateMap moduleTemp = (ExciseDetailsTemplateMap) exciseTemp.getEntityList().get(0);\n if (moduleTemp != null) {\n// obj.put(\"manufacturerType\", moduleTemp.getManufacturerType());\n obj.put(\"registrationType\", moduleTemp.getRegistrationType());\n obj.put(\"UnitName\", moduleTemp.getUnitname());\n obj.put(\"ECCNo\", moduleTemp.getECCNo());\n }\n }\n obj.put(\"vvattin\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getVATTINnumber())?gReceipt.getVendor().getVATTINnumber():\"\");\n obj.put(\"vcsttin\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getCSTTINnumber())?gReceipt.getVendor().getCSTTINnumber():\"\");\n obj.put(\"veccno\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getECCnumber())?gReceipt.getVendor().getECCnumber():\"\");\n obj.put(\"vservicetaxregno\", !StringUtil.isNullOrEmpty(gReceipt.getVendor().getSERVICEnumber())?gReceipt.getVendor().getSERVICEnumber():\"\");\n obj.put(\"vattinno\", !StringUtil.isNullOrEmpty(vendor.getVATTINnumber())?vendor.getVATTINnumber():\"\");\n obj.put(\"csttinno\", !StringUtil.isNullOrEmpty(vendor.getCSTTINnumber())?vendor.getCSTTINnumber():\"\");\n obj.put(\"eccno\", !StringUtil.isNullOrEmpty(vendor.getECCnumber())?vendor.getECCnumber():\"\");\n obj.put(\"panno\", !StringUtil.isNullOrEmpty(vendor.getPANnumber())?vendor.getPANnumber():\"\");\n obj.put(\"servicetaxno\", !StringUtil.isNullOrEmpty(vendor.getSERVICEnumber())?vendor.getSERVICEnumber():\"\");\n obj.put(\"tanno\", !StringUtil.isNullOrEmpty(vendor.getTANnumber())?vendor.getTANnumber():\"\");\n obj.put(\"formtypeid\", !StringUtil.isNullOrEmpty(gReceipt.getFormtype()) ? gReceipt.getFormtype() : 0);\n obj.put(\"gtaapplicable\", gReceipt.isGtaapplicable());\n obj.put(\"gstapplicable\", gReceipt.isIsIndGSTApplied());\n obj.put(\"isInterstateParty\", gReceipt.getVendor().isInterstateparty());\n obj.put(\"formseriesno\", !StringUtil.isNullOrEmpty(gReceipt.getFormseriesno()) ? gReceipt.getFormseriesno() : \"\");\n obj.put(\"formno\", !StringUtil.isNullOrEmpty(gReceipt.getFormno()) ? gReceipt.getFormno() : \"\");\n obj.put(\"formdate\", gReceipt.getFormdate());\n obj.put(\"formamount\", gReceipt.getFormamount());\n if (!StringUtil.isNullOrEmpty(gReceipt.getFormstatus())) {\n if (gReceipt.getFormstatus().equals(\"1\")) {\n obj.put(\"formstatus\", \"NA\");\n } else if (gReceipt.getFormstatus().equals(\"2\")) {\n obj.put(\"formstatus\", \"Pending\");\n } else if (gReceipt.getFormstatus().equals(\"3\")) {\n obj.put(\"formstatus\", \"Submitted\");\n }\n } else{\n obj.put(\"formstatus\", \"NA\");\n }\n } else {\n if (company.getCountry() != null && Integer.parseInt(company.getCountry().getID()) == Constants.indian_country_id && extraCompanyPreferences.isExciseApplicable()) {\n obj.put(\"suppliers\", vendor.getName());\n obj.put(\"supplierCommissionerate\", vendor.getCommissionerate() != null ? vendor.getCommissionerate() : \"\");\n obj.put(\"supplierDivision\", vendor.getDivision() != null ? vendor.getDivision() : \"\");\n obj.put(\"supplierRange\", vendor.getRangecode() != null ? vendor.getRangecode() : \"\");\n obj.put(\"supplierImporterExporterCode\", vendor.getIECNo() != null ? vendor.getIECNo() : \"\");\n obj.put(\"cstnumber\", vendor.getCSTTINnumber() != null ? vendor.getCSTTINnumber() : \"\");\n obj.put(\"supplierTINSalesTAXNo\", vendor.getVATTINnumber() != null ? vendor.getVATTINnumber() : \"\");\n obj.put(\"supplierExciseRegnNo\", vendor.getECCnumber() != null ? vendor.getECCnumber() : \"\");\n\n HashMap<String, Object> addrRequestParams = new HashMap<String, Object>();\n addrRequestParams.put(\"vendorid\", vendor.getID());\n addrRequestParams.put(\"companyid\", companyid);\n addrRequestParams.put(\"isBillingAddress\", true);//only billing address \n KwlReturnObject addressResult = accountingHandlerDAOobj.getVendorAddressDetails(addrRequestParams);\n if (!addressResult.getEntityList().isEmpty()) {\n List<VendorAddressDetails> casList = addressResult.getEntityList();\n if (casList.size() > 0) {\n VendorAddressDetails vas = (VendorAddressDetails) casList.get(0);\n String fullAddress = \"\";\n if (!StringUtil.isNullOrEmpty(vas.getAddress())) {\n fullAddress += vas.getAddress() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getCity())) {\n fullAddress += vas.getCity() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getState())) {\n fullAddress += vas.getState() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(vas.getCountry())) {\n fullAddress += vas.getCountry() + \", \";\n }\n if (!StringUtil.isNullOrEmpty(fullAddress)) {\n fullAddress = fullAddress.substring(0, fullAddress.length() - 2);\n }\n obj.put(\"supplierAddress\", fullAddress);\n obj.put(\"supplierState\", vas.getState() != null ? vas.getState() : \"\");\n }\n }\n }\n }\n /**\n * Get Module template and its mapped Unit details for company if Line level term flag ON \n */\n if(extraCompanyPreferences!=null && extraCompanyPreferences.getLineLevelTermFlag()==1 && isForTemplate){\n HashMap<String, Object> ModuleTempParams = new HashMap<>();\n ModuleTempParams.put(\"modulerecordid\", invid);\n ModuleTempParams.put(\"companyid\", companyid);\n /** Get Module template from invoice id . In module template invoice id add as modulerecordid */\n KwlReturnObject ModuleTempObj = accountingHandlerDAOobj.getModuleTemplates(ModuleTempParams);\n if(ModuleTempObj!=null && ModuleTempObj.getEntityList().size() > 0){\n ModuleTemplate moduleTemp = (ModuleTemplate) ModuleTempObj.getEntityList().get(0);\n obj.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n\n HashMap tmpHashMap = new HashMap();\n tmpHashMap.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n tmpHashMap.put(Constants.companyKey, companyid);\n /* Get Company Unit details from companyunitid mapped with module template */\n KwlReturnObject exciseTemp = accountingHandlerDAOobj.getExciseTemplatesMap(tmpHashMap);\n if (exciseTemp != null && exciseTemp.getEntityList()!=null && exciseTemp.getEntityList().size() > 0) {\n ExciseDetailsTemplateMap ExcisemoduleTemp = (ExciseDetailsTemplateMap) exciseTemp.getEntityList().get(0);\n if (ExcisemoduleTemp != null) {\n obj.put(\"registrationType\", ExcisemoduleTemp.getRegistrationType());\n obj.put(\"UnitName\", ExcisemoduleTemp.getUnitname());\n obj.put(\"ECCNo\", ExcisemoduleTemp.getECCNo());\n }\n }\n }\n }\n if (extraCompanyPreferences.isExciseApplicable()) {\n KwlReturnObject grDetailsRes = accountingHandlerDAOobj.getObject(GoodsReceipt.class.getName(), gReceipt.getID());\n GoodsReceipt goodsReceiptDetail = (GoodsReceipt) grDetailsRes.getEntityList().get(0);\n if (goodsReceiptDetail.isIsExciseInvoice()) {\n Set<GoodsReceiptDetail> rows = goodsReceiptDetail.getRows();\n for (GoodsReceiptDetail goodsReceiptDetailsRow : rows) {\n KwlReturnObject result = accGoodsReceiptobj.getSupplierExciseDetailsMapping(goodsReceiptDetailsRow.getID(), companyid); //while deleting GR check wether it is used in Consignment Cost\n list = result.getEntityList();\n if (list != null && !list.isEmpty()) {\n obj.put(\"isSupplierLinekd\", true);\n break;\n }\n }\n }\n }\n /**\n * Put GST document history.\n */\n if (gReceipt.getCompany().getCountry().getID().equalsIgnoreCase(\"\" + Constants.indian_country_id)) {\n obj.put(\"refdocid\", gReceipt.getID());\n fieldDataManagercntrl.getGSTDocumentHistory(obj);\n }\n /**\n * Put Merchant Exporter Check\n */\n obj.put(Constants.isMerchantExporter, gReceipt.isIsMerchantExporter());\n\n \n \n }\n if (company.getCountry() != null && Integer.parseInt(company.getCountry().getID()) == Constants.indian_country_id && extraCompanyPreferences.isTDSapplicable()) {\n //For Indian Country related fields\n obj.put(\"TotalAdvanceTDSAdjustmentAmt\", gReceipt.getTotalAdvanceTDSAdjustmentAmt());\n obj.put(\"natureOfPayment\", gReceipt.getVendor() != null ? gReceipt.getVendor().getNatureOfPayment() : \"\");\n obj.put(\"deducteetype\", gReceipt.getVendor() != null ? gReceipt.getVendor().getDeducteeType() : \"\");\n obj.put(\"residentialstatus\", gReceipt.getVendor() != null ? gReceipt.getVendor().getResidentialstatus() : \"\");\n String tdsPayableAccount = \"\";\n MasterItem masterItem2 = null;\n if (!StringUtil.isNullOrEmpty(vendor.getNatureOfPayment())) {\n KwlReturnObject catresult = accountingHandlerDAOobj.getObject(MasterItem.class.getName(), vendor.getNatureOfPayment());\n masterItem2 = (MasterItem) catresult.getEntityList().get(0);\n obj.put(\"natureOfPaymentname\", masterItem2.getCode() + \" - \" + masterItem2.getValue());//INDIAN Company for TDS Calculation\n tdsPayableAccount = masterItem2.getAccID();\n } else {\n obj.put(\"natureOfPaymentname\", \"\");\n }\n if (!StringUtil.isNullOrEmpty(vendor.getDeducteeType())) {\n KwlReturnObject catresult = accountingHandlerDAOobj.getObject(MasterItem.class.getName(), vendor.getDeducteeType());\n masterItem2 = (MasterItem) catresult.getEntityList().get(0);\n obj.put(\"deducteetypename\", (masterItem2!=null)?masterItem2.getValue():\"\");//INDIAN Company for TDS Calculation in Make Payment\n } else {\n obj.put(\"deducteetypename\", \"\");\n }\n obj.put(\"tdsPayableAccount\", tdsPayableAccount);\n }\n\n \n HashMap<String, Object> ModuleTempParams = new HashMap<>();\n ModuleTempParams.put(\"modulerecordid\", invid);\n ModuleTempParams.put(\"companyid\", companyid);\n /**\n * Get Module template from invoice id . In module\n * template invoice id add as modulerecordid\n */\n KwlReturnObject ModuleTempObj = accountingHandlerDAOobj.getModuleTemplates(ModuleTempParams);\n if (ModuleTempObj != null && ModuleTempObj.getEntityList().size() > 0) {\n ModuleTemplate moduleTemp = (ModuleTemplate) ModuleTempObj.getEntityList().get(0);\n obj.put(\"companyunitid\", moduleTemp.getCompanyUnitid());\n obj.put(\"populateproducttemplate\", moduleTemp.isPopulateproductintemp());\n obj.put(\"populatecustomertemplate\", moduleTemp.isPopulatecustomerintemp());\n obj.put(\"populateautodointemp\", moduleTemp.isPopulateautodointemp());\n }\n// MasterItem gstRegistrationType = vendor != null ? vendor.getGSTRegistrationType() : null;\n// if (gstRegistrationType != null && gstRegistrationType.getDefaultMasterItem() != null) {\n// obj.put(\"GSTINRegTypeDefaultMstrID\", gstRegistrationType.getDefaultMasterItem().getID());\n// }\n obj.put(\"tdsrate\", gReceipt.getTdsRate());\n obj.put(\"tdsamount\", gReceipt.getTdsAmount());\n obj.put(\"tdsmasterrateruleid\", gReceipt.getTdsMasterRateRuleId());\n obj.put(\"isInterstateParty\", (gReceipt.getVendor() !=null ? gReceipt.getVendor().isInterstateparty() : false));\n obj.put(\"isOpeningBalanceTransaction\", gReceipt.isIsOpeningBalenceInvoice());\n obj.put(\"isExciseInvoice\", gReceipt.isIsExciseInvoice());\n obj.put(\"defaultnatureofpurchase\", gReceipt.getDefaultnatureOfPurchase());\n obj.put(\"manufacturertype\", gReceipt.getManufacturerType());\n obj.put(\"isNormalTransaction\", gReceipt.isNormalInvoice());\n obj.put(\"parentinvoiceid\", gReceipt.getParentInvoice()!=null?gReceipt.getParentInvoice().getID():\"\");\n obj.put(\"companyid\", gReceipt.getCompany().getCompanyID());\n obj.put(\"companyname\", gReceipt.getCompany().getCompanyName());\n obj.put(\"withoutinventory\", withoutinventory);\n obj.put(Constants.HAS_ACCESS, vendor.isActivate());\n obj.put(GoodsReceiptCMNConstants.PERSONID,vendor == null ? account.getID() : vendor.getID());\n obj.put(GoodsReceiptCMNConstants.ALIASNAME, vendor == null ? \"\" : vendor.getAliasname());\n obj.put(GoodsReceiptCMNConstants.PERSONEMAIL, vendor == null ? \"\" : vendor.getEmail());\n obj.put(\"code\", vendor == null ? \"\" : vendor.getAcccode());\n obj.put(GoodsReceiptCMNConstants.BILLNO, gReceipt.getGoodsReceiptNumber());\n obj.put(GoodsReceiptCMNConstants.CURRENCYID, currencyid);\n obj.put(GoodsReceiptCMNConstants.CURRENCYSYMBOL, (gReceipt.getCurrency() == null ? currency.getSymbol() : gReceipt.getCurrency().getSymbol()));\n obj.put(\"currencyCode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"currencycode\", (gReceipt.getCurrency() == null ? currency.getCurrencyCode() : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(GoodsReceiptCMNConstants.CURRENCYNAME, (gReceipt.getCurrency() == null ? currency.getName() : gReceipt.getCurrency().getName()));\n obj.put(GoodsReceiptCMNConstants.COMPANYADDRESS, gReceipt.getCompany().getAddress());\n obj.put(GoodsReceiptCMNConstants.COMPANYNAME, gReceipt.getCompany().getCompanyName());\n// KwlReturnObject bAmt = accCurrencyDAOobj.getBaseToCurrencyAmount(request, 1.0, currencyid, creationDate, 0);\n KwlReturnObject bAmt = accCurrencyDAOobj.getBaseToCurrencyAmount(request, 1.0, currencyid, gReceipt.getCreationDate(), 0);\n obj.put(GoodsReceiptCMNConstants.OLDCURRENCYRATE, bAmt.getEntityList().get(0));\n obj.put(GoodsReceiptCMNConstants.BILLTO, gReceipt.getBillFrom());\n obj.put(GoodsReceiptCMNConstants.ISEXPENSEINV, gReceipt.isIsExpenseType());\n obj.put(GoodsReceiptCMNConstants.SHIPTO, gReceipt.getShipFrom());\n obj.put(GoodsReceiptCMNConstants.JOURNALENTRYID, je != null ? je.getID() : \"\");\n obj.put(GoodsReceiptCMNConstants.EXTERNALCURRENCYRATE, externalCurrencyRate);\n obj.put(GoodsReceiptCMNConstants.ENTRYNO, je != null ? je.getEntryNumber() : \"\");\n obj.put(GoodsReceiptCMNConstants.DATE, df.format(creationDate));\n obj.put(GoodsReceiptCMNConstants.SHIPDATE, gReceipt.getShipDate() == null ? \"\" : df.format(gReceipt.getShipDate()));\n obj.put(GoodsReceiptCMNConstants.DUEDATE, df.format(gReceipt.getDueDate()));\n obj.put(GoodsReceiptCMNConstants.PERSONNAME, vendor == null ? account.getName() : vendor.getName());\n obj.put(\"personcode\", vendor == null ? (account.getAcccode()==null?\"\":account.getAcccode()) : (vendor.getAcccode()==null?\"\":vendor.getAcccode()));\n obj.put(GoodsReceiptCMNConstants.PERSONINFO, vendor == null ? (account.getAcccode()==null?\"\":account.getAcccode()) : (vendor.getName()+\"(\"+vendor.getAcccode()+\")\"));\n obj.put(\"agent\", gReceipt.getMasterAgent() == null ? \"\" : gReceipt.getMasterAgent().getID());\n obj.put(\"agentname\", gReceipt.getMasterAgent() == null ? \"\" : gReceipt.getMasterAgent().getValue());\n obj.put(GoodsReceiptCMNConstants.MEMO, gReceipt.getMemo());\n obj.put(\"posttext\", gReceipt.getPostText());\n obj.put(\"shiplengthval\", gReceipt.getShiplength());\n obj.put(\"invoicetype\", gReceipt.getInvoicetype());\n obj.put(\"purchaseinvoicetype\",gReceipt.isIsExpenseType() ? \"Expense\" : \"Product\");\n obj.put(GoodsReceiptCMNConstants.TERMNAME, vendor == null ? \"\" : ((vendor.getDebitTerm() == null) ? \"\" : vendor.getDebitTerm().getTermname()));\n obj.put(GoodsReceiptCMNConstants.DELETED, gReceipt.isDeleted());\n obj.put(GoodsReceiptCMNConstants.TAXINCLUDED, gReceipt.getTax() == null ? false : true);\n obj.put(GoodsReceiptCMNConstants.TAXID, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getID());\n// obj.put(GoodsReceiptCMNConstants.TAXNAME, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getName());\n obj.put(GoodsReceiptCMNConstants.ExchangeRate, \"1 \"+currency.getCurrencyCode()+\" = \"+externalCurrencyRate+\" \"+(gReceipt.getCurrency() == null ? \"\" : gReceipt.getCurrency().getCurrencyCode()));\n obj.put(\"status\", gReceipt.isIsOpenInGR()?\"Open\":\"Closed\");\n obj.put(\"amountDueStatus\", gReceipt.isIsOpenPayment()? \"Open\" : \"Closed\");\n obj.put(\"isTDSApplicable\", gReceipt.isIsTDSApplicable());// TDS Applicable Flag where at time of creating invoice TDS Applicable or not\n obj.put(Constants.SUPPLIERINVOICENO, gReceipt.getSupplierInvoiceNo()!=null? gReceipt.getSupplierInvoiceNo():\"\");\n obj.put(Constants.importExportDeclarationNo, gReceipt.getImportDeclarationNo()!=null? gReceipt.getImportDeclarationNo():\"\");\n obj.put(Constants.IsRoundingAdjustmentApplied, gReceipt.isIsRoundingAdjustmentApplied());\n obj.put(Constants.isCreditable, isExport ? (gReceipt.isIsCreditable() ? \"Yes\" : \"No\") : gReceipt.isIsCreditable());\n\n if (!StringUtil.isNullObject(gReceipt.getBillingShippingAddresses())) {\n obj.put(\"billingAddContactPerson\", gReceipt.getBillingShippingAddresses().getBillingContactPerson() != null ? gReceipt.getBillingShippingAddresses().getBillingContactPerson() : \"\");\n obj.put(\"shippingAddContactPerson\", gReceipt.getBillingShippingAddresses().getShippingContactPerson() != null ? gReceipt.getBillingShippingAddresses().getShippingContactPerson() : \"\");\n obj.put(\"billingAddContactNo\", gReceipt.getBillingShippingAddresses().getBillingContactPersonNumber() != null ? gReceipt.getBillingShippingAddresses().getBillingContactPersonNumber() : \"\");\n obj.put(\"shippingAddContactNo\", gReceipt.getBillingShippingAddresses().getShippingContactPersonNumber() != null ? gReceipt.getBillingShippingAddresses().getShippingContactPersonNumber() : \"\");\n obj.put(\"BillingAddEmail\", gReceipt.getBillingShippingAddresses().getBillingEmail() != null ? gReceipt.getBillingShippingAddresses().getBillingEmail() : \"\");\n obj.put(\"shippingAddEmail\", gReceipt.getBillingShippingAddresses().getShippingEmail() != null ? gReceipt.getBillingShippingAddresses().getShippingEmail() : \"\");\n } else {\n obj.put(\"billingAddContactPerson\", \"\");\n obj.put(\"shippingAddContactPerson\", \"\");\n obj.put(\"billingAddContactNo\", \"\");\n obj.put(\"shippingAddContactNo\", \"\");\n obj.put(\"BillingAddEmail\", \"\");\n obj.put(\"shippingAddEmail\", \"\");\n }\n\n Set<LccManualWiseProductAmount> manualProductDetailsSet = gReceipt.getLccmanualwiseproductamount() != null ? (Set<LccManualWiseProductAmount>) gReceipt.getLccmanualwiseproductamount() : null;\n if (manualProductDetailsSet != null && !manualProductDetailsSet.isEmpty()) {\n JSONArray manuProductDetailsJArr = new JSONArray();\n for (LccManualWiseProductAmount lccManualWiseProductAmountObj : manualProductDetailsSet) {\n JSONObject manuProductDetailsJOBJ = new JSONObject();\n manuProductDetailsJOBJ.put(\"id\", lccManualWiseProductAmountObj.getID());\n manuProductDetailsJOBJ.put(\"billid\", lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().getID());\n manuProductDetailsJOBJ.put(\"rowid\", lccManualWiseProductAmountObj.getGrdetailid().getID());\n manuProductDetailsJOBJ.put(\"originalTransactionRowid\", lccManualWiseProductAmountObj.getGrdetailid().getID());\n manuProductDetailsJOBJ.put(\"productid\", lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n manuProductDetailsJOBJ.put(\"billno\", lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().getGoodsReceiptNumber());\n manuProductDetailsJOBJ.put(\"productname\", lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getName());\n manuProductDetailsJOBJ.put(\"enterpercentage\", lccManualWiseProductAmountObj.getPercentage());\n manuProductDetailsJOBJ.put(\"enteramount\", lccManualWiseProductAmountObj.getAmount());\n if (lccManualWiseProductAmountObj.getAssetDetails() != null) {\n manuProductDetailsJOBJ.put(\"productname\", lccManualWiseProductAmountObj.getAssetDetails().getAssetId());\n }\n manuProductDetailsJOBJ.put(\"assetId\", lccManualWiseProductAmountObj.getAssetDetails() != null ? lccManualWiseProductAmountObj.getAssetDetails().getAssetId() : \"\");\n if (lccManualWiseProductAmountObj.isCustomDutyAllocationType()) {\n manuProductDetailsJOBJ.put(\"igstamount\", lccManualWiseProductAmountObj.getIgstamount());\n manuProductDetailsJOBJ.put(\"igstrate\", lccManualWiseProductAmountObj.getIgstrate());\n manuProductDetailsJOBJ.put(\"taxablevalueforigst\", lccManualWiseProductAmountObj.getTaxablevalueforigst());\n manuProductDetailsJOBJ.put(\"customdutyandothercharges\", lccManualWiseProductAmountObj.getCustomdutyandothercharges());\n manuProductDetailsJOBJ.put(\"customdutyandothercharges\", lccManualWiseProductAmountObj.getCustomdutyandothercharges());\n manuProductDetailsJOBJ.put(\"taxablevalueforcustomduty\", lccManualWiseProductAmountObj.getTaxablevalueforcustomduty());\n int hsncolnum = 0, producttaxcolnum = 0;\n HashMap fieldparams = new HashMap<>();\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyid, lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().isFixedAssetInvoice() ? Constants.Acc_FixedAssets_AssetsGroups_ModuleId : Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.HSN_SACCODE));\n\n KwlReturnObject kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n List<FieldParams> fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n hsncolnum = fieldParams.getColnum();\n }\n fieldparams = new HashMap<>();\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyid, lccManualWiseProductAmountObj.getGrdetailid().getGoodsReceipt().isFixedAssetInvoice() ? Constants.Acc_FixedAssets_AssetsGroups_ModuleId : Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.GSTProdCategory));\n\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n producttaxcolnum = fieldParams.getColnum();\n }\n manuProductDetailsJOBJ.put(\"producttaxcolnum\", producttaxcolnum);\n manuProductDetailsJOBJ.put(\"hsncolnum\", hsncolnum);\n List temp = fieldManagerDAOobj.getFieldComboValue(hsncolnum, lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n if (list != null && !temp.isEmpty()) {\n Object[] tempArr = (Object[]) temp.get(0);\n String hsncode = (String) tempArr[0];\n manuProductDetailsJOBJ.put(\"hsncode\", hsncode);\n }\n temp = fieldManagerDAOobj.getFieldComboValue(producttaxcolnum, lccManualWiseProductAmountObj.getGrdetailid().getInventory().getProduct().getID());\n if (temp != null && !temp.isEmpty()) {\n Object[] tempArr = (Object[]) temp.get(0);\n String producttaxclassvalue = (String) tempArr[0];\n manuProductDetailsJOBJ.put(\"producttaxclass\", producttaxclassvalue);\n }\n }\n manuProductDetailsJArr.put(manuProductDetailsJOBJ);\n }\n //manuProductDetailsJOBJTemp.put(\"data\", manuProductDetailsJArr);\n obj.put(\"manualLandedCostCategory\", manuProductDetailsJArr.toString());\n }\n double taxAmt = 0d;\n if(isopeningBalanceInvoice){\n taxAmt = gReceipt.getTaxamount();\n } else {\n if (gReceipt.getTaxEntry() != null) {// if Invoice Level Tax is available\n taxAmt = gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount();\n // obj.put(GoodsReceiptCMNConstants.TAXAMOUNT, gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount());\n }\n }\n /**\n * Finding Term Mapped to Invoice and Discount Mapped to\n * Term and passing discount value, Type, applicable\n * days, Purchase invoice date and amount due of invoice\n * because these are used on JS side for calculation of\n * discount while making bulk payment of selected invoice.\n * ERM-981.\n */\n JSONObject columnPrefJObj = null;\n if (!StringUtil.isNullOrEmpty(extraCompanyPreferences.getColumnPref())) {\n columnPrefJObj = new JSONObject((String) extraCompanyPreferences.getColumnPref());\n if (columnPrefJObj.has(Constants.DISCOUNT_ON_PAYMENT_TERMS) && columnPrefJObj.get(Constants.DISCOUNT_ON_PAYMENT_TERMS) != null && columnPrefJObj.optBoolean(Constants.DISCOUNT_ON_PAYMENT_TERMS, false)) {\n obj.put(\"grcreationdate\", je != null ? je.getEntryDate() : creationDate);\n }\n }\n obj.put(\"amountDueOriginal\", (amountDueOriginal <= 0) ? 0 : authHandler.round(amountDueOriginal, companyid));\n// obj.put(\"amountbeforegst\", gReceipt.getTaxEntry() == null ? invoiceOriginalAmt : (invoiceOriginalAmt - gReceipt.getTaxEntry().getAmount()));\n obj.put(GoodsReceiptCMNConstants.DISCOUNT, gReceipt.getDiscountAmount()); //Discount according to created transaction.\n obj.put(\"discountinbase\", gReceipt.getDiscountAmountInBase()); //Discount according to created transaction.\n obj.put(GoodsReceiptCMNConstants.ISPERCENTDISCOUNT, gReceipt.getDiscount() == null ? false : gReceipt.getDiscount().isInPercent());\n obj.put(GoodsReceiptCMNConstants.DISCOUNTVAL, gReceipt.getDiscount() == null ? 0 : gReceipt.getDiscount().getDiscount());\n obj.put(CCConstants.JSON_costcenterid, je != null ? (je.getCostcenter() == null ? \"\" : je.getCostcenter().getID()) : \"\");\n obj.put(CCConstants.JSON_costcenterName, je != null ? (je.getCostcenter() == null ? \"\" : je.getCostcenter().getName()) : \"\");\n obj.put(\"isfavourite\", gReceipt.isFavourite());\n obj.put(\"isprinted\", gReceipt.isPrinted());\n obj.put(\"isEmailSent\", gReceipt.isIsEmailSent());\n obj.put(\"cashtransaction\", gReceipt.isCashtransaction());\n obj.put(\"archieve\", 0);\n obj.put(\"shipvia\", gReceipt.getShipvia() == null ? \"\" : gReceipt.getShipvia());\n obj.put(\"fob\", gReceipt.getFob() == null ? \"\" : gReceipt.getFob());\n obj.put(\"termdetails\", getPurchaseInvoiceTermDetails(gReceipt.getID(), accGoodsReceiptobj));\n boolean isApplyTaxToTerms=gReceipt.isApplyTaxToTerms();\n obj.put(\"isapplytaxtoterms\", isApplyTaxToTerms);\n if (gReceipt.getTermsincludegst() != null) {\n obj.put(Constants.termsincludegst, gReceipt.getTermsincludegst());\n }\n KwlReturnObject result = accLinkDataDao.checkEntryForTransactionInLinkingTableForForwardReference(\"GoodsReceipt\", gReceipt.getID());\n list = result.getEntityList();\n KwlReturnObject linkedDebitNoteResult = accGoodsReceiptobj.getCreditNoteLinkedWithInvoice(gReceipt.getID(), companyid);\n List listDn = linkedDebitNoteResult.getEntityList();\n\n KwlReturnObject linkedDNForOverchargeResult = accGoodsReceiptobj.getDebitNoteForOverchargedLinkedWithInvoice(gReceipt.getID(), companyid);\n List dnOverchargelist = linkedDNForOverchargeResult.getEntityList();\n\n /*\n * TDS Payment is Done - Set true IsLinkedTransaction \n */\n List listtdspayment = null;\n if (Constants.indian_country_id == countryid) {\n KwlReturnObject linkedTDSPaymentObj = accGoodsReceiptobj.getGoodsReceiptTDSPayment(gReceipt.getID(), companyid);\n listtdspayment = linkedTDSPaymentObj.getEntityList();\n }\n if ((list != null && !list.isEmpty())||(!StringUtil.isNullOrEmpty(landedInvoice))||(!gReceipt.isCashtransaction() && (authHandler.round((Double)invoiceOriginalAmt,companyid)!=authHandler.round(amountdue, companyid))) || (listDn!=null && !listDn.isEmpty()) || (listtdspayment!=null && !listtdspayment.isEmpty()) || (dnOverchargelist != null && !dnOverchargelist.isEmpty())){\n obj.put(Constants.IS_LINKED_TRANSACTION, true);\n } else {\n obj.put(Constants.IS_LINKED_TRANSACTION, false);\n }\n /*\n * Check if invoice is claimed as bad debt\n */\n if(gReceipt.getClaimAmountDue()!= 0){\n obj.put(\"isClaimedTransaction\", true);\n }\n// double termAmount = CommonFunctions.getTotalTermsAmount(getTermDetails(gReceipt.getID(), accGoodsReceiptobj));\n// obj.put(\"termamount\", termAmount);\n obj.put(\"termdays\", gReceipt.getTermid() == null ? 0 : gReceipt.getTermid().getTermdays());\n obj.put(\"termid\", gReceipt.getTermid() == null ? \"\" : gReceipt.getTermid().getID());\n //ERP-20637\n if (gReceipt.getLandedInvoice() != null) {\n Set<GoodsReceipt> landInvoiceSet = gReceipt.getLandedInvoice();\n String landedInvoiceId = \"\", landedInvoiceNumber = \"\";\n for (GoodsReceipt grObj : landInvoiceSet) {\n if (!(StringUtil.isNullOrEmpty(landedInvoiceId) && StringUtil.isNullOrEmpty(landedInvoiceId))) {\n landedInvoiceId += \",\";\n landedInvoiceNumber += \",\";\n }\n landedInvoiceId += grObj.getID();\n landedInvoiceNumber += grObj.getGoodsReceiptNumber();\n }\n obj.put(\"landedInvoiceID\", landedInvoiceId);\n obj.put(\"landedInvoiceNumber\", landedInvoiceNumber);\n }\n// obj.put(\"landedInvoiceID\", gReceipt.getLandedInvoice() == null ? \"\" : gReceipt.getLandedInvoice().getID());\n// obj.put(\"landedInvoiceNumber\", gReceipt.getLandedInvoice() == null ? \"\" : gReceipt.getLandedInvoice().getGoodsReceiptNumber());\n obj.put(\"billto\", gReceipt.getBillTo() == null ? \"\" : gReceipt.getBillTo());\n obj.put(\"shipto\", gReceipt.getShipTo() == null ? \"\" : gReceipt.getShipTo());\n obj.put(\"isCapitalGoodsAcquired\", gReceipt.isCapitalGoodsAcquired());\n obj.put(\"isRetailPurchase\", gReceipt.isRetailPurchase());\n obj.put(\"importService\", gReceipt.isImportService());\n obj.put(\"attachment\", attachemntcount);\n obj.put(Constants.isDraft, gReceipt.isIsDraft());\n obj.put(\"isConsignment\", gReceipt.isIsconsignment());\n obj.put(\"landingCostCategoryCombo\", gReceipt.getLandingCostCategory()!=null?gReceipt.getLandingCostCategory().getId():\"\");\n Set<GoodsReceiptDetail> goodsReceiptDetails = gReceipt.getRows();\n // Calculating total invoice amount in base currency\n KwlReturnObject invoiceTotalAmtInBaseResult=null;\n KwlReturnObject taxTotalAmtInBaseResult=null;\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n// invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, invoiceOriginalAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n } else {\n// invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, invoiceOriginalAmt, currencyid, creationDate, externalCurrencyRate);\n invoiceTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, invoiceOriginalAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n }\n double invoiceTotalAmountInBase=authHandler.round((Double) invoiceTotalAmtInBaseResult.getEntityList().get(0),companyid);\n if (isBadDebtInvoices) {// in case of Malasian Company\n int baddebttype = (Integer) request.get(\"baddebttype\");\n double totalTaxAmt = 0d;\n double totalTaxAmtInBase = 0d;\n String taxId = \"\";\n if (isopeningBalanceInvoice) {\n totalTaxAmt = gReceipt.getTaxamount();\n } else {\n double invoiceLevelTaxAmt = gReceipt.getTaxEntry() == null ? 0 : gReceipt.getTaxEntry().getAmount();\n taxId = gReceipt.getTaxEntry() == null ? \"\" : gReceipt.getTax().getID();\n double rowTaxAmt = 0d;\n for (GoodsReceiptDetail invoiceDetail : goodsReceiptDetails) {\n rowTaxAmt += invoiceDetail.getRowTaxAmount();\n rowTaxAmt += invoiceDetail.getRowTermTaxAmount();\n taxId = (invoiceDetail.getTax() != null) ? invoiceDetail.getTax().getID() : taxId;\n }\n totalTaxAmt = invoiceLevelTaxAmt + rowTaxAmt;\n }\n\n if (totalTaxAmt == 0) {// no need to put invoice in bad debt section if it has tax 0\n continue;\n }\n\n if (isopeningBalanceInvoice) {\n totalTaxAmtInBase = gReceipt.getTaxamountinbase();\n } else {\n taxTotalAmtInBaseResult = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalTaxAmt, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n totalTaxAmtInBase = authHandler.round((Double) taxTotalAmtInBaseResult.getEntityList().get(0), companyid);\n }\n\n// if (baddebttype == 1) {\n // get Paid amount of invoice\n Date badDebtCalculationToDate = null;\n if (request.get(\"badDebtCalculationToDate\") != null) {\n badDebtCalculationToDate = df.parse((String) request.get(\"badDebtCalculationToDate\"));\n }\n KwlReturnObject invoicePaidAmtObj = accPaymentDAOobj.getPaymentFromBadDebtClaimedInvoice(gReceipt.getID(), true, badDebtCalculationToDate);//accPaymentDAOobj.getPaymentAmountofBadDebtGoodsReceipt(gReceipt.getID(),true);\n// double paidAmt = (Double) invoicePaidAmtObj.getEntityList().get(0);\n\n double paidAmt = 0;\n\n List paidList = invoicePaidAmtObj.getEntityList();\n if (paidList != null && !paidList.isEmpty()) {\n Iterator pmtIt = paidList.iterator();\n while (pmtIt.hasNext()) {\n PaymentDetail rd = (PaymentDetail) pmtIt.next();\n\n double paidAmtInPaymentCurrency = rd.getAmount();\n\n// KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getJournalEntry().getEntryDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n KwlReturnObject bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, paidAmtInPaymentCurrency, rd.getPayment().getCurrency().getCurrencyID(), rd.getPayment().getCreationDate(), rd.getPayment().getJournalEntry().getExternalCurrencyRate());\n double paidAmtInBase = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n\n paidAmt += paidAmtInBase;\n\n }\n }\n\n // paidAmt should be converted into base currency\n// KwlReturnObject taxObj = accTaxObj.getTaxPercent(companyid, isopeningBalanceInvoice ? gReceipt.getCreationDate() : gReceipt.getJournalEntry().getEntryDate(), taxId);\n KwlReturnObject taxObj = accTaxObj.getTaxPercent(companyid, isopeningBalanceInvoice ? gReceipt.getCreationDate() : gReceipt.getCreationDate(), taxId);\n\n double taxPer = (Double) taxObj.getEntityList().get(0);\n\n// double gstToRecover = paidAmt*taxPer/(100+taxPer);\n // Gst claimable amount\n double grAmountDue = isopeningBalanceInvoice ? gReceipt.getOpeningBalanceAmountDue() : gReceipt.getInvoiceamountdue();\n\n // Converting grAmountDue to base currency\n KwlReturnObject bAmt1 = null;\n String fromcurrencyid = gReceipt.getCurrency().getCurrencyID();\n if (isopeningBalanceInvoice) {\n grAmountDue = gReceipt.getOpeningBalanceBaseAmountDue();\n } else {\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, grAmountDue, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, grAmountDue, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n grAmountDue = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n }\n\n double gstclaimableamount = 0.0;\n// double gstclaimableamount = grAmountDue * taxPer / (100 + taxPer);\n gstclaimableamount = (totalTaxAmtInBase * grAmountDue) / invoiceTotalAmountInBase;\n gstclaimableamount = authHandler.round(gstclaimableamount, companyid);\n //Calculate Bad Debt Recoverable Amount\n // Get Recovered Amount of invoice\n\n HashMap<String, Object> badMaps = new HashMap<String, Object>();\n badMaps.put(\"companyid\", companyid);\n badMaps.put(\"invoiceid\", invid);\n\n KwlReturnObject badDebtMappingResult = accGoodsReceiptobj.getBadDebtPurchaseInvoiceMappingForGoodsReceipt(badMaps);\n\n Date badDebtClaimedDate = null;\n double totalRecoveredAmt = 0;\n List badDebtMapping = badDebtMappingResult.getEntityList();\n if (!badDebtMapping.isEmpty()) {\n Iterator badIt = badDebtMapping.iterator();\n while (badIt.hasNext()) {\n BadDebtPurchaseInvoiceMapping debtInvoiceMapping = (BadDebtPurchaseInvoiceMapping) badIt.next();\n totalRecoveredAmt += debtInvoiceMapping.getBadDebtAmtRecovered();\n if (debtInvoiceMapping.getBadDebtClaimedDate() != null) {\n badDebtClaimedDate = debtInvoiceMapping.getBadDebtClaimedDate();\n }\n }\n }\n\n // Calculate Recover Amount in base\n if (isopeningBalanceInvoice) {\n if (gReceipt.isConversionRateFromCurrencyToBase()) {\n totalRecoveredAmt = totalRecoveredAmt / gReceipt.getExchangeRateForOpeningTransaction();\n } else {\n totalRecoveredAmt = totalRecoveredAmt * gReceipt.getExchangeRateForOpeningTransaction();\n }\n } else {\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, totalRecoveredAmt, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n totalRecoveredAmt = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n }\n\n if (baddebttype == 1) {\n\n// System.out.println(gReceipt.getGoodsReceiptNumber());\n// HashMap<String, Object> hm = new HashMap<String, Object>();\n//\n// hm.put(\"companyid\", companyid);\n// hm.put(\"invoiceId\", gReceipt.getID());\n// // hm.put(\"invoiceId\", invoice.getI);\n//\n// double consumedAmt = accGoodsReceiptCommon.getAmountDueOfGRBeforeClaimedDate(hm);\n// double invoiceOrigAmt = d.getAmount();\n//\n// double remainedAmtBeforeClaim = invoiceOrigAmt - consumedAmt;\n//\n// double claimedGST = remainedAmtBeforeClaim * taxPer/(100+taxPer);\n double claimedGST = 0;\n\n if (!badDebtMapping.isEmpty()) {\n Iterator badIt = badDebtMapping.iterator();\n while (badIt.hasNext()) {\n BadDebtPurchaseInvoiceMapping debtInvoiceMapping = (BadDebtPurchaseInvoiceMapping) badIt.next();\n if (debtInvoiceMapping.getBadDebtType() == 0) {\n claimedGST += debtInvoiceMapping.getBadDebtGSTAmtClaimed();\n }\n }\n }\n\n // converting claimed GST in Base Currency\n// bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, claimedGST, fromcurrencyid, gReceipt.getJournalEntry().getEntryDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n bAmt1 = accCurrencyDAOobj.getCurrencyToBaseAmount(request, claimedGST, fromcurrencyid, gReceipt.getCreationDate(), gReceipt.getJournalEntry().getExternalCurrencyRate());\n claimedGST = authHandler.round((Double) bAmt1.getEntityList().get(0), companyid);\n\n obj.put(\"gstclaimableamount\", claimedGST);\n } else {\n obj.put(\"gstclaimableamount\", gstclaimableamount);\n\n Date selectedCriteriaDate = df.parse((String) request.get(\"selectedCriteriaDate\"));\n int badDebtCriteria = (Integer) request.get(\"badDebtCriteria\");\n\n long diff = 0;\n if (badDebtCriteria == 0 && gReceipt.getDueDate() != null) {// on Invoice Due Date\n diff = selectedCriteriaDate.getTime() - gReceipt.getDueDate().getTime();\n } else if (badDebtCriteria == 1) {// on Invoice Creation Date\n diff = selectedCriteriaDate.getTime() - creationDate.getTime();\n }\n long diffInDays = diff / (24 * 60 * 60 * 1000);\n\n obj.put(\"agingDays\", diffInDays);\n\n }\n\n double gstToRecover = (paidAmt - totalRecoveredAmt) * taxPer / (100 + taxPer);\n double paidAfterClaimed = paidAmt - totalRecoveredAmt;\n\n// obj.put(\"gstclaimableamount\", gstclaimableamount);\n obj.put(\"paidAfterClaimed\", paidAfterClaimed);\n obj.put(\"gstToRecover\", gstToRecover);\n obj.put(\"claimedPeriod\", gReceipt.getClaimedPeriod());\n obj.put(\"badDebtClaimedDate\", (badDebtClaimedDate != null) ? df.format(badDebtClaimedDate) : null);\n\n if (authHandler.round(amountdue, companyid) == 0 && authHandler.round(paidAfterClaimed, companyid) == 0) {// don't put invoices which has amount due zero and whole gst has been recovered\n continue;\n }\n// }\n }\n obj=AccountingAddressManager.getTransactionAddressJSON(obj,gReceipt.getBillingShippingAddresses(),true);\n obj.put(\"sequenceformatid\", gReceipt.getSeqformat() == null ? \"\" : gReceipt.getSeqformat().getID());\n obj.put(\"gstIncluded\", gReceipt.isGstIncluded());\n obj.put(\"selfBilledInvoice\", gReceipt.isSelfBilledInvoice());\n obj.put(\"RMCDApprovalNo\", gReceipt.getRMCDApprovalNo());\n obj.put(\"fixedAssetInvoice\", gReceipt.isFixedAssetInvoice());\n obj.put(\"isConsignment\", gReceipt.isIsconsignment());\n if (gReceipt.isCashtransaction()) {\n obj.put(Constants.IS_PYMENT_STATUS_CLEARED, false);\n PayDetail payDetail = gReceipt.getPayDetail();\n if (payDetail != null) {\n PaymentMethod paymentMethod = payDetail.getPaymentMethod();\n obj.put(\"paymentname\", paymentMethod.getMethodName());\n obj.put(\"methodid\", paymentMethod.getID());\n obj.put(\"detailtype\", paymentMethod.getDetailType());\n if (paymentMethod.getDetailType() == PaymentMethod.TYPE_CARD) {\n Card card = payDetail.getCard();\n obj.put(\"cardno\", card != null ? card.getCardNo() : \"\");\n obj.put(\"nameoncard\", card != null ? card.getCardHolder() : \"\");\n obj.put(\"cardexpirydate\", card != null ? df.format(card.getExpiryDate()) : \"\");\n obj.put(\"cardtype\", card != null ? card.getCardType() : \"\");\n obj.put(\"cardrefno\", card != null ? card.getRefNo() : \"\");\n\n } else if (paymentMethod.getDetailType() == PaymentMethod.TYPE_BANK) {\n Cheque cheque = payDetail.getCheque();\n obj.put(\"chequeno\", cheque != null ? cheque.getChequeNo() : \"\");\n obj.put(\"chequedescription\", cheque != null ? cheque.getDescription() : \"\");\n obj.put(\"bankname\", cheque != null ? cheque.getBankName() : \"\");\n obj.put(\"chequedate\", cheque != null ? df.format(cheque.getDueDate()) : \"\");\n obj.put(\"clearanceDate\", \"\");\n obj.put(\"paymentStatus\", \"Uncleared\");\n if (gReceipt.getPayDetail() != null) {\n KwlReturnObject clearanceDate = accBankReconciliationObj.getBRfromJE(gReceipt.getJournalEntry().getID(), gReceipt.getCompany().getCompanyID(), false);\n if (clearanceDate != null && clearanceDate.getEntityList() != null && clearanceDate.getEntityList().size() > 0) {\n BankReconciliationDetail brd = (BankReconciliationDetail) clearanceDate.getEntityList().get(0);\n if (brd.getBankReconciliation().getClearanceDate() != null) {\n obj.put(\"clearanceDate\", df.format(brd.getBankReconciliation().getClearanceDate()));\n obj.put(\"paymentStatus\", \"Cleared\");\n obj.put(Constants.IS_PYMENT_STATUS_CLEARED, true);// To Disable Feilds in Edit Case for Cleard Cash Payment\n }\n }\n }\n }\n\n } else {\n obj.put(\"paymentname\", \"\");\n obj.put(\"methodid\", \"\");\n }\n } else {\n obj.put(\"paymentname\", \"NA\");\n }\n if (gReceipt.getModifiedby() != null) {\n obj.put(\"lasteditedby\", StringUtil.getFullName(gReceipt.getModifiedby()));\n }\n obj.put(\"createdby\", gReceipt.getCreatedby() == null ? \"\" : StringUtil.getFullName(gReceipt.getCreatedby()));\n if (report) {\n obj.put(\"isreval\", isReval);\n }\n// int pendingApprovalInt = gReceipt.getPendingapproval();\n// obj.put(\"approvalstatusint\", pendingApprovalInt);\n// if (pendingApprovalInt == Constants.LEVEL_ONE) {\n// obj.put(\"approvalstatus\", \"Pending level 1 approval\");\n// } else if (pendingApprovalInt == Constants.LEVEL_TWO) {\n// obj.put(\"approvalstatus\", \"Pending level 2 approval\");\n// } else {\n// obj.put(\"approvalstatus\", \"\");\n// }\n obj.put(\"approvalstatus\", gReceipt.getApprovestatuslevel());\n obj.put(\"isjobworkoutrec\", gReceipt.isIsJobWorkOutInv());\n String approvalStatus=\"\";\n ScriptEngineManager mgr = new ScriptEngineManager();\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\n String multipleRuleids=\"\";\n if(gReceipt.getApprovestatuslevel() < 0){\n approvalStatus=\"Rejected\";\n }else if(gReceipt.getApprovestatuslevel() < 11){\n String ruleid = \"\",userRoleName=\"\";\n HashMap<String, Object> qdDataMap = new HashMap<String, Object>();\n qdDataMap.put(\"companyid\", companyid);\n qdDataMap.put(\"level\",gReceipt.getApprovestatuslevel());\n qdDataMap.put(\"moduleid\", Constants.Acc_Vendor_Invoice_ModuleId);\n KwlReturnObject flowresult = accMultiLevelApprovalDAOObj.getMultiApprovalRuleData(qdDataMap);\n Iterator ruleitr = flowresult.getEntityList().iterator();\n while (ruleitr.hasNext()) {\n Object[] rulerow = (Object[]) ruleitr.next();\n ruleid = rulerow[0].toString();\n boolean sendForApproval = false;\n int appliedUpon = Integer.parseInt(rulerow[5].toString());\n String discountRule = \"\";\n String rule = \"\";\n if (rulerow[2] != null) {\n rule = rulerow[2].toString();\n }\n if (rulerow[7] != null) {\n discountRule = rulerow[7].toString();\n }\n if (appliedUpon == Constants.Total_Amount) {\n /*\n Added to get condition of approval rule i.e set when creating approval rule \n */\n rule = rule.replaceAll(\"[$$]+\", String.valueOf(gReceipt.getInvoiceAmountInBase()));\n } else if (appliedUpon == Constants.Specific_Products || appliedUpon == Constants.Specific_Products_Discount || appliedUpon == Constants.Specific_Products_Category) {\n /*\n Handled for Product,product discount And product category\n */\n HashMap<String, Object> GlobalParams = new HashMap<String, Object>();\n JSONArray productDiscountJArr = new JSONArray();\n Set<GoodsReceiptDetail> grDetails = gReceipt.getRows();\n for (GoodsReceiptDetail grDetail : grDetails) {\n if (grDetail.getInventory() != null) {\n String productId = grDetail.getInventory().getProduct().getID();\n Discount invDiscount = grDetail.getDiscount();\n double discAmountinBase = 0;\n if (invDiscount != null) {\n double discountVal = invDiscount.getDiscountValue();\n KwlReturnObject dAmount = accCurrencyDAOobj.getCurrencyToBaseAmount(request, discountVal, currencyid, gReceipt.getCreationDate(), gReceipt.getExternalCurrencyRate());\n discAmountinBase = (Double) dAmount.getEntityList().get(0);\n }\n discAmountinBase = authHandler.round(discAmountinBase, companyid);\n JSONObject productDiscountObj = new JSONObject();\n productDiscountObj.put(\"productId\", productId);\n productDiscountObj.put(\"discountAmount\", discAmountinBase);\n productDiscountJArr.put(productDiscountObj);\n }\n }\n if (appliedUpon == Constants.Specific_Products || appliedUpon == Constants.Specific_Products_Discount) {\n /*\n * Check If Rule is apply on specefic product\n * and Specific product discount from multiapproverule window\n */\n if (productDiscountJArr != null) {\n sendForApproval = AccountingManager.checkForProductAndProductDiscountRule(productDiscountJArr, appliedUpon, rule, discountRule);\n }\n } else if (appliedUpon == Constants.Specific_Products_Category) {\n /*\n * Check If Rule is apply on product\n * category from multiapproverule window\n */\n sendForApproval = accountingHandlerDAOobj.checkForProductCategoryForProduct(productDiscountJArr, appliedUpon, rule);\n }\n }\n /*\n Added to check if record falls in total amount approval rule \n */\n if (StringUtil.isNullOrEmpty(rule) || sendForApproval || (!StringUtil.isNullOrEmpty(rule) && appliedUpon == Constants.Total_Amount && Boolean.parseBoolean(engine.eval(rule).toString()))) {\n multipleRuleids += ruleid + \",\";\n }\n }\n /*\n Added to get multiple ruleid if record falls in multiple approval rule \n */\n String[] multipleRuleidsArray = multipleRuleids.split(\",\");\n for (int multiRule = 0; multiRule < multipleRuleidsArray.length; multiRule++) {\n ruleid = multipleRuleidsArray[multiRule];\n if (!StringUtil.isNullOrEmpty(ruleid)) {\n qdDataMap.put(\"ruleid\", ruleid);\n KwlReturnObject userResult = accMultiLevelApprovalDAOObj.getApprovalRuleTargetUsers(qdDataMap);\n Iterator useritr = userResult.getEntityList().iterator();\n while (useritr.hasNext()) {\n Object[] userrow = (Object[]) useritr.next();\n String userId = userrow[0].toString();\n\n String fname = userrow[1].toString();\n String lname = userrow[2].toString();\n String userName = fname+\" \"+lname;\n /*\n Addded so duplicate approve's can be eleminated \n */\n if(userRoleName.contains(userName)){\n continue;\n }\n KwlReturnObject kmsg = null;\n String roleName=\"Company User\";\n kmsg = permissionHandlerDAOObj.getRoleofUser(userId);\n Iterator ite2 = kmsg.getEntityList().iterator();\n while (ite2.hasNext()) {\n Object[] row = (Object[]) ite2.next();\n roleName = row[1].toString();\n }\n userRoleName += roleName+\" \"+userName + \",\";\n }\n }\n }\n if (!StringUtil.isNullOrEmpty(userRoleName)) {\n userRoleName = userRoleName.substring(0, userRoleName.length() - 1);\n }\n approvalStatus=\"Pending Approval\" + ( StringUtil.isNullOrEmpty(userRoleName) ? \"\" : \" by \"+userRoleName )+\" at Level - \"+gReceipt.getApprovestatuslevel();\n } else {\n approvalStatus=\"Approved\";\n }\n obj.put(\"approvalstatusinfo\",approvalStatus);\n\n if (request.containsKey(\"pendingapproval\") && request.get(\"pendingapproval\") != null && (Boolean) request.containsKey(\"pendingapproval\")) {\n int nextApprovalLevel = 11;\n HashMap<String, Object> qdDataMap = new HashMap<String, Object>();\n qdDataMap.put(\"companyid\", companyid);\n qdDataMap.put(\"level\", gReceipt.getApprovestatuslevel() + 1);\n qdDataMap.put(\"moduleid\", Constants.Acc_Vendor_Invoice_ModuleId);\n KwlReturnObject flowresult = accMultiLevelApprovalDAOObj.getMultiApprovalRuleData(qdDataMap);\n List<Object[]> approvalRuleItr = flowresult.getEntityList();\n if (approvalRuleItr != null && approvalRuleItr.size() > 0) {\n for (Object[] rowObj : approvalRuleItr) {\n String rule = \"\";\n if (rowObj[2] != null) {\n rule = rowObj[2].toString();\n }\n int appliedUpon = Integer.parseInt(rowObj[5].toString());\n rule = rule.replaceAll(\"[$$]+\", String.valueOf(gReceipt.getInvoiceAmountInBase()));\n if (StringUtil.isNullOrEmpty(rule) || (!StringUtil.isNullOrEmpty(rule) && ( appliedUpon != Constants.Specific_Products && appliedUpon != Constants.Specific_Products_Discount && appliedUpon != Constants.Specific_Products_Category) && Boolean.parseBoolean(engine.eval(rule).toString()))) {\n nextApprovalLevel = gReceipt.getApprovestatuslevel() + 1;\n }\n }\n }\n obj.put(\"isFinalLevelApproval\", nextApprovalLevel == Constants.APPROVED_STATUS_LEVEL ? true : false);\n }\n /*\n * For Product search, add Products details from Invoice\n * details\n */\n\n if (isProduct && gReceipt.isNormalInvoice()) {\n String idvString = isProduct ? oj[4].toString() : \"\"; //as in list invoiedetail id comes 4th\n KwlReturnObject objItrGRD = accountingHandlerDAOobj.getObject(GoodsReceiptDetail.class.getName(), idvString);\n GoodsReceiptDetail idvObj = (GoodsReceiptDetail) objItrGRD.getEntityList().get(0);\n if (idvObj != null) {\n obj.put(\"rowproductname\", idvObj.getInventory().getProduct().getName());\n obj.put(\"rowquantity\", idvObj.getInventory().isInvrecord() ? idvObj.getInventory().getQuantity() : idvObj.getInventory().getActquantity());\n obj.put(\"rowrate\", idvObj.getRate());\n\n Discount disc = idvObj.getDiscount();\n if (disc != null && disc.isInPercent()) {\n obj.put(\"rowprdiscount\", disc.getDiscount()); //product discount in percent\n } else {\n obj.put(\"rowprdiscount\", 0);\n }\n\n double rowTaxPercent = 0;\n if (idvObj.getTax() != null) {\n// KwlReturnObject perresult = accTaxObj.getTaxPercent(companyid, gReceipt.getJournalEntry().getEntryDate(), idvObj.getTax().getID());\n KwlReturnObject perresult = accTaxObj.getTaxPercent(companyid, gReceipt.getCreationDate(), idvObj.getTax().getID());\n rowTaxPercent = (Double) perresult.getEntityList().get(0);\n }\n obj.put(\"rowprtaxpercent\", rowTaxPercent);\n }\n }\n\n //For getting tax in percent applyied on invoice [PS]\n if (gReceipt.getTax() != null) {\n// KwlReturnObject taxresult = accTaxObj.getTaxPercent(companyid, je.getEntryDate(), gReceipt.getTax().getID());\n KwlReturnObject taxresult = accTaxObj.getTaxPercent(companyid, gReceipt.getCreationDate(), gReceipt.getTax().getID());\n taxPercent = (Double) taxresult.getEntityList().get(0);\n }\n obj.put(GoodsReceiptCMNConstants.TAXPERCENT, taxPercent);\n\n //For getting amountdue [PS]\n if (gReceipt.isCashtransaction()) {\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, 0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, 0);\n obj.put(GoodsReceiptCMNConstants.INCASH, true);\n } else {\n if ((Constants.InvoiceAmountDueFlag && !isAged) || isopeningBalanceInvoice) {\n if (isopeningBalanceInvoice && gReceipt.isConversionRateFromCurrencyToBase()) {// if invoice is opening balance invoice and Conversion rate is taken from user is Currency to base then following method will be called.\n// bAmt = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, amountdue, currencyid, creationDate, externalCurrencyRate);\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmountAccordingToCurrencyToBaseExchangeRate(request, amountdue, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n } else {\n// bAmt = accCurrencyDAOobj.getCurrencyToBaseAmount(request, amountdue, currencyid, creationDate, externalCurrencyRate);\n bAmt = accCurrencyDAOobj.getCurrencyToBaseAmount(request, amountdue, currencyid, gReceipt.getCreationDate(), externalCurrencyRate);\n }\n amountInBase = (Double) bAmt.getEntityList().get(0);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, authHandler.round((Double) bAmt.getEntityList().get(0), companyid));\n } else { // For aged we are fetching amount in base as well so no need for calculation\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, amountdueinbase);\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE, authHandler.round(amountdue, companyid));\n /*\n * To calulate exchange rate\n */\n obj.put(\"exchangeratefortransaction\", (amountInBase <= 0 && amountdue <= 0) ? 0 : (amountInBase / amountdue));\n\n if (booleanAged) {//Added for aged payable/receivable\n int datefilter = (request.containsKey(\"datefilter\") && request.get(\"datefilter\") != null) ? Integer.parseInt(request.get(\"datefilter\").toString()) : 0;// 0 = Invoice Due date OR 1 = Invoice date\n Date dueDate = null;\n if (!StringUtil.isNullOrEmpty(df.format(gReceipt.getDueDate()))) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n }\n if (datefilter == 0 || datefilter == Constants.agedDueDate0to30Filter) {\n dueDate = df.parse(df.format(gReceipt.getDueDate()));\n } else {\n dueDate = df.parse(df.format(creationDate));\n }\n// if(startDate!=null && dueDate.before(startDate)){//In Aged Report amountdue goes in Accruade Balance for those transaction whose creation/due date is previous to Start date will goes into the accrued balance, likes opening balance \n// accruedbalance = authHandler.round(amountdue, companyid);\n// } else\n if (dueDate.after(oneDayBeforeCal1Date)) {\n if (dueDate.equals(cal1Date) && (datefilter == Constants.agedDueDate0to30Filter || datefilter == Constants.agedInvoiceDate0to30Filter)) {\n amountdue2 = authHandler.round(amountdue, companyid); // 0-30 Days\n } else {\n amountdue1 = authHandler.round(amountdue, companyid); // Current\n }\n } else if ((cal2Date.before(dueDate) || cal2Date.equals(dueDate)) && cal1Date.after(dueDate)) { // 1-30\n amountdue2 = authHandler.round(amountdue, companyid);\n } else if ((cal3Date.before(dueDate) || cal3Date.equals(dueDate)) && cal2Date.after(dueDate)) { // 31-60\n amountdue3 = authHandler.round(amountdue, companyid);\n } else if ((cal4Date.before(dueDate) || cal4Date.equals(dueDate)) && cal3Date.after(dueDate)) { // 61-90\n amountdue4 = authHandler.round(amountdue, companyid);\n } else if ((cal5Date.before(dueDate) || cal5Date.equals(dueDate)) && cal4Date.after(dueDate)) { // 91-120\n amountdue5 = authHandler.round(amountdue, companyid);\n } else if ((cal6Date.before(dueDate) || cal6Date.equals(dueDate)) && cal5Date.after(dueDate)) { // 121-150\n amountdue6 = authHandler.round(amountdue, companyid);\n } else if ((cal7Date.before(dueDate) || cal7Date.equals(dueDate)) && cal6Date.after(dueDate)) { // 151-180\n amountdue7 = authHandler.round(amountdue, companyid);\n } else if ((cal8Date.before(dueDate) || cal8Date.equals(dueDate)) && cal7Date.after(dueDate)) { // 181-210\n amountdue8 = authHandler.round(amountdue, companyid);\n } else if ((cal9Date.before(dueDate) || cal9Date.equals(dueDate)) && cal8Date.after(dueDate)) { // 211-240\n amountdue9 = authHandler.round(amountdue, companyid);\n } else if ((cal10Date.before(dueDate) || cal10Date.equals(dueDate)) && cal9Date.after(dueDate)) { // 241-270\n amountdue10 = authHandler.round(amountdue, companyid);\n } else { // > 270 \n amountdue11 = authHandler.round(amountdue, companyid);\n }\n \n switch(noOfInterval){\n case 2:\n amountdue3 += amountdue4 + amountdue5 + amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue4 = amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 3:\n amountdue4 += amountdue5 + amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue5 = amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 4:\n amountdue5 += amountdue6 + amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue6 = amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 5:\n amountdue6 += amountdue7 + amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue7 = amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 6:\n amountdue7 += amountdue8 + amountdue9 + amountdue10 + amountdue11;\n amountdue8 = amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 7:\n amountdue8 += amountdue9 + amountdue10 + amountdue11;\n amountdue9 = amountdue10 = amountdue11 = 0;\n break;\n case 8:\n amountdue9 += amountdue10 + amountdue11;\n amountdue10 = amountdue11 = 0;\n break;\n case 9:\n amountdue10 += amountdue11;\n amountdue11 = 0;\n break;\n }\n }\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUENONNEGATIVE, (amountdue <= 0) ? 0 : authHandler.round(amountdue, companyid));\n }\n boolean includeprotax = false;\n String taxname=\"\";\n double rowTaxAmt = 0d, rowOtherTermNonTaxableAmount = 0;\n boolean isLineLevelTermFlag = false;//To Check Whether LinelevelTerms are applicable or not.\n if(extraCompanyPreferences != null && extraCompanyPreferences.getLineLevelTermFlag()==1){\n isLineLevelTermFlag = true;//If LineLevelTerms are applicable, then update the flag.\n }\n double subtotal=0.0;\n double productTotalAmount=0.0;\n double discountAmount = 0.0;\n// double taxAmountOfTerms=0d;\n if (!gReceipt.isIsExpenseType() && gReceipt.isNormalInvoice()) {\n// Set<GoodsReceiptDetail> goodsReceiptDetails = gReceipt.getRows();\n for (GoodsReceiptDetail goodsReceiptDetail : goodsReceiptDetails) {\n double rowsubtotal = 0d;\n double invquantity = goodsReceiptDetail.getInventory().getQuantity();\n if (goodsReceiptDetail.getGoodsReceipt().isGstIncluded()) {\n rowsubtotal = goodsReceiptDetail.getRateincludegst() * invquantity;\n } else {\n rowsubtotal = goodsReceiptDetail.getRate() * invquantity;\n }\n /**\n * Getting the Discount Value(Amount) and\n * subtracting from subtotal.\n */\n Discount disc = goodsReceiptDetail.getDiscount();\n if (disc != null) {\n discountAmount += disc.getDiscountValue();\n }\n productTotalAmount += authHandler.round(rowsubtotal, companyid);\n if(isLineLevelTermFlag){\n // Append OtherTermNonTaxableAmount for rach row.\n rowOtherTermNonTaxableAmount += goodsReceiptDetail.getOtherTermNonTaxableAmount();\n rowTaxAmt += goodsReceiptDetail.getRowTermAmount();\n rowTaxAmt += goodsReceiptDetail.getRowTermTaxAmount();\n// taxAmountOfTerms += goodsReceiptDetail.getRowTermTaxAmount();\n }else if (goodsReceiptDetail.getTax() != null) {\n includeprotax = true;\n taxname += goodsReceiptDetail.getTax().getName() + \", \";\n rowTaxAmt += goodsReceiptDetail.getRowTaxAmount();\n// rowTaxAmt += goodsReceiptDetail.getRowTermTaxAmount();\n// taxAmountOfTerms += goodsReceiptDetail.getRowTermTaxAmount();\n }\n }\n } else if (gReceipt.isIsExpenseType()) {\n Set<ExpenseGRDetail> expenseGRDetails = gReceipt.getExpenserows();\n for (ExpenseGRDetail expGReceiptDetail : expenseGRDetails) {\n if (!expGReceiptDetail.getGoodsReceipt().isGstIncluded()) {\n productTotalAmount += expGReceiptDetail.isIsdebit() ? expGReceiptDetail.getRate() : -(expGReceiptDetail.getRate());\n } else {\n productTotalAmount += expGReceiptDetail.isIsdebit() ? expGReceiptDetail.getRate() : -(expGReceiptDetail.getRate());\n // productTotalAmount +=expGReceiptDetail.getRate();\n }\n /**\n * Getting the Discount Value(Amount) and\n * subtracting from subtotal.(ERP-38123)\n */\n Discount disc = expGReceiptDetail.getDiscount();\n if (disc != null) {\n if (expGReceiptDetail.isIsdebit()) {\n discountAmount += disc.getDiscountValue();\n } else {\n discountAmount -= disc.getDiscountValue();\n }\n }\n// System.out.println(expGReceiptDetail.getGoodsReceipt().getGoodsReceiptNumber());\n if (expGReceiptDetail.getTax() != null) {\n includeprotax = true;\n taxname += expGReceiptDetail.getTax().getName() + \", \";\n rowTaxAmt += expGReceiptDetail.isIsdebit()?expGReceiptDetail.getRowTaxAmount():-(expGReceiptDetail.getRowTaxAmount());// SDP- 4676 PO/PI Expense type records to show tax amount in report\n }\n }\n }\n obj.put(\"productTotalAmount\", productTotalAmount); \n double termTaxAmount = 0d;\n double termAmountInBase = 0d;\n double termAmount = 0d;\n List receiptTermMapList = kwlCommonTablesDAOObj.getSummationOfTermAmtAndTermTaxAmt(Constants.receipttermsmap, invid);\n if(receiptTermMapList != null && !receiptTermMapList.isEmpty()){\n Iterator termItr = receiptTermMapList.iterator();\n while (termItr.hasNext()) {\n Object[] termObj = (Object[]) termItr.next();\n /* \n * [0] : Sum of termamount \n * [1] : Sum of termamountinbase \n * [2] : Sum of termTaxamount \n * [3] : Sum of termTaxamountinbase \n * [4] : Sum of termamountexcludingtax \n * [5] : Sum of termamountexcludingtaxinbase\n */ \n if (gReceipt.isGstIncluded()) {\n if(termObj[4] != null && termObj[5] != null){\n termAmount += authHandler.round((Double) termObj[4],companyid);\n termAmountInBase += authHandler.round((Double) termObj[5],companyid);\n }\n } else {\n if(termObj[0] != null && termObj[1] != null){\n termAmount += authHandler.round((Double) termObj[0],companyid);\n termAmountInBase += authHandler.round((Double) termObj[1],companyid);\n }\n }\n if(termObj[2] != null){\n termTaxAmount += authHandler.round((Double) termObj[2],companyid);\n }\n }\n }\n \n taxAmt += rowTaxAmt + termTaxAmount;\n if (gReceipt.isGstIncluded()) {\n subtotal = productTotalAmount - discountAmount - rowTaxAmt;\n } else {\n subtotal = productTotalAmount - discountAmount;\n }\n obj.put(\"subtotal\", subtotal);\n obj.put(\"termamount\", termAmount);\n obj.put(\"termamountinBase\", termAmountInBase);\n obj.put(\"amountBeforeTax\", authHandler.formattingDecimalForAmount((subtotal+termAmount),companyid));\n double tdsAmountandOtherCharges = 0.0;\n if (Constants.indian_country_id == countryid) { // For india Company\n tdsAmountandOtherCharges = gReceipt.getTdsAmount() - rowOtherTermNonTaxableAmount;\n obj.put(\"totalAmountWithTDS\", authHandler.round(invoiceOriginalAmt + gReceipt.getTdsAmount(), companyid)); // Amount with TDS\n }\n// obj.put(\"amountbeforegst\", authHandler.round(invoiceOriginalAmt-taxAmt-termAmount+tdsAmountandOtherCharges, 2)); // Amount before both kind of tax row level or transaction level\n obj.put(\"amountbeforegst\", gReceipt.getExcludingGstAmount());\n obj.put(GoodsReceiptCMNConstants.TAXAMOUNT, taxAmt);\n\n //*** For GTA - Start***//\n if (Constants.indian_country_id == countryid && gReceipt.isGtaapplicable() && !gReceipt.isIsExciseInvoice() && taxAmt > 0) { // exclude service tax from totaltax on grid\n obj.put(\"amountbeforegst\", authHandler.round(invoiceOriginalAmt - (taxAmt) - termAmount + tdsAmountandOtherCharges, companyid)); // Amount before both kind of tax row level or transaction level\n }\n //*** For GTA - END***//\n\n if (isLineLevelTermFlag) {\n // If LineLevelTerm is applicable then add the value in JSON Object.\n obj.put(Constants.OtherTermNonTaxableAmount, rowOtherTermNonTaxableAmount);\n }\n// obj.put(\"taxamountinbase\", accCurrencyDAOobj.getCurrencyToBaseAmount(request, taxAmt, currencyid, creationDate, externalCurrencyRate).getEntityList().get(0));\n obj.put(\"taxamountinbase\", gReceipt.getTaxamountinbase());\n// obj.put(\"taxamountsaved\", gReceipt.getTaxamount());\n// obj.put(\"taxamountinbasesaved\", gReceipt.getTaxamountinbase());\n// obj.put(\"excludinggstamountsaved\", gReceipt.getExcludingGstAmount());\n// obj.put(\"excludinggstamountinbasesaved\", gReceipt.getExcludingGstAmountInBase());\n if (includeprotax) {\n obj.put(GoodsReceiptCMNConstants.TAXNAME, taxname.substring(0, taxname.length() > 1 ? taxname.length() - 2 : taxname.length()));\n } else {\n obj.put(GoodsReceiptCMNConstants.TAXNAME, gReceipt.getTax() == null ? \"\" : gReceipt.getTax().getName());\n }\n\n obj.put(\"includeprotax\", includeprotax);\n obj.put(GoodsReceiptCMNConstants.AMOUNT, authHandler.round((Double)invoiceOriginalAmt,companyid)); //actual invoice amount\n obj.put(GoodsReceiptCMNConstants.AMOUNTINBASE, invoiceTotalAmountInBase);\n obj.put(GoodsReceiptCMNConstants.ACCOUNTNAMES, (String) ll.get(2));\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE1, amountdue1);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE2, amountdue2);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE3, amountdue3);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE4, amountdue4);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE5, amountdue5);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE6, amountdue6);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE7, amountdue7);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE8, amountdue8);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE9, amountdue9);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE10, amountdue10);\n obj.put(GoodsReceiptCMNConstants.AMOUNTDUE11, amountdue11);\n// obj.put(GoodsReceiptCMNConstants.ACCRUEDBALANCE, accruedbalance);\n obj.put(GoodsReceiptCMNConstants.TYPE, \"Purchase Invoice\");\n obj.put(GoodsReceiptCMNConstants.DEDUCTDISCOUNT, deductDiscount);\n\n KwlReturnObject custumObjresult = null;\n if (gReceipt.isNormalInvoice()) {\n// boolean isExport = (request.get(\"isExport\") == null) ? false : (Boolean) request.get(\"isExport\");\n Map<String, Object> variableMap = new HashMap<String, Object>();\n custumObjresult = accountingHandlerDAOobj.getObject(AccJECustomData.class.getName(), je.getID());\n replaceFieldMap = new HashMap<String, String>();\n if (custumObjresult != null && custumObjresult.getEntityList().size() > 0) {\n AccJECustomData jeDetailCustom = (AccJECustomData) custumObjresult.getEntityList().get(0);\n if (jeDetailCustom != null) {\n AccountingManager.setCustomColumnValues(jeDetailCustom, FieldMap, replaceFieldMap, variableMap);\n JSONObject params = new JSONObject();\n params.put(\"companyid\", companyid);\n params.put(Constants.userdf,userDateFormat);\n if (!isExport) {\n isExport = (request.get(\"isAgedPayables\") == null) ? false : (Boolean) request.get(\"isAgedPayables\");\n }\n params.put(\"isExport\", isExport);\n// if (request.containsKey(\"browsertz\") && request.get(\"browsertz\") != null) {\n// params.put(\"browsertz\", request.get(\"browsertz\").toString());\n// }\n fieldDataManagercntrl.addCustomData(variableMap, customFieldMap, customDateFieldMap, obj, params);\n }\n }\n \n \n if (booleanAged ) \n {\n if (!request.containsKey(\"isAgedPayables\") || !(Boolean) request.get(\"isAgedPayables\")) {\n accGoodsReceiptServiceDAO.getCustmDataForPurchaseInvoice(request, jArr, companyid, replaceFieldMap, customFieldMap, customDateFieldMap, FieldMap, replaceFieldMapRows, customFieldMapRows, customDateFieldMapRows, fieldMapRows);\n //getPurchaseInvoiceCustomField(gReceipt,goodsReceiptDetails,fieldMapRows,replaceFieldMapRows,customFieldMapRows,customDateFieldMapRows,obj,userDateFormat);\n }\n }\n }\n RepeatedInvoices repeatedInvoice = gReceipt.getRepeateInvoice();\n obj.put(\"isRepeated\", repeatedInvoice == null ? false : true);\n if (repeatedInvoice != null) {\n obj.put(\"repeateid\", repeatedInvoice.getId());\n obj.put(\"interval\", repeatedInvoice.getIntervalUnit());\n obj.put(\"intervalType\", repeatedInvoice.getIntervalType());\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMMM d, yyyy hh:mm:ss aa\");\n // sdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"+sessionHandlerImpl.getTimeZoneDifference(request)));\n obj.put(\"NoOfpost\", repeatedInvoice.getNoOfInvoicespost());\n obj.put(\"NoOfRemainpost\", repeatedInvoice.getNoOfRemainInvoicespost());\n obj.put(\"startDate\", sdf.format(repeatedInvoice.getStartDate()));\n obj.put(\"nextDate\", sdf.format(repeatedInvoice.getNextDate()));\n obj.put(\"isactivate\", repeatedInvoice.isIsActivate());\n obj.put(\"ispendingapproval\", repeatedInvoice.isIspendingapproval());\n obj.put(\"approver\", repeatedInvoice.getApprover());\n obj.put(\"expireDate\", repeatedInvoice.getExpireDate() == null ? \"\" : sdf.format(repeatedInvoice.getExpireDate()));\n obj.put(\"advancedays\", repeatedInvoice.getAdvanceNoofdays()== 0 ? 0 : repeatedInvoice.getAdvanceNoofdays());\n obj.put(\"advanceDate\", repeatedInvoice.getInvoiceAdvanceCreationDate()== null ? \"\" : sdf.format(repeatedInvoice.getInvoiceAdvanceCreationDate()));\n request.put(\"parentInvoiceId\", gReceipt.getID());\n KwlReturnObject details = accGoodsReceiptobj.getRepeateVendorInvoicesDetails(request);\n List detailsList = details.getEntityList();\n obj.put(\"childCount\", detailsList.size());\n }\n \n\n if (gReceipt.isIsOpeningBalenceInvoice()) {\n Map<String, Object> variableMap = new HashMap<String, Object>();\n custumObjresult = accountingHandlerDAOobj.getObject(OpeningBalanceVendorInvoiceCustomData.class.getName(), gReceipt.getID());\n replaceFieldMap = new HashMap<String, String>();\n if (custumObjresult != null && custumObjresult.getEntityList().size() > 0) {\n OpeningBalanceVendorInvoiceCustomData openingBalanceVendorInvoiceCustomData = (OpeningBalanceVendorInvoiceCustomData) custumObjresult.getEntityList().get(0);\n if (openingBalanceVendorInvoiceCustomData != null) {\n AccountingManager.setCustomColumnValues(openingBalanceVendorInvoiceCustomData, FieldMap, replaceFieldMap, variableMap);\n DateFormat defaultDateFormat=new SimpleDateFormat(Constants.MMMMdyyyy);\n Date dateFromDB=null;\n for (Map.Entry<String, Object> varEntry : variableMap.entrySet()) {\n String coldata = varEntry.getValue() != null ? varEntry.getValue().toString() : \"\";\n if (customFieldMap.containsKey(varEntry.getKey())) {\n KwlReturnObject rdresult = accountingHandlerDAOobj.getObject(FieldComboData.class.getName(), coldata);\n FieldComboData fieldComboData = (FieldComboData) rdresult.getEntityList().get(0);\n if (fieldComboData != null) {\n obj.put(varEntry.getKey(), fieldComboData.getValue() != null ? fieldComboData.getValue() : \"\");\n }\n } else if (customDateFieldMap.containsKey(varEntry.getKey())) {\n DateFormat sdf = userDateFormat != null?userDateFormat:new SimpleDateFormat(\"yyyy-MM-dd\");\n dateFromDB=defaultDateFormat.parse(coldata);\n coldata=sdf.format(dateFromDB);\n obj.put(varEntry.getKey(), coldata);\n } else {\n if (!StringUtil.isNullOrEmpty(coldata)) {\n obj.put(varEntry.getKey(), coldata);\n }\n }\n }\n }\n }\n }\n try { // check if credit/cash purchase is allowed to edit\n // isAllowToEdit= if credit/cash purchase created using auto generate GR option and credit/cash purchase/GR hasn't been forward linked in any document\n result = accGoodsReceiptobj.getAutoGRFromInvoice(gReceipt.getID(), companyid);\n list = result.getEntityList();\n if (list != null && !list.isEmpty()) { // SI/CS created with auto generate DO option\n boolean isDOLinkedInPR = false;\n String groID = \"\";\n Object groid = list.get(0);\n groID = (String) groid;\n KwlReturnObject resultPR = accGoodsReceiptobj.getPurchaseReturnLinkedWithGR(groID, companyid);\n List listPR = resultPR.getEntityList();\n if (!listPR.isEmpty()) { // is DO forward linked in any SR\n isDOLinkedInPR = true;\n }\n if (!isDOLinkedInPR && obj.optDouble(GoodsReceiptCMNConstants.AMOUNTDUEINBASE, 0.0) == obj.optDouble(GoodsReceiptCMNConstants.AMOUNTINBASE, 0.0) && !gReceipt.isCashtransaction()) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, true);\n } else if (gReceipt.isCashtransaction() && !isDOLinkedInPR) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, true);\n } else {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n } else {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n if (!StringUtil.isNullOrEmpty(landedInvoice)) {\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n } catch (Exception ex) {\n Logger.getLogger(AccGoodsReceiptServiceImpl.class.getName()).log(Level.WARNING, ex.getMessage());\n obj.put(Constants.IS_INVOICE_ALLOW_TO_EDIT, false);\n }\n if (!(ignoreZero && authHandler.round(amountdue, companyid) <= 0)) {\n jArr.put(obj);\n }\n }\n }\n }\n } catch (Exception ex) {\n throw ServiceException.FAILURE(\"AccGoodsReceiptServiceHandler.getGoodsReceiptsJson : \" + ex.getMessage(), ex);\n }\n return jArr;\n }", "protected List<InvoiceDocument> getInvoicesByQueryByCriteria(QueryByCriteria qbc) {\n LOG.debug(\"getInvoicesByQueryByCriteria() started\");\n return (List<InvoiceDocument>) getPersistenceBrokerTemplate().getCollectionByQuery(qbc);\n }", "@Override\n\tpublic StockAlarmBillPO searchStockAlarmBillByID(String id) throws RemoteException {\n\t\tStockAlarmBillPO bill = null;\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\n\t\ttry {\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill where ID = \"+\"'\"+ id+\"'\";\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\t\t\t \t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t \t//��ȡ�����ݱ���������idΪ������\n\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \n\t \twhile(rs.next()) {\t \n\t \t\tBillState state = BillState.getStateByInt(rs.getInt(\"State\")); \t\n\t \t\tjava.sql.Date date = rs.getDate(\"Date\");\t \t\n\t \t\tString operatorID = rs.getString(\"OperatorID\");\n\t \t \tString wareID = rs.getString(\"wareID\");\n\t \t \t\n\t \t\tResultSet rs_2 = statement_2.executeQuery(sql_2);\t \n\t \t\tString number = null;\n\t\t String name = null;\n\t\t long amount = 0;\n\t\t long alarmAmount = 0;\n\t\t \n\t\t while(rs_2.next()) { \t\n\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t \t name = rs_2.getString(\"Name\");\n\t\t \t amount = rs_2.getLong(\"Amount\");\n\t\t \t alarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t \t\n\t\t \t StockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t \t itemList.add(item);\n\t\t }\t\t \t\t\t\n\t\t java.util.Date d = new java.util.Date(date.getTime());\n\t\t bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t rs_2.close(); \t \n\t \t}\n\t\t rs.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn bill;\n\t}", "public Invoice createInvoice(Order order);", "public static Map<String, Object> createInvoiceForOrder(DispatchContext dctx, Map<String, Object> context) {\n Delegator delegator = dctx.getDelegator();\n LocalDispatcher dispatcher = dctx.getDispatcher();\n GenericValue userLogin = (GenericValue) context.get(\"userLogin\");\n Locale locale = (Locale) context.get(\"locale\");\n if (DECIMALS == -1 || ROUNDING == null) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingAritmeticPropertiesNotConfigured\", locale));\n }\n\n String orderId = (String) context.get(\"orderId\");\n List<GenericValue> billItems = UtilGenerics.cast(context.get(\"billItems\"));\n String invoiceId = (String) context.get(\"invoiceId\");\n\n if (UtilValidate.isEmpty(billItems)) {\n if (Debug.verboseOn()) {\n Debug.logVerbose(\"No order items to invoice; not creating invoice; returning success\", MODULE);\n }\n return ServiceUtil.returnSuccess(UtilProperties.getMessage(RESOURCE,\n \"AccountingNoOrderItemsToInvoice\", locale));\n }\n\n try {\n GenericValue orderHeader = EntityQuery.use(delegator).from(\"OrderHeader\").where(\"orderId\", orderId).queryOne();\n if (orderHeader == null) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingNoOrderHeader\", locale));\n }\n\n // figure out the invoice type\n String invoiceType = null;\n\n String orderType = orderHeader.getString(\"orderTypeId\");\n if (\"SALES_ORDER\".equals(orderType)) {\n invoiceType = \"SALES_INVOICE\";\n } else if (\"PURCHASE_ORDER\".equals(orderType)) {\n invoiceType = \"PURCHASE_INVOICE\";\n }\n\n // Set the precision depending on the type of invoice\n int invoiceTypeDecimals = UtilNumber.getBigDecimalScale(\"invoice.\" + invoiceType + \".decimals\");\n if (invoiceTypeDecimals == -1) {\n invoiceTypeDecimals = DECIMALS;\n }\n\n // Make an order read helper from the order\n OrderReadHelper orh = new OrderReadHelper(orderHeader);\n\n // get the product store\n GenericValue productStore = orh.getProductStore();\n\n // get the shipping adjustment mode (Y = Pro-Rate; N = First-Invoice)\n String prorateShipping = productStore != null ? productStore.getString(\"prorateShipping\") : \"Y\";\n if (prorateShipping == null) {\n prorateShipping = \"Y\";\n }\n\n // get the billing parties\n String billToCustomerPartyId = orh.getBillToParty().getString(\"partyId\");\n String billFromVendorPartyId = orh.getBillFromParty().getString(\"partyId\");\n\n // get some price totals\n BigDecimal shippableAmount = orh.getShippableTotal(null);\n BigDecimal shippableQuantity = orh.getShippableQuantity(null);\n BigDecimal orderSubTotal = orh.getOrderItemsSubTotal();\n BigDecimal orderQuantity = orh.getTotalOrderItemsQuantity();\n\n // these variables are for pro-rating order amounts across invoices, so they should not be rounded off for maximum accuracy\n BigDecimal invoiceShipProRateAmount = BigDecimal.ZERO;\n BigDecimal invoiceShippableQuantity = BigDecimal.ZERO;\n BigDecimal invoiceSubTotal = BigDecimal.ZERO;\n BigDecimal invoiceQuantity = BigDecimal.ZERO;\n\n GenericValue billingAccount = orderHeader.getRelatedOne(\"BillingAccount\", false);\n String billingAccountId = billingAccount != null ? billingAccount.getString(\"billingAccountId\") : null;\n\n Timestamp invoiceDate = (Timestamp) context.get(\"eventDate\");\n if (UtilValidate.isEmpty(invoiceDate)) {\n // TODO: ideally this should be the same time as when a shipment is sent and be passed in as a parameter\n invoiceDate = UtilDateTime.nowTimestamp();\n }\n // TODO: perhaps consider billing account net days term as well?\n Long orderTermNetDays = orh.getOrderTermNetDays();\n Timestamp dueDate = null;\n if (orderTermNetDays != null) {\n dueDate = UtilDateTime.getDayEnd(invoiceDate, orderTermNetDays);\n }\n\n // create the invoice record\n if (UtilValidate.isEmpty(invoiceId)) {\n Map<String, Object> createInvoiceContext = new HashMap<>();\n createInvoiceContext.put(\"partyId\", billToCustomerPartyId);\n createInvoiceContext.put(\"partyIdFrom\", billFromVendorPartyId);\n createInvoiceContext.put(\"billingAccountId\", billingAccountId);\n createInvoiceContext.put(\"invoiceDate\", invoiceDate);\n createInvoiceContext.put(\"dueDate\", dueDate);\n createInvoiceContext.put(\"invoiceTypeId\", invoiceType);\n // start with INVOICE_IN_PROCESS, in the INVOICE_READY we can't change the invoice (or shouldn't be able to...)\n createInvoiceContext.put(\"statusId\", \"INVOICE_IN_PROCESS\");\n createInvoiceContext.put(\"currencyUomId\", orderHeader.getString(\"currencyUom\"));\n createInvoiceContext.put(\"userLogin\", userLogin);\n\n // store the invoice first\n Map<String, Object> createInvoiceResult = dispatcher.runSync(\"createInvoice\", createInvoiceContext);\n if (ServiceUtil.isError(createInvoiceResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceFromOrder\", locale), null, null, createInvoiceResult);\n }\n\n // call service, not direct entity op: delegator.create(invoice);\n invoiceId = (String) createInvoiceResult.get(\"invoiceId\");\n }\n\n // order roles to invoice roles\n List<GenericValue> orderRoles = orderHeader.getRelated(\"OrderRole\", null, null, false);\n Map<String, Object> createInvoiceRoleContext = new HashMap<>();\n createInvoiceRoleContext.put(\"invoiceId\", invoiceId);\n createInvoiceRoleContext.put(\"userLogin\", userLogin);\n for (GenericValue orderRole : orderRoles) {\n createInvoiceRoleContext.put(\"partyId\", orderRole.getString(\"partyId\"));\n createInvoiceRoleContext.put(\"roleTypeId\", orderRole.getString(\"roleTypeId\"));\n Map<String, Object> createInvoiceRoleResult = dispatcher.runSync(\"createInvoiceRole\", createInvoiceRoleContext);\n if (ServiceUtil.isError(createInvoiceRoleResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceFromOrder\", locale), null, null, createInvoiceRoleResult);\n }\n }\n\n // order terms to invoice terms.\n // TODO: it might be nice to filter OrderTerms to only copy over financial terms.\n List<GenericValue> orderTerms = orh.getOrderTerms();\n createInvoiceTerms(delegator, dispatcher, invoiceId, orderTerms, userLogin, locale);\n\n // billing accounts\n // List billingAccountTerms = null;\n // for billing accounts we will use related information\n if (billingAccount != null) {\n /*\n * jacopoc: billing account terms were already copied as order terms\n * when the order was created.\n // get the billing account terms\n billingAccountTerms = billingAccount.getRelated(\"BillingAccountTerm\", null, null, false);\n\n // set the invoice terms as defined for the billing account\n createInvoiceTerms(delegator, dispatcher, invoiceId, billingAccountTerms, userLogin, locale);\n */\n // set the invoice bill_to_customer from the billing account\n List<GenericValue> billToRoles = billingAccount.getRelated(\"BillingAccountRole\", UtilMisc.toMap(\"roleTypeId\", \"BILL_TO_CUSTOMER\"),\n null, false);\n for (GenericValue billToRole : billToRoles) {\n if (!(billToRole.getString(\"partyId\").equals(billToCustomerPartyId))) {\n createInvoiceRoleContext = UtilMisc.toMap(\"invoiceId\", invoiceId, \"partyId\", billToRole.get(\"partyId\"),\n \"roleTypeId\", \"BILL_TO_CUSTOMER\", \"userLogin\", userLogin);\n Map<String, Object> createInvoiceRoleResult = dispatcher.runSync(\"createInvoiceRole\", createInvoiceRoleContext);\n if (ServiceUtil.isError(createInvoiceRoleResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceRoleFromOrder\", locale), null, null, createInvoiceRoleResult);\n }\n }\n }\n\n // set the bill-to contact mech as the contact mech of the billing account\n if (UtilValidate.isNotEmpty(billingAccount.getString(\"contactMechId\"))) {\n Map<String, Object> createBillToContactMechContext = UtilMisc.toMap(\"invoiceId\", invoiceId, \"contactMechId\",\n billingAccount.getString(\"contactMechId\"),\n \"contactMechPurposeTypeId\", \"BILLING_LOCATION\", \"userLogin\", userLogin);\n Map<String, Object> createBillToContactMechResult = dispatcher.runSync(\"createInvoiceContactMech\",\n createBillToContactMechContext);\n if (ServiceUtil.isError(createBillToContactMechResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceContactMechFromOrder\", locale), null, null, createBillToContactMechResult);\n }\n }\n } else {\n List<GenericValue> billingLocations = orh.getBillingLocations();\n if (UtilValidate.isNotEmpty(billingLocations)) {\n for (GenericValue ocm : billingLocations) {\n Map<String, Object> createBillToContactMechContext = UtilMisc.toMap(\"invoiceId\", invoiceId, \"contactMechId\", ocm.getString(\n \"contactMechId\"),\n \"contactMechPurposeTypeId\", \"BILLING_LOCATION\", \"userLogin\", userLogin);\n Map<String, Object> createBillToContactMechResult = dispatcher.runSync(\"createInvoiceContactMech\",\n createBillToContactMechContext);\n if (ServiceUtil.isError(createBillToContactMechResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceContactMechFromOrder\", locale), null, null, createBillToContactMechResult);\n }\n }\n } else {\n Debug.logWarning(\"No billing locations found for order [\" + orderId + \"] and none were created for Invoice [\" + invoiceId\n + \"]\", MODULE);\n }\n }\n\n // get a list of the payment method types\n //DEJ20050705 doesn't appear to be used: List paymentPreferences = orderHeader.getRelated(\"OrderPaymentPreference\", null, null, false);\n\n // create the bill-from (or pay-to) contact mech as the primary PAYMENT_LOCATION of the party from the store\n GenericValue payToAddress = null;\n if (\"PURCHASE_INVOICE\".equals(invoiceType)) {\n // for purchase orders, the pay to address is the BILLING_LOCATION of the vendor\n GenericValue billFromVendor = orh.getPartyFromRole(\"BILL_FROM_VENDOR\");\n if (billFromVendor != null) {\n List<GenericValue> billingContactMechs = billFromVendor.getRelatedOne(\"Party\", false).getRelated(\"PartyContactMechPurpose\",\n UtilMisc.toMap(\"contactMechPurposeTypeId\", \"BILLING_LOCATION\"), null, false);\n if (UtilValidate.isNotEmpty(billingContactMechs)) {\n payToAddress = EntityUtil.getFirst(EntityUtil.filterByDate(billingContactMechs));\n }\n }\n } else {\n // for sales orders, it is the payment address on file for the store\n payToAddress = PaymentWorker.getPaymentAddress(delegator, productStore.getString(\"payToPartyId\"));\n }\n if (payToAddress != null) {\n Map<String, Object> createPayToContactMechContext = UtilMisc.toMap(\"invoiceId\", invoiceId, \"contactMechId\", payToAddress.getString(\n \"contactMechId\"),\n \"contactMechPurposeTypeId\", \"PAYMENT_LOCATION\", \"userLogin\", userLogin);\n Map<String, Object> createPayToContactMechResult = dispatcher.runSync(\"createInvoiceContactMech\", createPayToContactMechContext);\n if (ServiceUtil.isError(createPayToContactMechResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceContactMechFromOrder\", locale), null, null, createPayToContactMechResult);\n }\n }\n\n // sequence for items - all OrderItems or InventoryReservations + all Adjustments\n int invoiceItemSeqNum = 1;\n String invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n\n // create the item records\n for (GenericValue currentValue : billItems) {\n GenericValue itemIssuance = null;\n GenericValue orderItem = null;\n GenericValue shipmentReceipt = null;\n if (\"ItemIssuance\".equals(currentValue.getEntityName())) {\n itemIssuance = currentValue;\n } else if (\"OrderItem\".equals(currentValue.getEntityName())) {\n orderItem = currentValue;\n } else if (\"ShipmentReceipt\".equals(currentValue.getEntityName())) {\n shipmentReceipt = currentValue;\n } else {\n Debug.logError(\"Unexpected entity \" + currentValue + \" of type \" + currentValue.getEntityName(), MODULE);\n }\n\n if (orderItem == null && itemIssuance != null) {\n orderItem = itemIssuance.getRelatedOne(\"OrderItem\", false);\n } else if ((orderItem == null) && (shipmentReceipt != null)) {\n orderItem = shipmentReceipt.getRelatedOne(\"OrderItem\", false);\n }\n\n if (orderItem == null) {\n Debug.logError(\"Cannot create invoice when orderItem, itemIssuance, and shipmentReceipt are all null\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingIllegalValuesPassedToCreateInvoiceService\", locale));\n }\n\n GenericValue product = null;\n if (orderItem.get(\"productId\") != null) {\n product = orderItem.getRelatedOne(\"Product\", false);\n }\n\n // get some quantities\n BigDecimal billingQuantity = null;\n if (itemIssuance != null) {\n billingQuantity = itemIssuance.getBigDecimal(\"quantity\");\n BigDecimal cancelQty = itemIssuance.getBigDecimal(\"cancelQuantity\");\n if (cancelQty == null) {\n cancelQty = BigDecimal.ZERO;\n }\n billingQuantity = billingQuantity.subtract(cancelQty).setScale(DECIMALS, ROUNDING);\n } else if (shipmentReceipt != null) {\n billingQuantity = shipmentReceipt.getBigDecimal(\"quantityAccepted\");\n } else {\n BigDecimal orderedQuantity = OrderReadHelper.getOrderItemQuantity(orderItem);\n BigDecimal invoicedQuantity = OrderReadHelper.getOrderItemInvoicedQuantity(orderItem);\n billingQuantity = orderedQuantity.subtract(invoicedQuantity);\n if (billingQuantity.compareTo(BigDecimal.ZERO) < 0) {\n billingQuantity = BigDecimal.ZERO;\n }\n }\n if (billingQuantity == null) {\n billingQuantity = BigDecimal.ZERO;\n }\n\n // check if shipping applies to this item. Shipping is calculated for sales invoices, not purchase invoices.\n boolean shippingApplies = false;\n if ((product != null) && (ProductWorker.shippingApplies(product)) && (\"SALES_INVOICE\".equals(invoiceType))) {\n shippingApplies = true;\n }\n\n BigDecimal billingAmount = BigDecimal.ZERO;\n GenericValue orderAdj = EntityUtil.getFirst(orderItem.getRelated(\"OrderAdjustment\", UtilMisc.toMap(\"orderAdjustmentTypeId\",\n \"VAT_TAX\"), null, false));\n /* Apply formula to get actual product price to set amount in invoice item\n Formula is: productPrice = (productPriceWithTax.multiply(100)) / (orderAdj sourcePercentage + 100))\n product price = (43*100) / (20+100) = 35.83 (Here product price is 43 with VAT)\n */\n if (UtilValidate.isNotEmpty(orderAdj) && (orderAdj.getBigDecimal(\"amount\").signum() == 0)\n && UtilValidate.isNotEmpty(orderAdj.getBigDecimal(\"amountAlreadyIncluded\"))\n && orderAdj.getBigDecimal(\"amountAlreadyIncluded\").signum() != 0) {\n BigDecimal sourcePercentageTotal = orderAdj.getBigDecimal(\"sourcePercentage\").add(new BigDecimal(100));\n billingAmount =\n orderItem.getBigDecimal(\"unitPrice\").divide(sourcePercentageTotal, 100, ROUNDING)\n .multiply(new BigDecimal(100)).setScale(invoiceTypeDecimals, ROUNDING);\n } else {\n billingAmount = orderItem.getBigDecimal(\"unitPrice\").setScale(invoiceTypeDecimals, ROUNDING);\n }\n\n Map<String, Object> createInvoiceItemContext = new HashMap<>();\n createInvoiceItemContext.put(\"invoiceId\", invoiceId);\n createInvoiceItemContext.put(\"invoiceItemSeqId\", invoiceItemSeqId);\n createInvoiceItemContext.put(\"invoiceItemTypeId\", getInvoiceItemType(delegator, orderItem.getString(\"orderItemTypeId\"),\n product == null ? null : product.getString(\"productTypeId\"), invoiceType, \"INV_FPROD_ITEM\"));\n createInvoiceItemContext.put(\"description\", orderItem.get(\"itemDescription\"));\n createInvoiceItemContext.put(\"quantity\", billingQuantity);\n createInvoiceItemContext.put(\"amount\", billingAmount);\n createInvoiceItemContext.put(\"productId\", orderItem.get(\"productId\"));\n createInvoiceItemContext.put(\"productFeatureId\", orderItem.get(\"productFeatureId\"));\n createInvoiceItemContext.put(\"overrideGlAccountId\", orderItem.get(\"overrideGlAccountId\"));\n createInvoiceItemContext.put(\"userLogin\", userLogin);\n\n String itemIssuanceId = null;\n if (itemIssuance != null && itemIssuance.get(\"inventoryItemId\") != null) {\n itemIssuanceId = itemIssuance.getString(\"itemIssuanceId\");\n createInvoiceItemContext.put(\"inventoryItemId\", itemIssuance.get(\"inventoryItemId\"));\n }\n // similarly, tax only for purchase invoices\n if ((product != null) && (\"SALES_INVOICE\".equals(invoiceType))) {\n createInvoiceItemContext.put(\"taxableFlag\", product.get(\"taxable\"));\n }\n\n Map<String, Object> createInvoiceItemResult = dispatcher.runSync(\"createInvoiceItem\", createInvoiceItemContext);\n if (ServiceUtil.isError(createInvoiceItemResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceItemFromOrder\", locale), null, null, createInvoiceItemResult);\n }\n\n // this item total\n BigDecimal thisAmount = billingAmount.multiply(billingQuantity).setScale(invoiceTypeDecimals, ROUNDING);\n\n // add to the ship amount only if it applies to this item\n if (shippingApplies) {\n invoiceShipProRateAmount = invoiceShipProRateAmount.add(thisAmount).setScale(invoiceTypeDecimals, ROUNDING);\n invoiceShippableQuantity = invoiceQuantity.add(billingQuantity).setScale(invoiceTypeDecimals, ROUNDING);\n }\n\n // increment the invoice subtotal\n invoiceSubTotal = invoiceSubTotal.add(thisAmount).setScale(100, ROUNDING);\n\n // increment the invoice quantity\n invoiceQuantity = invoiceQuantity.add(billingQuantity).setScale(invoiceTypeDecimals, ROUNDING);\n\n // create the OrderItemBilling record\n Map<String, Object> createOrderItemBillingContext = new HashMap<>();\n createOrderItemBillingContext.put(\"invoiceId\", invoiceId);\n createOrderItemBillingContext.put(\"invoiceItemSeqId\", invoiceItemSeqId);\n createOrderItemBillingContext.put(\"orderId\", orderItem.get(\"orderId\"));\n createOrderItemBillingContext.put(\"orderItemSeqId\", orderItem.get(\"orderItemSeqId\"));\n createOrderItemBillingContext.put(\"itemIssuanceId\", itemIssuanceId);\n createOrderItemBillingContext.put(\"quantity\", billingQuantity);\n createOrderItemBillingContext.put(\"amount\", billingAmount);\n createOrderItemBillingContext.put(\"userLogin\", userLogin);\n if ((shipmentReceipt != null) && (shipmentReceipt.getString(\"receiptId\") != null)) {\n createOrderItemBillingContext.put(\"shipmentReceiptId\", shipmentReceipt.getString(\"receiptId\"));\n }\n\n Map<String, Object> createOrderItemBillingResult = dispatcher.runSync(\"createOrderItemBilling\", createOrderItemBillingContext);\n if (ServiceUtil.isError(createOrderItemBillingResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingOrderItemBillingFromOrder\", locale), null, null, createOrderItemBillingResult);\n }\n\n if (\"ItemIssuance\".equals(currentValue.getEntityName())) {\n /* Find ShipmentItemBilling based on shipmentId, shipmentItemSeqId, invoiceId, invoiceItemSeqId as\n because if any order item has multiple quantity and reserved by multiple inventories then there will be multiple invoice items.\n In that case ShipmentItemBilling was creating only for one invoice item. Fixed under OFBIZ-6806.\n */\n List<GenericValue> shipmentItemBillings = EntityQuery.use(delegator).from(\"ShipmentItemBilling\")\n .where(\"shipmentId\", currentValue.get(\"shipmentId\"), \"shipmentItemSeqId\", currentValue.get(\"shipmentItemSeqId\"),\n \"invoiceId\", invoiceId, \"invoiceItemSeqId\", invoiceItemSeqId)\n .queryList();\n if (UtilValidate.isEmpty(shipmentItemBillings)) {\n\n // create the ShipmentItemBilling record\n Map<String, Object> shipmentItemBillingCtx = new HashMap<>();\n shipmentItemBillingCtx.put(\"invoiceId\", invoiceId);\n shipmentItemBillingCtx.put(\"invoiceItemSeqId\", invoiceItemSeqId);\n shipmentItemBillingCtx.put(\"shipmentId\", currentValue.get(\"shipmentId\"));\n shipmentItemBillingCtx.put(\"shipmentItemSeqId\", currentValue.get(\"shipmentItemSeqId\"));\n shipmentItemBillingCtx.put(\"userLogin\", userLogin);\n Map<String, Object> result = dispatcher.runSync(\"createShipmentItemBilling\", shipmentItemBillingCtx);\n if (ServiceUtil.isError(result)) {\n return ServiceUtil.returnError(ServiceUtil.getErrorMessage(result));\n }\n }\n }\n\n String parentInvoiceItemSeqId = invoiceItemSeqId;\n // increment the counter\n invoiceItemSeqNum++;\n invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n\n // Get the original order item from the DB, in case the quantity has been overridden\n GenericValue originalOrderItem = EntityQuery.use(delegator).from(\"OrderItem\").where(\"orderId\", orderId, \"orderItemSeqId\",\n orderItem.get(\"orderItemSeqId\")).queryOne();\n\n // create the item adjustment as line items\n List<GenericValue> itemAdjustments = OrderReadHelper.getOrderItemAdjustmentList(orderItem, orh.getAdjustments());\n for (GenericValue adj : itemAdjustments) {\n\n // Check against OrderAdjustmentBilling to see how much of this adjustment has already been invoiced\n BigDecimal adjAlreadyInvoicedAmount = null;\n try {\n Map<String, Object> checkResult = dispatcher.runSync(\"calculateInvoicedAdjustmentTotal\", UtilMisc.toMap(\"orderAdjustment\",\n adj));\n if (ServiceUtil.isError(checkResult)) {\n Debug.logError(\"Accounting trouble calling calculateInvoicedAdjustmentTotal service\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingTroubleCallingCalculateInvoicedAdjustmentTotalService\", locale));\n }\n adjAlreadyInvoicedAmount = (BigDecimal) checkResult.get(\"invoicedTotal\");\n } catch (GenericServiceException e) {\n Debug.logError(e, \"Accounting trouble calling calculateInvoicedAdjustmentTotal service\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingTroubleCallingCalculateInvoicedAdjustmentTotalService\", locale));\n }\n\n // Set adjustment amount as amountAlreadyIncluded to continue invoice item creation process\n boolean isTaxIncludedInPrice = \"VAT_TAX\".equals(adj.getString(\"orderAdjustmentTypeId\"))\n && UtilValidate.isNotEmpty(adj.getBigDecimal(\"amountAlreadyIncluded\"))\n && adj.getBigDecimal(\"amountAlreadyIncluded\").signum() != 0;\n if (isTaxIncludedInPrice && (adj.getBigDecimal(\"amount\").signum() == 0)) {\n adj.set(\"amount\", adj.getBigDecimal(\"amountAlreadyIncluded\"));\n }\n // If the absolute invoiced amount >= the abs of the adjustment amount, the full amount has already been invoiced, so skip this\n // adjustment\n if (isTaxIncludedInPrice && adjAlreadyInvoicedAmount.abs().compareTo(adj.getBigDecimal(\"amount\").setScale(invoiceTypeDecimals,\n ROUNDING).abs()) > 0) {\n continue;\n }\n\n BigDecimal originalOrderItemQuantity = OrderReadHelper.getOrderItemQuantity(originalOrderItem);\n BigDecimal amount = BigDecimal.ZERO;\n if (originalOrderItemQuantity.signum() != 0) {\n if (adj.get(\"amount\") != null) {\n if (\"PROMOTION_ADJUSTMENT\".equals(adj.getString(\"orderAdjustmentTypeId\")) && adj.get(\"productPromoId\") != null) {\n /* Find negative amountAlreadyIncluded in OrderAdjustment to subtract it from discounted amount.\n As we stored negative sales tax amount in order adjustment for discounted\n item.\n */\n List<EntityExpr> exprs = UtilMisc.toList(EntityCondition.makeCondition(\"orderId\", EntityOperator.EQUALS,\n orderItem.getString(\"orderId\")),\n EntityCondition.makeCondition(\"orderItemSeqId\", EntityOperator.EQUALS, orderItem.getString(\"orderItemSeqId\")),\n EntityCondition.makeCondition(\"orderAdjustmentTypeId\", EntityOperator.EQUALS, \"VAT_TAX\"),\n EntityCondition.makeCondition(\"amountAlreadyIncluded\", EntityOperator.LESS_THAN, BigDecimal.ZERO));\n EntityCondition andCondition = EntityCondition.makeCondition(exprs, EntityOperator.AND);\n GenericValue orderAdjustment = EntityUtil.getFirst(delegator.findList(\"OrderAdjustment\", andCondition, null, null,\n null, false));\n if (UtilValidate.isNotEmpty(orderAdjustment)) {\n amount =\n adj.getBigDecimal(\"amount\").subtract(orderAdjustment.getBigDecimal(\"amountAlreadyIncluded\")).setScale(100,\n ROUNDING);\n } else {\n amount = adj.getBigDecimal(\"amount\");\n }\n } else {\n // pro-rate the amount\n // set decimals = 100 means we don't round this intermediate value, which is very important\n if (isTaxIncludedInPrice) {\n BigDecimal priceWithTax = originalOrderItem.getBigDecimal(\"unitPrice\");\n // Get tax included in item price\n amount = priceWithTax.subtract(billingAmount);\n amount = amount.multiply(billingQuantity);\n // get adjustment amount\n /* Get tax amount of other invoice and calculate remaining amount need to store in invoice item(Handle case\n of of partial shipment and promotional item)\n to adjust tax amount in invoice item.\n */\n BigDecimal otherInvoiceTaxAmount = BigDecimal.ZERO;\n GenericValue orderAdjBilling = EntityQuery.use(delegator).from(\"OrderAdjustmentBilling\").where(\n \"orderAdjustmentId\", adj.getString(\"orderAdjustmentId\")).queryFirst();\n if (UtilValidate.isNotEmpty(orderAdjBilling)) {\n //FIXME: Need to check here isTaxIncludedInPrice pass to use cache\n List<GenericValue> invoiceItems = EntityQuery.use(delegator).from(\"InvoiceItem\").where(\"invoiceId\",\n orderAdjBilling.getString(\"invoiceId\"), \"invoiceItemTypeId\", \"ITM_SALES_TAX\", \"productId\",\n originalOrderItem.getString(\"productId\")).cache(isTaxIncludedInPrice).queryList();\n for (GenericValue invoiceItem : invoiceItems) {\n otherInvoiceTaxAmount = otherInvoiceTaxAmount.add(invoiceItem.getBigDecimal(\"amount\"));\n }\n if (otherInvoiceTaxAmount.compareTo(BigDecimal.ZERO) > 0) {\n BigDecimal remainingAmount = adj.getBigDecimal(\"amountAlreadyIncluded\").subtract(otherInvoiceTaxAmount);\n amount = amount.min(remainingAmount);\n }\n }\n amount = amount.min(adj.getBigDecimal(\"amountAlreadyIncluded\")).setScale(100, ROUNDING);\n } else {\n amount = adj.getBigDecimal(\"amount\").divide(originalOrderItemQuantity, 100, ROUNDING);\n amount = amount.multiply(billingQuantity);\n }\n }\n // Tax needs to be rounded differently from other order adjustments\n if (\"SALES_TAX\".equals(adj.getString(\"orderAdjustmentTypeId\"))) {\n amount = amount.setScale(TAX_DECIMALS, TAX_ROUNDING);\n } else {\n amount = amount.setScale(invoiceTypeDecimals, ROUNDING);\n }\n } else if (adj.get(\"sourcePercentage\") != null) {\n // pro-rate the amount\n // set decimals = 100 means we don't round this intermediate value, which is very important\n BigDecimal percent = adj.getBigDecimal(\"sourcePercentage\");\n percent = percent.divide(new BigDecimal(100), 100, ROUNDING);\n amount = billingAmount.multiply(percent);\n amount = amount.divide(originalOrderItemQuantity, 100, ROUNDING);\n amount = amount.multiply(billingQuantity);\n amount = amount.setScale(invoiceTypeDecimals, ROUNDING);\n }\n }\n if (amount.signum() != 0) {\n Map<String, Object> createInvoiceItemAdjContext = new HashMap<>();\n createInvoiceItemAdjContext.put(\"invoiceId\", invoiceId);\n createInvoiceItemAdjContext.put(\"invoiceItemSeqId\", invoiceItemSeqId);\n createInvoiceItemAdjContext.put(\"invoiceItemTypeId\", getInvoiceItemType(delegator, adj.getString(\"orderAdjustmentTypeId\"),\n null, invoiceType, \"INVOICE_ITM_ADJ\"));\n createInvoiceItemAdjContext.put(\"quantity\", BigDecimal.ONE);\n createInvoiceItemAdjContext.put(\"amount\", amount);\n createInvoiceItemAdjContext.put(\"productId\", orderItem.get(\"productId\"));\n createInvoiceItemAdjContext.put(\"productFeatureId\", orderItem.get(\"productFeatureId\"));\n createInvoiceItemAdjContext.put(\"overrideGlAccountId\", adj.get(\"overrideGlAccountId\"));\n createInvoiceItemAdjContext.put(\"parentInvoiceId\", invoiceId);\n createInvoiceItemAdjContext.put(\"parentInvoiceItemSeqId\", parentInvoiceItemSeqId);\n createInvoiceItemAdjContext.put(\"userLogin\", userLogin);\n createInvoiceItemAdjContext.put(\"taxAuthPartyId\", adj.get(\"taxAuthPartyId\"));\n createInvoiceItemAdjContext.put(\"taxAuthGeoId\", adj.get(\"taxAuthGeoId\"));\n createInvoiceItemAdjContext.put(\"taxAuthorityRateSeqId\", adj.get(\"taxAuthorityRateSeqId\"));\n\n // some adjustments fill out the comments field instead\n String description = (UtilValidate.isEmpty(adj.getString(\"description\")) ? adj.getString(\"comments\") : adj.getString(\n \"description\"));\n createInvoiceItemAdjContext.put(\"description\", description);\n\n // invoice items for sales tax are not taxable themselves\n // TODO: This is not an ideal solution. Instead, we need to use OrderAdjustment.includeInTax when it is implemented\n if (!(\"SALES_TAX\".equals(adj.getString(\"orderAdjustmentTypeId\")))) {\n createInvoiceItemAdjContext.put(\"taxableFlag\", product.get(\"taxable\"));\n }\n\n // If the OrderAdjustment is associated to a ProductPromo,\n // and the field ProductPromo.overrideOrgPartyId is set,\n // copy the value to InvoiceItem.overrideOrgPartyId: this\n // represent an organization override for the payToPartyId\n if (UtilValidate.isNotEmpty(adj.getString(\"productPromoId\"))) {\n try {\n GenericValue productPromo = adj.getRelatedOne(\"ProductPromo\", false);\n if (UtilValidate.isNotEmpty(productPromo.getString(\"overrideOrgPartyId\"))) {\n createInvoiceItemAdjContext.put(\"overrideOrgPartyId\", productPromo.getString(\"overrideOrgPartyId\"));\n }\n } catch (GenericEntityException e) {\n Debug.logError(e, \"Error looking up ProductPromo with id [\" + adj.getString(\"productPromoId\") + \"]\", MODULE);\n }\n }\n\n Map<String, Object> createInvoiceItemAdjResult = dispatcher.runSync(\"createInvoiceItem\", createInvoiceItemAdjContext);\n if (ServiceUtil.isError(createInvoiceItemAdjResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceItemFromOrder\", locale), null, null, createInvoiceItemAdjResult);\n }\n\n // Create the OrderAdjustmentBilling record\n Map<String, Object> createOrderAdjustmentBillingContext = new HashMap<>();\n createOrderAdjustmentBillingContext.put(\"orderAdjustmentId\", adj.getString(\"orderAdjustmentId\"));\n createOrderAdjustmentBillingContext.put(\"invoiceId\", invoiceId);\n createOrderAdjustmentBillingContext.put(\"invoiceItemSeqId\", invoiceItemSeqId);\n createOrderAdjustmentBillingContext.put(\"amount\", amount);\n createOrderAdjustmentBillingContext.put(\"userLogin\", userLogin);\n\n Map<String, Object> createOrderAdjustmentBillingResult = dispatcher.runSync(\"createOrderAdjustmentBilling\",\n createOrderAdjustmentBillingContext);\n if (ServiceUtil.isError(createOrderAdjustmentBillingResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingOrderAdjustmentBillingFromOrder\", locale), null, null,\n createOrderAdjustmentBillingContext);\n }\n\n // this adjustment amount\n BigDecimal thisAdjAmount = amount;\n\n // adjustments only apply to totals when they are not tax or shipping adjustments\n if (!\"SALES_TAX\".equals(adj.getString(\"orderAdjustmentTypeId\"))\n && !\"SHIPPING_ADJUSTMENT\".equals(adj.getString(\"orderAdjustmentTypeId\"))) {\n // increment the invoice subtotal\n invoiceSubTotal = invoiceSubTotal.add(thisAdjAmount).setScale(100, ROUNDING);\n\n // add to the ship amount only if it applies to this item\n if (shippingApplies) {\n invoiceShipProRateAmount = invoiceShipProRateAmount.add(thisAdjAmount).setScale(invoiceTypeDecimals, ROUNDING);\n }\n }\n\n // increment the counter\n invoiceItemSeqNum++;\n invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n }\n }\n }\n\n // create header adjustments as line items -- always to tax/shipping last\n Map<GenericValue, BigDecimal> shipAdjustments = new HashMap<>();\n Map<GenericValue, BigDecimal> taxAdjustments = new HashMap<>();\n\n List<GenericValue> headerAdjustments = orh.getOrderHeaderAdjustments();\n for (GenericValue adj : headerAdjustments) {\n\n // Check against OrderAdjustmentBilling to see how much of this adjustment has already been invoiced\n BigDecimal adjAlreadyInvoicedAmount = null;\n try {\n Map<String, Object> checkResult = dispatcher.runSync(\"calculateInvoicedAdjustmentTotal\", UtilMisc.toMap(\"orderAdjustment\", adj));\n if (ServiceUtil.isError(checkResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingTroubleCallingCalculateInvoicedAdjustmentTotalService\", locale));\n }\n adjAlreadyInvoicedAmount = ((BigDecimal) checkResult.get(\"invoicedTotal\")).setScale(invoiceTypeDecimals, ROUNDING);\n } catch (GenericServiceException e) {\n Debug.logError(e, \"Accounting trouble calling calculateInvoicedAdjustmentTotal service\", MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingTroubleCallingCalculateInvoicedAdjustmentTotalService\", locale));\n }\n\n // If the absolute invoiced amount >= the abs of the adjustment amount, the full amount has already been invoiced, so skip this\n // adjustment\n if (adjAlreadyInvoicedAmount.abs().compareTo(adj.getBigDecimal(\"amount\").setScale(invoiceTypeDecimals, ROUNDING).abs()) >= 0) {\n continue;\n }\n\n if (\"SHIPPING_CHARGES\".equals(adj.getString(\"orderAdjustmentTypeId\"))) {\n shipAdjustments.put(adj, adjAlreadyInvoicedAmount);\n } else if (\"SALES_TAX\".equals(adj.getString(\"orderAdjustmentTypeId\"))) {\n taxAdjustments.put(adj, adjAlreadyInvoicedAmount);\n } else {\n // these will effect the shipping pro-rate (unless commented)\n // other adjustment type\n BigDecimal divisor = orderSubTotal;\n BigDecimal multiplier = invoiceSubTotal;\n if (BigDecimal.ZERO.compareTo(multiplier) == 0 && BigDecimal.ZERO.compareTo(divisor) == 0) {\n // if multiplier and divisor are equal to zero then use the quantities instead of the amounts\n // this is useful when the order has free items and misc charges\n divisor = orderQuantity;\n multiplier = invoiceQuantity;\n }\n\n calcHeaderAdj(delegator, adj, invoiceType, invoiceId, invoiceItemSeqId, divisor, multiplier,\n adj.getBigDecimal(\"amount\").setScale(invoiceTypeDecimals, ROUNDING), invoiceTypeDecimals, ROUNDING, userLogin,\n dispatcher, locale);\n // invoiceShipProRateAmount += adjAmount;\n // do adjustments compound or are they based off subtotal? Here we will (unless commented)\n // invoiceSubTotal += adjAmount;\n\n // increment the counter\n invoiceItemSeqNum++;\n invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n }\n }\n\n // next do the shipping adjustments. Note that we do not want to add these to the invoiceSubTotal or orderSubTotal for pro-rating tax\n // later, as that would cause\n // numerator/denominator problems when the shipping is not pro-rated but rather charged all on the first invoice\n for (Map.Entry<GenericValue, BigDecimal> set : shipAdjustments.entrySet()) {\n BigDecimal adjAlreadyInvoicedAmount = set.getValue();\n GenericValue adj = set.getKey();\n\n if (\"N\".equalsIgnoreCase(prorateShipping)) {\n\n // Set the divisor and multiplier to 1 to avoid prorating\n BigDecimal divisor = BigDecimal.ONE;\n BigDecimal multiplier = BigDecimal.ONE;\n\n // The base amount in this case is the adjustment amount minus the total already invoiced for that adjustment, since\n // it won't be prorated\n BigDecimal baseAmount = adj.getBigDecimal(\"amount\").setScale(invoiceTypeDecimals, ROUNDING).subtract(adjAlreadyInvoicedAmount);\n calcHeaderAdj(delegator, adj, invoiceType, invoiceId, invoiceItemSeqId, divisor, multiplier, baseAmount,\n invoiceTypeDecimals, ROUNDING, userLogin, dispatcher, locale);\n } else {\n\n // Pro-rate the shipping amount based on shippable information\n BigDecimal divisor = shippableAmount;\n BigDecimal multiplier = invoiceShipProRateAmount;\n if (BigDecimal.ZERO.compareTo(multiplier) == 0 && BigDecimal.ZERO.compareTo(divisor) == 0) {\n // if multiplier and divisor are equal to zero then use the quantities instead of the amounts\n // this is useful when the order has free items and shipping charges\n divisor = shippableQuantity;\n multiplier = invoiceShippableQuantity;\n }\n\n // The base amount in this case is the adjustment amount, since we want to prorate based on the full amount\n BigDecimal baseAmount = adj.getBigDecimal(\"amount\").setScale(invoiceTypeDecimals, ROUNDING);\n calcHeaderAdj(delegator, adj, invoiceType, invoiceId, invoiceItemSeqId, divisor, multiplier,\n baseAmount, invoiceTypeDecimals, ROUNDING, userLogin, dispatcher, locale);\n }\n\n // Increment the counter\n invoiceItemSeqNum++;\n invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n }\n\n // last do the tax adjustments\n String prorateTaxes = productStore != null ? productStore.getString(\"prorateTaxes\") : \"Y\";\n if (prorateTaxes == null) {\n prorateTaxes = \"Y\";\n }\n for (Map.Entry<GenericValue, BigDecimal> entry : taxAdjustments.entrySet()) {\n GenericValue adj = entry.getKey();\n BigDecimal adjAlreadyInvoicedAmount = entry.getValue();\n BigDecimal adjAmount = null;\n\n if (\"N\".equalsIgnoreCase(prorateTaxes)) {\n\n // Set the divisor and multiplier to 1 to avoid prorating\n BigDecimal divisor = BigDecimal.ONE;\n BigDecimal multiplier = BigDecimal.ONE;\n\n // The base amount in this case is the adjustment amount minus the total already invoiced for that adjustment, since\n // it won't be prorated\n BigDecimal baseAmount = adj.getBigDecimal(\"amount\").setScale(TAX_DECIMALS, TAX_ROUNDING).subtract(adjAlreadyInvoicedAmount);\n adjAmount = calcHeaderAdj(delegator, adj, invoiceType, invoiceId, invoiceItemSeqId,\n divisor, multiplier, baseAmount, TAX_DECIMALS, TAX_ROUNDING, userLogin, dispatcher, locale);\n } else {\n\n // Pro-rate the tax amount based on shippable information\n BigDecimal divisor = orderSubTotal;\n BigDecimal multiplier = invoiceSubTotal;\n\n // The base amount in this case is the adjustment amount, since we want to prorate based on the full amount\n BigDecimal baseAmount = adj.getBigDecimal(\"amount\");\n adjAmount = calcHeaderAdj(delegator, adj, invoiceType, invoiceId, invoiceItemSeqId,\n divisor, multiplier, baseAmount, TAX_DECIMALS, TAX_ROUNDING, userLogin, dispatcher, locale);\n }\n invoiceSubTotal = invoiceSubTotal.add(adjAmount).setScale(invoiceTypeDecimals, ROUNDING);\n\n // Increment the counter\n invoiceItemSeqNum++;\n invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, INVOICE_ITEM_SEQUENCE_ID_DIGITS);\n }\n\n // check for previous order payments\n List<GenericValue> orderPaymentPrefs = EntityQuery.use(delegator).from(\"OrderPaymentPreference\")\n .where(EntityCondition.makeCondition(\"orderId\", EntityOperator.EQUALS, orderId),\n EntityCondition.makeCondition(\"statusId\", EntityOperator.NOT_EQUAL, \"PAYMENT_CANCELLED\")).queryList();\n List<GenericValue> currentPayments = new LinkedList<>();\n for (GenericValue paymentPref : orderPaymentPrefs) {\n List<GenericValue> payments = paymentPref.getRelated(\"Payment\", null, null, false);\n currentPayments.addAll(payments);\n }\n // apply these payments to the invoice if they have any remaining amount to apply\n for (GenericValue payment : currentPayments) {\n if (\"PMNT_VOID\".equals(payment.getString(\"statusId\")) || \"PMNT_CANCELLED\".equals(payment.getString(\"statusId\"))) {\n continue;\n }\n BigDecimal notApplied = PaymentWorker.getPaymentNotApplied(payment);\n if (notApplied.signum() > 0) {\n Map<String, Object> appl = new HashMap<>();\n appl.put(\"paymentId\", payment.get(\"paymentId\"));\n appl.put(\"invoiceId\", invoiceId);\n appl.put(\"billingAccountId\", billingAccountId);\n appl.put(\"amountApplied\", notApplied);\n appl.put(\"userLogin\", userLogin);\n Map<String, Object> createPayApplResult = dispatcher.runSync(\"createPaymentApplication\", appl);\n if (ServiceUtil.isError(createPayApplResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceFromOrder\", locale), null, null, createPayApplResult);\n }\n }\n }\n\n // Should all be in place now. Depending on the ProductStore.autoApproveInvoice setting, set status to INVOICE_READY (unless it's a\n // purchase invoice, which we set to INVOICE_IN_PROCESS)\n String autoApproveInvoice = productStore != null ? productStore.getString(\"autoApproveInvoice\") : \"Y\";\n if (!\"N\".equals(autoApproveInvoice)) {\n String nextStatusId = \"PURCHASE_INVOICE\".equals(invoiceType) ? \"INVOICE_IN_PROCESS\" : \"INVOICE_READY\";\n Map<String, Object> setInvoiceStatusResult = dispatcher.runSync(\"setInvoiceStatus\", UtilMisc.<String, Object>toMap(\"invoiceId\",\n invoiceId, \"statusId\", nextStatusId, \"userLogin\", userLogin));\n if (ServiceUtil.isError(setInvoiceStatusResult)) {\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingErrorCreatingInvoiceFromOrder\", locale), null, null, setInvoiceStatusResult);\n }\n }\n\n Map<String, Object> resp = ServiceUtil.returnSuccess();\n resp.put(\"invoiceId\", invoiceId);\n resp.put(\"invoiceTypeId\", invoiceType);\n return resp;\n } catch (GenericEntityException e) {\n Debug.logError(e, \"Entity/data problem creating invoice from order items: \" + e.toString(), MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingEntityDataProblemCreatingInvoiceFromOrderItems\",\n UtilMisc.toMap(\"reason\", e.toString()), locale));\n } catch (GenericServiceException e) {\n Debug.logError(e, \"Service/other problem creating invoice from order items: \" + e.toString(), MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,\n \"AccountingServiceOtherProblemCreatingInvoiceFromOrderItems\",\n UtilMisc.toMap(\"reason\", e.toString()), locale));\n }\n }", "@Test\n public void addInvoice() {\n // Add a Customer to the database\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Verify it was added to the database\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n\n // Add an Item to the database\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Verify it was added\n Item itemCopy = service.findItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n\n // Add an InvoiceItem to the database\n Invoice_Item invoiceItem = new Invoice_Item();\n invoiceItem.setItem_id(item.getItem_id());\n invoiceItem.setQuantity(42);\n invoiceItem.setUnit_rate(new BigDecimal(\"4.99\"));\n invoiceItem.setDiscount(new BigDecimal(\"0.99\"));\n\n // Collect all the InvoiceItems into a list\n List<Invoice_Item> invoiceItemList = new ArrayList<>();\n invoiceItemList.add(invoiceItem);\n\n // Create an InvoiceViewModel\n InvoiceViewModel invoiceViewModel = new InvoiceViewModel();\n invoiceViewModel.setCustomer_id(customer.getCustomerId());\n invoiceViewModel.setOrder_date(LocalDate.of(2000,1,1));\n invoiceViewModel.setPickup_date(LocalDate.of(2000,2,2));\n invoiceViewModel.setReturn_date(LocalDate.of(2000,3,3));\n invoiceViewModel.setLate_fee(new BigDecimal(\"4.99\"));\n invoiceViewModel.setInvoice_items(invoiceItemList);\n invoiceViewModel = service.createInvoiceViewModel(invoiceViewModel);\n\n // Test the addInvoice() method\n InvoiceViewModel invoiceViewModelCopy = service.getInvoiceViewModel(invoiceViewModel.getInvoice_id());\n TestCase.assertEquals(invoiceViewModelCopy, invoiceViewModel);\n\n }", "public interface IConfirmationIosNumberService {\n\n\t/**\n\t * <p>\n\t * Title: findList\n\t * </p>\n\t * <p>\n\t * Description:广告主确认数录入List\n\t * </p>\n\t * \n\t * @param bean\n\t * @param pageInfo\n\t * @return\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-23\n\t * @return List<ConfirmationNumberVo>\n\t * @version 1.0\n\t */\n\n\tpublic List<ConfirmationIosNumberVo> findList(ConfirmIosNumberbean bean,\n\t\t\tIPageInfo pageInfo) throws Exception;\n\n\t/**\n\t* <p>Title: confirmationNumber</p>\n\t* <p>Description:IOS日确认数录入</p>\n\t* @param id\n\t* @param number\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void confIosNum(Long id, Integer number) throws Exception;\n\n\t/**\n\t* <p>Title: fractionIos</p>\n\t* <p>Description:IOS日确认数分数</p>\n\t* @param id\n\t* @return\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-8\n\t* @return List<FractionIosNumberVo>\n\t* @version 1.0\n\t */\n\tpublic List<FractionIosNumberVo> fractionIos(Long id) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: saveConfirm\n\t * </p>\n\t * <p>\n\t * Description:保存渠道的效果数\n\t * </p>\n\t * \n\t * @param id\n\t * @param confirm_num\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t * @param comfirm_cost \n\t */\n\tpublic void saveConfIos(Long[] id, Integer[] confirm_num, Integer[] comfirm_cost, Long fraction_id)\n\t\t\tthrows Exception;\n\n\t/**\n\t* <p>Title: submitConfNumIos</p>\n\t* <p>Description:提交IOS日确认数</p>\n\t* @param ids\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void submitConfNumIos(String ids,SysUserVo manageUser) throws Exception;\n\n\t/**\n\t* <p>Title: findDetailByPage</p>\n\t* <p>Description:ios效果明细List</p>\n\t* @param bean\n\t* @param pageInfo\n\t* @return\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-14\n\t* @return List<IosNumDetailVo>\n\t* @version 1.0\n\t */\n\n\tpublic List<IosNumDetailVo> findDetailByPage(\n\t\t\tIosNumDetailbean bean, IPageInfo pageInfo) throws Exception;\n\t\n\t\n\t\n\n\t/**\n\t* <p>Title: findAll</p>\n\t* <p>Description:导出详细报表</p>\n\t* @param bean\n\t* @return\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-14\n\t* @return List<IosNumDetailVo>\n\t* @version 1.0\n\t */\n\tpublic List<IosNumDetailVo> findAll(IosNumDetailbean bean)\n\t\t\tthrows Exception;\n\n\t/**\n\t * \n\t* <p>Title: getNumberSum</p>\n\t* <p>Description:TODO</p>\n\t* @param bean\n\t* @return\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-14\n\t* @return AdvNumberSumVo\n\t* @version 1.0\n\t */\n\tpublic AdvNumberSumVo getNumberSum(IosNumDetailbean bean)\n\t\t\tthrows Exception;\n\n\t/**\n\t* <p>Title: restConfIosNum</p>\n\t* <p>Description:IOS日确认数重置</p>\n\t* @param id\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void restConfIosNum(Long id) throws Exception;\n\n\t/**\n\t* <p>Title: delConfIosNum</p>\n\t* <p>Description:IOS日确认数删除</p>\n\t* @param id\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-11-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void delConfIosNum(Long id) throws Exception;\n}", "@Override\n public JSONObject viewFnInvoiceByDirector() {\n String username = null;\n return in_invoicedao.viewInvoiceByDirector(username);\n }", "public void tofetchAllRecords(){\n\t\tsetPaymentAmountPanel(false);\n\t\tlstPlaceOrderPendingTransction.clear();\n\t\tList<RatePlaceOrder> lstRatePlaceOrder=placeOrderPendingTransctionService.toFetchAllRecordsFromDb(getCustomerId());\n\t\tif(lstRatePlaceOrder.size()>0){\n\t\t\tfor (RatePlaceOrder ratePlaceOrder : lstRatePlaceOrder) {\n\t\t\t\tPlaceOrderPendingTransctionDataTable placeOrderPendingDT=new PlaceOrderPendingTransctionDataTable();\n\t\t\t\tplaceOrderPendingDT.setRateOfferedPk(ratePlaceOrder.getRatePlaceOrderId());\n\t\t\t\tplaceOrderPendingDT.setCustomerId(ratePlaceOrder.getCustomerId());\n\t\t\t\tString custmerName=null;\n\t\t\t\tBigDecimal custrRef=null;\n\t\t\t\tString BeneName=null;\n\t\t\t\tString beneBankName=null;\n\t\t\t\tString curQtyName=null;\n\t\t\t\t//to Fetch Customer reference and Name\n\t\t\t\tcustrRef=gSMPlaceOrderRateFeedService.toFetchCustomerRef(ratePlaceOrder.getCustomerId());\n\t\t\t\tcustmerName=generalService.getCustomerNameCustomerId(ratePlaceOrder.getCustomerId());\n\t\t\t\tplaceOrderPendingDT.setCustomerName(custmerName);\n\t\t\t\tplaceOrderPendingDT.setCustomerRefNo(custrRef);\n\t\t\t\tplaceOrderPendingDT.setCustomerRefAndName(custrRef+ \"-\" +custmerName);\n\t\t\t\tplaceOrderPendingDT.setDocumentNumber(ratePlaceOrder.getDocumentNumber());\n\t\t\t\t//to bene name\n\t\t\t\tplaceOrderPendingDT.setBeneficiaryMasterId(ratePlaceOrder.getBeneficiaryMasterId().getBeneficaryMasterSeqId());\n\t\t\t\tBeneName=gSMPlaceOrderRateFeedService.toFetchBeneficiaryName(ratePlaceOrder.getBeneficiaryMasterId().getBeneficaryMasterSeqId());\n\t\t\t\tplaceOrderPendingDT.setBeneficiaryName(BeneName);\n\t\t\t\t//bene bank name\n\t\t\t\tplaceOrderPendingDT.setBeneficiaryBankId(ratePlaceOrder.getBeneficiaryBankId());\n\t\t\t\tbeneBankName=generalService.getBankName(ratePlaceOrder.getBeneficiaryBankId());\n\t\t\t\tplaceOrderPendingDT.setBeneficiaryBankName(beneBankName);\n\t\t\t\tplaceOrderPendingDT.setRateOffered(ratePlaceOrder.getRateOffered());\n\t\t\t\tplaceOrderPendingDT.setTransctionAmount(ratePlaceOrder.getTransactionAmount());\n\t\t\t\tplaceOrderPendingDT.setCurrencyId(ratePlaceOrder.getDestinationCurrenyId());\n\t\t\t\t//currency name qty code\n\t\t\t\t//ratePlaceOrder.getBeneficiaryMasterId().getBeneficaryMasterSeqId(),ratePlaceOrder.getAccountSeqquenceId().getBeneficaryAccountSeqId()\n\t\t\t\t/*curQtyName=gSMPlaceOrderRateFeedService.toFetchCurrencyQtyName(ratePlaceOrder.getCurrencyId());\n\t\t\t\tplaceOrderPendingDT.setCurrencyQtyName(\"[\"+curQtyName+\"]\");\n\t\t\t\tplaceOrderPendingDT.setAmountAndQtyName(ratePlaceOrder.getTransactionAmount()+ \"-\" +curQtyName);*/\n\t\t\t\t//remittance and service , delivery\n\t\t\t\tplaceOrderPendingDT.setRemitServiceId(ratePlaceOrder.getServiceMasterId());\n\t\t\t\tplaceOrderPendingDT.setRemitRemittanceId(ratePlaceOrder.getRemittanceModeId());\n\t\t\t\tplaceOrderPendingDT.setRemitDeliveryId(ratePlaceOrder.getDeliveryModeId());\n\t\t\t\tplaceOrderPendingDT.setCreatedBy(ratePlaceOrder.getCreatedBy());\n\t\t\t\tplaceOrderPendingDT.setCreatedDate(ratePlaceOrder.getCreatedDate());\n\t\t\t\tplaceOrderPendingDT.setModifiedBy(ratePlaceOrder.getModifiedBy());\n\t\t\t\tplaceOrderPendingDT.setModifiedDate(ratePlaceOrder.getModifiedDate());\n\t\t\t\tplaceOrderPendingDT.setApprovedBy(ratePlaceOrder.getApprovedBy());\n\t\t\t\tplaceOrderPendingDT.setApprovedDate(ratePlaceOrder.getApprovedDate());\n\t\t\t\tplaceOrderPendingDT.setIsActive(ratePlaceOrder.getIsActive());\n\t\t\t\tplaceOrderPendingDT.setRoutingCountry(ratePlaceOrder.getRoutingCountryId());\n\t\t\t\tplaceOrderPendingDT.setRoutingBank(ratePlaceOrder.getRoutingBankId());\n\t\t\t\tplaceOrderPendingDT.setRemitDocumentNumber(ratePlaceOrder.getApplDocumentNumber());\n\t\t\t\tplaceOrderPendingDT.setRemitDocumentFinanceYear(ratePlaceOrder.getApplDocumentFinanceYear());\n\t\t\t\tplaceOrderPendingDT.setPaymentCode(ratePlaceOrder.getCollectionMode());\n\t\t\t\tplaceOrderPendingDT.setBeneficiaryCountryId(ratePlaceOrder.getBeneficiaryCountryId());\n\n\t\t\t\tList<RemittanceApplication> lstRemittanceApplication= placeOrderPendingTransctionService.getTransactionDetails(ratePlaceOrder.getRatePlaceOrderId());\n\n\t\t\t\tif(lstRemittanceApplication!=null && lstRemittanceApplication.size()>0)\n\t\t\t\t{\n\t\t\t\t\tBigDecimal equivalentRemitAmount= lstRemittanceApplication.get(0).getLocalNetTranxAmount();\n\t\t\t\t\tBigDecimal equivalentCurrencyId=lstRemittanceApplication.get(0).getExCurrencyMasterByForeignCurrencyId().getCurrencyId();\n\t\t\t\t\tBigDecimal equivalentForeignTranxAmount= lstRemittanceApplication.get(0).getForeignTranxAmount();\n\n\t\t\t\t\tList<PopulateData> lstofCurrency = new ArrayList<PopulateData>();\n\n\t\t\t\t\tlstofCurrency= iPlaceOnOrderCreationService.getBasedOnCountyCurrency(ratePlaceOrder.getBeneficiaryCountryId());\n\t\t\t\t\tif(lstofCurrency!=null && lstofCurrency.size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(lstofCurrency.get(0).getPopulateId().compareTo(ratePlaceOrder.getDestinationCurrenyId())==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurQtyName=gSMPlaceOrderRateFeedService.toFetchCurrencyQtyName(ratePlaceOrder.getDestinationCurrenyId());\n\t\t\t\t\t\t\tplaceOrderPendingDT.setCurrencyQtyName(\"[\"+curQtyName+\"]\");\n\t\t\t\t\t\t\tplaceOrderPendingDT.setAmountAndQtyName(ratePlaceOrder.getTransactionAmount()+ \"-\" +\"[\"+curQtyName+\"]\");\n\n\t\t\t\t\t\t\tplaceOrderPendingDT.setRemitLocalAmount(equivalentRemitAmount);\n\n\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurQtyName=gSMPlaceOrderRateFeedService.toFetchCurrencyQtyName(equivalentCurrencyId);\n\t\t\t\t\t\t\tplaceOrderPendingDT.setAmountAndQtyName(equivalentForeignTranxAmount+ \"-\" +\"[\"+curQtyName+\"]\");\n\t\t\t\t\t\t\tplaceOrderPendingDT.setRemitLocalAmount(equivalentRemitAmount);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlstPlaceOrderPendingTransction.add(placeOrderPendingDT);\n\t\t\t}\n\t\t\tif(lstPlaceOrderPendingTransction.size()>0)\n\t\t\t{\n\t\t\t\tsetPaymentAmountPanel(true);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Besoin> BesionByDate (String dateStart, String dateEnd) {\n\t\treturn dao.BesionByDate(dateStart, dateEnd);\n\t}", "public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }", "public ArrayList<Invoice> getAllInvoices() throws SQLException {\n ArrayList<Invoice> invoices = new ArrayList<>();\n try (\n Connection conn = DriverManager.getConnection(Main.getDBPath());\n PreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM invoice\");\n PreparedStatement productStmt = conn.prepareStatement(\"SELECT product FROM invoice_items WHERE invoice_items.invoice = ?\");\n ResultSet result = stmt.executeQuery()\n ) {\n while (result.next()) {\n Invoice invoice = new Invoice(result.getInt(\"invoice_id\"), result.getInt(\"customer\"), result.getString(\"dato\"));\n productStmt.setInt(1, invoice.getInvoiceID());\n ResultSet productResult = productStmt.executeQuery();\n while (productResult.next()) {\n invoice.addProduct(productResult.getInt(\"product\"));\n }\n invoices.add(invoice);\n }\n }\n return invoices;\n }", "@Override\n @Transactional(readOnly = true)\n public List<BalanceDto> reporteBalanceService(String nameDataSource, String fechInicial, String fechaFinal,Long idsede) {\n return reportesDao.reporteBalance(nameDataSource, fechInicial, fechaFinal,idsede);\n }", "public interface DailyFightGroupOrderReportService {\n\n /**\n * 返回导出的数据\n * @param startTime\n * @param endTime\n * @return\n */\n List<List<Object>> listFightGroupOrderReport(Date startTime,Date endTime);\n}", "public interface IOnLineAnalyticsService {\n /**\n * 查询投放金额\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryLoanAmtData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询营销策略\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryMarketingStrategyData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询品类构成\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryDeptConstituteData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询客户渗透率\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryCustomPermeabilityData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n\n /**\n * 查询人员构成数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryPersonConstituteData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询非易购员工来源渠道数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryPersonNotYgChannelData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询新老客户渠道数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n Map queryNewOrOldCustomDataByChannelData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n /**\n * 查询营销能力分析数据\n * @param beginDate\n * @param endDate\n * @param compareBeginDate\n * @param compareEndDate\n * @return\n */\n List<Map> queryMarketingAnalysisData(String beginDate, String endDate, String compareBeginDate, String compareEndDate);\n}", "Long getInvoiceId();", "@Test\n public void getInvoiceTest(){\n InvoiceItemViewModel invoiceItem1 = new InvoiceItemViewModel();\n invoiceItem1.setInvoiceItemId(1);\n invoiceItem1.setInvoiceId(1);\n invoiceItem1.setInventoryId(3);\n invoiceItem1.setQuantity(3);\n invoiceItem1.setUnitPrice(new BigDecimal(\"200.23\"));\n\n InvoiceItemViewModel invoiceItem2 = new InvoiceItemViewModel();\n invoiceItem2.setInvoiceItemId(2);\n invoiceItem2.setInvoiceId(1);\n invoiceItem2.setInventoryId(1);\n invoiceItem2.setQuantity(2);\n invoiceItem2.setUnitPrice(new BigDecimal(\"200.23\"));\n\n InvoiceItemViewModel invoiceItem3 = new InvoiceItemViewModel();\n invoiceItem3.setInvoiceItemId(3);\n invoiceItem3.setInvoiceId(1);\n invoiceItem3.setInventoryId(4);\n invoiceItem3.setQuantity(2);\n invoiceItem3.setUnitPrice(new BigDecimal(\"300.54\"));\n\n List<InvoiceItemViewModel> invoiceItems = new ArrayList<>();\n\n invoiceItems.add(invoiceItem1);\n invoiceItems.add(invoiceItem2);\n invoiceItems.add(invoiceItem3);\n\n //Creating the Expected Invoice\n InvoiceViewModel invoice = new InvoiceViewModel();\n\n invoice.setInvoiceId(1);\n invoice.setPurchaseDate(LocalDate.of(2019,12,13));\n invoice.setCustomerId(1);\n invoice.setItemList(invoiceItems);\n\n //Reading the Invoice from the Service\n InvoiceViewModel fromService = serviceLayer.getInvoice(invoice.getInvoiceId());\n\n assertEquals(invoice, fromService);\n\n }", "@Override\n public JSONObject viewFnInvoiceByExecutive(String username) {\n in_invoicedao.viewInvoiceByExecutiveID(username);\n return in_invoicedao.viewInvoiceByExecutiveID(username);\n }", "@Override\n public PageInfo<SmbmsBill> getAllBill(SmbmsBill bill) {\n List<SmbmsBill> allBill = smbmsbillmapper.getAllBill(bill);\n PageInfo<SmbmsBill> pageInfo = new PageInfo<SmbmsBill>(allBill);\n return pageInfo;\n }", "@Override\n public JSONObject loadInvoiceGrid() {\n\n return null;\n }", "public interface PurchaseOrderService {\n /**\n * create Purchase Order From Boq.\n * @param boqDetail boqDetail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromBoq(BoqDetail boqDetail, AppUser appUser);\n /**\n * add lines to Purchase Order Header.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param boqDetail boqDetail\n * @return boolean\n */\n boolean addLineToPoFromBoqDetail(PurchaseOrderHeader purchaseOrderHeader, BoqDetail boqDetail);\n\n /**\n * save Purchase Order Header into database.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param securityContext securityContext\n * @return response\n */\n CommonResponse savePurchaseOrder(PurchaseOrderHeader purchaseOrderHeader, SecurityContext securityContext);\n\n /**\n * get all purchase Order Header.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaders();\n\n /**\n * get PurchaseOrderHeader whole oblect per pohId.\n * @param pohId pohId.\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);\n /**\n /**\n * get product purchase items for specific supplier.\n * @param suppId suppId\n * @param searchStr searchStr\n * @return List of PruductPurchaseItem\n */\n List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);\n /**\n * get all purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);\n\n /**\n * get all purchase Order Header per orguid and status.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderNotFullyReceived();\n\n /**\n * get all purchase Order Header for specific supplier.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param suppId suppId\n * @param catalogNo catalogNo\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);\n\n /**\n * get all purchase Order Header for specific product.\n * @param prodId prodId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseLine> getAllPurchaseOrderOfProduct(long prodId);\n\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n GeneralSearchForm searchPurchaseOrderHeadersPaging(GeneralSearchForm searchForm);\n /**\n * create Purchase Order From Boq.\n * @param txnDetail sale order detail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromSaleOrder(TxnDetail txnDetail, AppUser appUser);\n\n /**\n * add lines to Purchase Order Header from txn detail.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param txnDetail txnDetail\n * @return true if successfull, otherwise return false;\n */\n boolean addLineToPoFromTxnDetail(PurchaseOrderHeader purchaseOrderHeader, TxnDetail txnDetail);\n\n /**\n * get all purchase order headers linked to specific sale order.\n * @param txhdId transaction header id.\n * @return List of purchase order linked to sale order\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderOfSaleOrder(long txhdId);\n\n /**\n * update status of linked BOQ.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedBoqStatus(long pohId);\n\n /**\n * delete purchase order per poh id.\n * @param pohId pohId\n * @return CommonResponse.\n */\n CommonResponse deletePurchaseOrderPerPhoId(long pohId);\n\n /**\n * update order status of linked sales orders.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedSaleOrderStatus(long pohId);\n\n /**\n * get all IN-PROGRESS and CONFIRMED purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param sprcId sprcId\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);\n}", "@Override\n\tpublic ArrayList<InBillsPO> getInBill(int start, int end) {\n\t\treturn null;\n\t}", "InvoiceStatus(String invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }", "public int getC_Invoice_ID();", "public interface IRefundDao {\n //分页查询所有\n List<Refund> findAll(@Param(\"obj\") Refund record, @Param(value = \"startPos\") Integer startPos, @Param(\"pageSize\") Integer pageSize);\n\n //查询对象\n Refund find(@Param(\"obj\") Refund record);\n\n //查询所有总数\n int findCount(@Param(\"obj\") Refund record);\n\n //添加数据\n int insert(Refund record);\n\n //修改数据\n int update(Refund record);\n\n //带时间区间分页查询所有\n List<Refund> findAllDate(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,@Param(\"endTime\") String endTime,@Param(value = \"startPos\") Integer startPos, @Param(\"pageSize\") Integer pageSize);\n\n //带时间区间查询总数\n int findCountDate(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,@Param(\"endTime\") String endTime);\n\n //带时间区间分页查询所有退款记录\n List<Refund> findRefundAll(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,@Param(\"endTime\") String endTime,@Param(value = \"startPos\") Integer startPos, @Param(\"pageSize\") Integer pageSize);\n\n //带时间区间查询退款记录总数\n int findRefundCount(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,@Param(\"endTime\") String endTime);\n\n //带时间区间分页查询所有退款记录\n List<Refund> findSellerAllDate(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,\n @Param(\"endTime\") String endTime,@Param(\"nick\") String nick,\n @Param(\"mobile\") String mobile,@Param(\"alipayAccount\") String alipayAccount,\n @Param(value = \"startPos\") Integer startPos,@Param(\"pageSize\") Integer pageSize);\n\n //带时间区间查询退款记录总数\n int findSellerCountDate(@Param(\"obj\") Refund record,@Param(\"startTime\") String startTime,\n @Param(\"endTime\") String endTime,@Param(\"nick\") String nick,\n @Param(\"mobile\") String mobile,@Param(\"alipayAccount\") String alipayAccount);\n\n}", "public Invoice(){\r\n this.userName = \"\";\r\n this.InvoiceCode = \"\";\r\n this.items = new ArrayList<>();\r\n this.amount = 0.0;\r\n \r\n }", "public int getInvoiceNumber() {\n return invoiceNumber;\n }", "public int getInvoiceNumber() {\n return invoiceNumber;\n }", "public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}", "public void setInvoiceStatus(InvoiceStatus invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }", "public interface AgentAuditService {\r\n\r\n Pagination<TblAgentInfoDo> queryAgentInfoList(Map map,TblAgentInfoDo tblAgentInfoDo) ;\r\n\r\n TblAgentInfoDo queryAgentById(String memberId);\r\n\r\n int auditAgent(String memberId, String errorFields, String remark, String userName,String autid);\r\n\r\n Pagination<Map<String,Object>> queryAgentAuditRecordList(Map<String,String> queryMap);\r\n\r\n List<TblAgentFeeInfoDo> queryAgentFeeById(String memberId);\r\n\r\n TblAgentAuditRecordDo queryAgentAuditReocrdById(String memberId);\r\n\r\n List<TblAgentInfoDo> selectAllAgentInfo();\r\n\r\n\r\n\r\n\r\n}", "public void showInvoiceNo(){\n\t}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@RequestMapping(value = \"/getreturned\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Booked>> getreturnedToday(@RequestParam(\"date\")@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {\n\t\ttry{\n\t\t\tEmployee employee=(Employee) userService.get(Integer.parseInt(httpSession.getAttribute(\"user\").toString()));\n\t\t\tBranchOffice branch=(employee.getBranchOffice());\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(branch, date));\n\t\t}catch(Exception e){\n\t\t\treturn ResponseEntity.ok(bookedService.getReturnedToday(date));\t\n\t\t}\n\t}", "public static ArrayList<CustomerBean> getCutomers(Date fromDate, Date toDate) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where created_on BETWEEN(\"\r\n\t\t\t\t\t+ fromDate + \"\" + toDate + \") ;\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "public interface ProductionReportReadService {\n\n /**\n * 根据id查询生产记录单条\n * @param id 主键 id\n * @return ProductionReport 对象\n */\n Response<ProductionReport> findById(Long id);\n /**\n * @param id 主 键\n * @return 状态\n */\n Response<Map<String, Object>> findStatusById(Long id);\n /**\n * 按状态查询当前养殖场的生产记录列表\n */\n Response<Paging<ProductionReport>> pagingProductionReport(Integer pageNo, Integer pageSize,Integer status,Long breedFactoryId);\n\n /**\n *存栏数合计值(只统计当前养殖场已生效,状态写死)\n */\n Response<Map> sumRestockBreedFactoryId(Long breedFactoryId);\n\n\n /**\n *按从日期、到日期和养殖场名称查询本市养殖场生产记录列表\n */\n Response<Paging<ProductionReport>> pagingProductionReports(Integer pageNo, Integer pageSize, Long breedFactoryId, Integer breedType, Date fromDate, Date toDate);\n\n /**\n * 政府端按物种统计存栏数合计值\n */\n Response<List<Map<String , Object>>>sumSpeciesStatistics(Long breedFactoryId);\n\n /**\n * 政府端按物种统计存栏数合计值\n * @param breedFactoryIds 养殖场ids\n * @return List<Map<String, Object>>\n */\n Response<List<Map<String, Object>>> sumChangeQuantityByAnimalType(List<Long> breedFactoryIds);\n\n /**\n * 按从日期、到日期和养殖场名称查询本市养殖场生产记录列表\n * @param pageNo 页码\n * @param pageSize 每页多少条\n * @param fromDate 从日期\n * @param toDate 到日期\n * @param breedFactoryIds 养殖场ids\n * @return Paging<ProductionReport>\n */\n Response<Paging<ProductionReport>> pagingProductionReportByArea(Integer pageNo, Integer pageSize,Date fromDate, Date toDate,List<Long> breedFactoryIds);\n\n /**\n *根据时间起始 状态 提交未提交 养殖厂查询(web端)\n */\n Response<Paging<ProductionReport>> pagingbytimes (Integer pageNo, Integer pageSize, Map<String,Object> criteria);\n\n /**\n * 根据第三种类 分组求和\n * @return List<Map<String , Object>>\n */\n Response<List<Map<String , Object>>> countSumByThirdType(Long breedFactoryId);\n\n ProductionReport findProductByRelateId(Long relateId);\n}", "List<InsureUnitTrend> queryInsureDate();", "public String getInvoice() {\n return invoice;\n }", "public interface StockTigerListService extends IService<StockTigerList> {\n\n Page<StockTigerList_VO> getStockTigerList(Integer page , Integer size , String stockCode , String stockName , String startDay , String endDay);\n}", "Order setInvoiceCreatedStatus(Order order, User user, Date invoiceDate, Date invoiceDueDate);", "public InwardEntity updateInvoice(InwardEntity entity , String companyId, String customerId) throws EntityException\n\t\t\t{\n\n\t\t\t\tDatastore ds = null;\n\t\t\t\tCompany cmp = null;\n\t\t\t\tBusinessPlayers customer = null;\n\t\t\t\tProducts prod = null;\n\t\t\t\tTax tax = null;\n\t\t\t\tKey<InwardEntity> key = null;\n\t\t\t\tObjectId oid = null;\n\t\t\t\tObjectId customerOid = null;\n\t\t\t\tObjectId prodOid = null;\n\t\t\t\tObjectId taxOid = null;\n\t\t\t\tInwardEntity invoice = null;\n\t\t\t\tboolean customerChange = false;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tds = Morphiacxn.getInstance().getMORPHIADB(\"test\");\n\t\t\t\t\toid = new ObjectId(companyId);\n\t\t\t\t\tQuery<Company> query = ds.createQuery(Company.class).field(\"id\").equal(oid);\n\t\t\t\t\tcmp = query.get();\n\t\t\t\t\tif(cmp == null)\n\t\t\t\t\t\tthrow new EntityException(404, \"cmp not found\", null, null);\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t//check if invoice exists with object id for update , fetch invoice, make changes to it\n\t\t\t\t\n\t\t\t\t\tQuery<InwardEntity> iQuery = ds.find(InwardEntity.class).filter(\"company\",cmp).filter(\"isInvoice\", true).\n\t\t\t\t\t\t\tfilter(\"id\",entity.getId());\n\n\t\t\t\t\tinvoice = iQuery.get();\n\t\t\t\t\tif(invoice == null)\n\t\t\t\t\t\tthrow new EntityException(512, \"invoice not found\", null, null); //cant update\n\n\n\t\t\t\t\t/*check if vendor changed in update, if so then check if new vendor exists\n\t\t\t\t\t * if vendor hasnt changed bt was deleted - let it be\n\t\t\t\t\t */\n\n\t\t\t\t\tif(!(customerId.equals(invoice.getCustomer().getId().toString())))\n\t\t\t\t\t{\n\t\t\t\t\t\tcustomerChange = true;\n\t\t\t\t\t\tcustomerOid = new ObjectId(customerId);\n\t\t\t\t\t\tQuery<BusinessPlayers> bpquery = ds.createQuery(BusinessPlayers.class).field(\"company\").equal(cmp).field(\"isCustomer\").equal(true).field(\"id\").equal(customerOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\tcustomer = bpquery.get();\n\t\t\t\t\t\tif(customer == null)\n\t\t\t\t\t\t\tthrow new EntityException(512, \"customer not found\", null, null);\n\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*if bill number is editable, do check if there is new /old vendor + new/old bill number combo unique\n\t\t\t\t\t * if vendor hasnt changed and bill number hasnt chngd - no prob\n\t\t\t\t\t * if vendor/bill number has chngd do check\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t// front end list cant be null\n\t\t\t\t\tList<OrderDetails> invoiceDetails = entity.getInvoiceDetails();\n\n\t\t\t\t\tfor(OrderDetails details : invoiceDetails)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//check tax exists, if not deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//check tax exists, if deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //tax doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //product doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tdetails.setId(new ObjectId());\n\t\t\t\t\t\tdetails.setTax(tax);\n\t\t\t\t\t\tdetails.setProduct(prod);\n\n\t\t\t\t\t\ttax = null;\n\t\t\t\t\t\ttaxOid = null;\n\t\t\t\t\t\tprod = null;\n\t\t\t\t\t\tprodOid = null;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(\"protax\");\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDetails(invoiceDetails);\n\t\t\t\t\tinvoice.setCompany(cmp);\n\t\t\t\t\tif(customerChange == true)\n\t\t\t\t\t\tinvoice.setCustomer(customer); //set only if vendor has changed\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDuedate(entity.getInvoiceDuedate());\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceGrandtotal(entity.getInvoiceGrandtotal());\n\t\t\t\t\tinvoice.setInvoiceSubtotal(entity.getInvoiceSubtotal());\n\t\t\t\t\tinvoice.setInvoiceTaxtotal(entity.getInvoiceTaxtotal());\n\t\t\t\t\tjava.math.BigDecimal balance = invoice.getInvoiceGrandtotal().subtract(invoice.getInvoiceAdvancetotal()); //grand total is just set, read prev advance\n\t\t\t\t\tinvoice.setInvoiceBalance(balance);\n\n\t\t\t\t\tkey = ds.merge(invoice);\n\t\t\t\t\tif(key == null)\n\t\t\t\t\t\tthrow new EntityException(515, \"could not update\", null, null);\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(EntityException e)\n\t\t\t\t{\n\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tthrow new EntityException(500, null , e.getMessage(), null);\n\t\t\t\t}\n\n\t\t\t\treturn invoice;\n\t\t\t}", "public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public Invoice getInvoiceById(@PathVariable int id) {\n return DatabaseInvoicePostgre.getInvoiceById(id);\n }", "private void carregarInvoice() throws BusinessException {\r\n\r\n\t\t// REMOCAO DE ANEXO DE INVOICE\r\n\t\t// if (invoice.getAnexo() != null) {\r\n\t\t// nomeArquivo = invoice.getAnexo().getNomeArquivo();\r\n\t\t// }\r\n\r\n\t\tif (invoice.getIncoterm() != null) {\r\n\t\t\tIncoterm inco = facade.getIncoTermsById(invoice.getIncoterm()\r\n\t\t\t\t\t.getId());\r\n\t\t\tinvoice.setIncoterm(inco);\r\n\t\t}\r\n\t\trenderizaDadosFornecedor();\r\n\r\n\t}" ]
[ "0.66970223", "0.6617981", "0.66020054", "0.65706056", "0.6569461", "0.6535107", "0.637986", "0.6311166", "0.6300069", "0.6290064", "0.62888104", "0.62826174", "0.62763613", "0.62756467", "0.62537754", "0.6253138", "0.6225058", "0.6223001", "0.61989844", "0.61715174", "0.61699617", "0.6155268", "0.6123616", "0.6088845", "0.6067096", "0.6060045", "0.6048468", "0.60406804", "0.6038034", "0.6037882", "0.6026548", "0.60172516", "0.60170096", "0.6012061", "0.5997155", "0.5980746", "0.59731215", "0.59556913", "0.59494835", "0.5935264", "0.59328353", "0.5922267", "0.5873359", "0.58639807", "0.5859372", "0.5856374", "0.5848223", "0.5837274", "0.583314", "0.58095396", "0.57944643", "0.57916546", "0.57889366", "0.57814306", "0.57735205", "0.57707953", "0.57705367", "0.57698905", "0.5766511", "0.5733879", "0.5722933", "0.5713494", "0.5713394", "0.5709443", "0.5698023", "0.56965125", "0.56932503", "0.56852585", "0.5684433", "0.5681694", "0.5679859", "0.56764185", "0.56570214", "0.5644162", "0.56439614", "0.56383014", "0.5634261", "0.5631986", "0.562957", "0.5626135", "0.5621802", "0.5621799", "0.56166184", "0.56166184", "0.5615918", "0.56134605", "0.5612594", "0.5609224", "0.5606171", "0.5603439", "0.5598996", "0.55974185", "0.5595857", "0.55947167", "0.55942863", "0.5594283", "0.559176", "0.5591222", "0.5585923", "0.5581297" ]
0.57506907
59
Apply Unit testing into each classes and methods in this package.
public static void main(String[] args) { testFactorial(); testFibonacci(); testMissing(); testPrime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}", "@Test\n public void simpleUse(){\n }", "public static void UnitTests() {\n System.out.println(\"---\");\n\n int input = 0;\n boolean running = true;\n\n while(running) {\n System.out.println(\"1. Test Layer Class\\n2. Test NeuralNetwork Class\\n3. Go Back\\n\");\n input = getInput();\n switch (input) {\n case 1:\n UnitTests.testLayers();\n break;\n case 2:\n UnitTests.testNeuralNetwork();\n break;\n case 3:\n running = false;\n break;\n default:\n System.out.println(\"That's not an option.\");\n }\n }\n\n System.out.println(\"---\\n\");\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}", "public void testDumbJUnit() {\n }", "private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "@Test\n\tpublic void testMain() {\n\t}", "@Test\n public void testPuery(){\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\n public void testGetAllObjects() {\n }", "public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}", "public void tests() {\n this.testStartBaseLocationsDraw();\n }", "protected void test(TestRunnable r) throws Exception {\n generateCorrectClassFiles();\n\n runTest(r);\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "@Test\n\tpublic void test(){\n\t}", "@Test public void test(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@Test\n public void testSomeMethod() {\n }", "@Test\n public void testSomeMethod() {\n }", "@Test\n public void test(){\n }", "@Test\n public void test(){\n }", "@Test\n void printUnit() {\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Override\n public void runTest() {\n }", "@Test\n public void groupTest() {\n // TODO: test group\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "public void setUp() {\n\n\t}", "protected void setUp() {\n\t}", "@Test\npublic void TC11(){\n\n}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void test(){\n\n\n }", "@Test\n public void testMethod() {\n }", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "protected void runTest() throws Throwable {\n assertNotNull(\"TestCase.fName cannot be null\", fName); // Some VMs crash when calling getMethod(null,null);\n Method runMethod= null;\n try {\n // use getMethod to get all public inherited\n // methods. getDeclaredMethods returns all\n // methods of this class but excludes the\n // inherited ones.\n runMethod= getClass().getMethod(fName, (Class [])null);\n } catch (NoSuchMethodException e) {\n fail(\"Method \\\"\"+fName+\"\\\" not found\");\n }\n if (!Modifier.isPublic(runMethod.getModifiers())) {\n fail(\"Method \\\"\"+fName+\"\\\" should be public\");\n }\n\n try {\n runMethod.invoke(this);\n }\n catch (InvocationTargetException e) {\n e.fillInStackTrace();\n throw e.getTargetException();\n }\n catch (IllegalAccessException e) {\n e.fillInStackTrace();\n throw e;\n }\n }", "@Override\n public void setUp() {\n }", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "@Test\n public void test() {\n }", "protected void setUp() {\n\n }", "@Test\n public void someTest() {\n }", "@Override\n public void test() {\n \n }", "@Test\n public void testCarregarUex() {\n }", "@Test\r\n public void testRentOut() {\r\n }", "@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "@Test\n public void test() {\n }", "@Test\n public void test() {\n }", "@Test\n\tpublic void something() {\n\t}", "@BeforeClass\n public static void setUpClass() {\n }", "@BeforeClass\n public static void setUpClass() {\n }", "@Test\n public void test(){\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "public void junitClassesStarted() { }", "public void junitClassesStarted() { }", "static void testCaculator(){\n }", "@Test\n public void dummyTest() {\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Test\r\n public void testRent() {\r\n }", "@Before public void setUp() { }", "@Test\r\n public void test1() {\n }", "@Test\n public void aa(){\n }", "@Test\n public void addition() {\n\n }", "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "static void coverage()\n {\n new ServletUtils();\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(FunctionalTests.suite());\n // functional tests\n suite.addTest(GUITests.suite());\n\n TestSetup wrapper = new TestSetup(suite) {\n protected void setUp() {\n Runnable r = new Runnable() {\n public void run() {\n com.topcoder.umltool.deploy.UMLToolDeploy.main(new String[0]);\n }\n };\n\n try {\n SwingUtilities.invokeAndWait(r);\n } catch (Exception e) {\n }\n }\n\n protected void tearDown() throws Exception {\n File generateCode = new File(TestHelper.getCodeGenBase() + \"/c\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n generateCode = new File(TestHelper.getCodeGenBase() + \"/java\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n }\n\n private void deleteFolder(File dir) {\n File filelist[] = dir.listFiles();\n int listlen = filelist.length;\n for (int i = 0; i < listlen; i++) {\n if (filelist[i].isDirectory()) {\n deleteFolder(filelist[i]);\n } else {\n filelist[i].delete();\n }\n }\n dir.delete();\n }\n };\n\n return wrapper;\n }", "@Test\n void displayAllTasks() {\n }", "@Test\n public void testBeer() {\n // TODO: test Beer\n }", "@Test\n public void eatPizzaTest() {\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n public void upcTest() {\n // TODO: test upc\n }", "@Before\n public void setUp () {\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "public static Test suite()\n {\n TestSuite ts = new TestSuite(\"TestAPI\") ;\n\t\t\t\n // This test should run first, in order to enable the optimizer for subsequent tests\n\t\tts.addTest(new TestAPI(\"testOptimizerDisable\")) ;\n\t\tts.addTest(new TestAPI(\"testOptimizerEnable\")) ;\n\t\tts.addTest(new TestAPI(\"testExplain\")) ;\n\t\tts.addTest(new TestAPI(\"testIndex\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability1\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability2\")) ;\n\t\t\n // Wrapper for the test suite including the test cases which executes the setup only once\n\t\tTestSetup wrapper = new TestSetup(ts) \n\t\t{\n\t\t\tprotected void setUp() \n\t\t\t{\n\t\t\t\toneTimeSetUp();\n\t\t\t}\n\n\t\t\tprotected void tearDown() \n\t\t\t{\n\t\t\t\toneTimeTearDown();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn wrapper ;\n }", "@Before\n\tpublic void setUp() {\n\t}", "@Test\n public void testMoveToPlayer(){\n \n }", "@Before\n\t public void setUp() {\n\t }", "@BeforeClass\n public static void setUp() {\n }", "@Test\n public void userTest() {\n // TODO: test user\n }", "@Test\n public void startApp2Do(){\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}" ]
[ "0.7213595", "0.7213595", "0.6949959", "0.694254", "0.67361474", "0.65989184", "0.65128976", "0.64224094", "0.6408792", "0.6381906", "0.6356201", "0.6339314", "0.6304518", "0.6293682", "0.62759185", "0.6271724", "0.62278205", "0.6227341", "0.62241846", "0.6213901", "0.6205026", "0.6203815", "0.61878026", "0.6181047", "0.6176282", "0.6163195", "0.614303", "0.614303", "0.61415225", "0.61415225", "0.6139443", "0.61280894", "0.61280894", "0.61278194", "0.61165017", "0.61097044", "0.6108731", "0.6108731", "0.610089", "0.60918325", "0.6089562", "0.6088071", "0.60856164", "0.60565805", "0.6054448", "0.6049066", "0.60479504", "0.60455525", "0.6041734", "0.6036826", "0.6036243", "0.60344744", "0.6028316", "0.60278654", "0.60245126", "0.60240185", "0.60237765", "0.6018726", "0.60113037", "0.60054445", "0.60054445", "0.6001246", "0.5993905", "0.5993905", "0.59875464", "0.5983974", "0.5977284", "0.5977284", "0.59721583", "0.5967331", "0.5965528", "0.59634876", "0.59566766", "0.5945585", "0.5945541", "0.5933085", "0.5930999", "0.5923478", "0.5917881", "0.5910978", "0.59102744", "0.5905555", "0.59048676", "0.58997804", "0.5898347", "0.58951426", "0.58896196", "0.58874136", "0.58862996", "0.58862996", "0.58862996", "0.58862996", "0.5884929", "0.5882972", "0.5882587", "0.58784145", "0.5878248", "0.5876288", "0.58748823", "0.5874833", "0.58725864" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof ProductoClase)) { return false; } ProductoClase other = (ProductoClase) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
moved here so that it is global
public ForecastFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private void init() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private Globals() {\n\n\t}", "void addingGlobalData() {\n\n }", "private void strin() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "private void init() {\n }", "@Override\n protected void init() {\n }", "protected void _init(){}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "private void initialize() {\n\t\t\n\t}", "private void _init() {\n }", "public void gored() {\n\t\t\n\t}", "private void sub() {\n\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override\n public void perish() {\n \n }", "static void init() {}", "public void mo38117a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\r\n\r\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void init() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "protected void init() {\n // to override and use this method\n }", "public abstract String globalInfo();", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public static void init() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "private Globals() {\n\t\treadyToSend=false;\n\t}", "public void mo4359a() {\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public final void mo51373a() {\n }", "static void feladat3() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "protected void setupLocal() {}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "protected void onFirstUse() {}", "private void initialize() {\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private FlyWithWings(){\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void initHook() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "static void feladat4() {\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void InitData() {\n\t}" ]
[ "0.6169714", "0.59226686", "0.5820015", "0.5785217", "0.57793236", "0.5765583", "0.5705672", "0.5700114", "0.56389225", "0.56376547", "0.56053245", "0.5601948", "0.56018776", "0.55995417", "0.5579759", "0.5576926", "0.55587834", "0.5546263", "0.5530029", "0.5530029", "0.5530029", "0.5530029", "0.55230415", "0.5512913", "0.5490339", "0.5487515", "0.54712963", "0.5469236", "0.54596126", "0.54596126", "0.54596126", "0.54596126", "0.54596126", "0.54523224", "0.54388744", "0.5437237", "0.5437237", "0.5435186", "0.543261", "0.543261", "0.543261", "0.543261", "0.543261", "0.543261", "0.5429832", "0.54186994", "0.54186994", "0.54186994", "0.54186994", "0.54186994", "0.5416054", "0.54090583", "0.54052067", "0.54049903", "0.54049575", "0.5402782", "0.5399308", "0.5399308", "0.5399308", "0.5399164", "0.5399088", "0.53986204", "0.53985184", "0.53956807", "0.5385276", "0.53829813", "0.5382158", "0.5382158", "0.5379799", "0.5376416", "0.5376209", "0.53761256", "0.53737336", "0.5373422", "0.5369273", "0.53663874", "0.53578925", "0.5356126", "0.53516465", "0.53516465", "0.53516465", "0.53514546", "0.53514546", "0.53514194", "0.53514194", "0.53514194", "0.53500956", "0.5342286", "0.53390944", "0.5337673", "0.5336215", "0.5332699", "0.53277075", "0.5324481", "0.5311938", "0.5304041", "0.53009206", "0.52996457", "0.52996457", "0.52996457", "0.5297545" ]
0.0
-1
ADDED this makes sture that we have the options menu present
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void addMenuOptions();", "public OptionsMenu() {\n\t\tsuper(OPTIONS_WINDOW_TITLE);\n\t\tQ = new Quoridor();\n\t\tinitialize();\n\t\tsetVisible(true);\n\t}", "private void initOption() {\r\n\t\tthis.option = new JMenu(\"Options\");\r\n\t\tthis.add(option);\r\n\t\tthis.initNewGame();\r\n\t\tthis.initNewServer();\r\n\t\tthis.initNewConnect();\r\n\t\tthis.initExitConnect();\r\n\t\tthis.initExitGame();\r\n\t}", "@Override\n public boolean onPrepareOptionsMenu (Menu menu) {\n \n return super.onPrepareOptionsMenu (menu);\n \n }", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "public static void openOptionMenu() {\r\n\t\tif(!STATUS.equals(Gamestatus.STOPPED)) return;\r\n\t\tgui.setMenu(new OptionMenu(), true);\r\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.optionsbar, menu);\n \treturn super.onPrepareOptionsMenu(menu);\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\treturn true;\n \t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.uptionsmenu, menu);\r\n\t\treturn true;\r\n\r\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\t \n return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.option, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(TAG, \"onCreateOptionMenu\");\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflate = getMenuInflater();\n \tinflate.inflate(R.menu.options, menu);\n \t\n \t\n \treturn true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n getMenuInflater().inflate( R.menu.options, menu );\n\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n\treturn super.onPrepareOptionsMenu(menu);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t{\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.my_options_menu, menu);\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "public void option() {\n ReusableActionsPageObjects.clickOnElement(driver, options, logger, \"user options.\");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }" ]
[ "0.800729", "0.7586879", "0.75179976", "0.7317775", "0.7296188", "0.722428", "0.72163177", "0.72104394", "0.7159584", "0.7159584", "0.7159584", "0.7159584", "0.7159584", "0.7159584", "0.71554023", "0.7149678", "0.7146588", "0.7145838", "0.7128433", "0.7119694", "0.7102247", "0.7097127", "0.7093813", "0.7093813", "0.7085594", "0.7075758", "0.7073006", "0.70552367", "0.70552367", "0.70552367", "0.70552367", "0.70552367", "0.7044618", "0.7034599", "0.7034599", "0.70339924", "0.7029369", "0.7026617", "0.70199925", "0.70048326", "0.70015794", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958", "0.7000958" ]
0.0
-1
ADDED this actually display the menu on the screen
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.forecastfragment, menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "public void showMenu() {\n menuController.showMenuPanel();\n }", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "public abstract void displayMenu();", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void menu() {\n\t\tstate.menu();\n\t}", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }", "public void showMainMenu() {\r\n\t\tmenu.setThreadSuspended(false);\r\n\t\tmenu.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t\tsetVisible(true);\r\n\t}", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "public static void activateMenu() {\n instance.getMenu().show();\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "private void loadMenu() {\n theView.getGamePanel().removeAll();\n Menu menu = new Menu(theView);\n menu.revalidate();\n menu.repaint();\n theView.getGamePanel().add(menu);\n menu.requestFocusInWindow();\n theView.setVisible(true);\n }", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "public void displayMenu() {\n \n menuFrame = new JFrame(\"SnakeTrain\");\n menuFrame.setSize(1024, 768);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n JPanel menuPanel = new JPanel();\n \n Play.setPreferredSize(new Dimension(250, 100));\n Instructions.setPreferredSize(new Dimension(250, 100));\n Exit.setPreferredSize(new Dimension(250, 100));\n \n Play.addActionListener(this);\n Instructions.addActionListener(this);\n Exit.addActionListener(this);\n \n //c = new JLabel(/*background image*/);\n menuFrame.setLayout(new FlowLayout());\n menuFrame.add(Play);\n menuFrame.add(Instructions);\n menuFrame.add(Exit);\n menuFrame.setVisible(true);\n \n }", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "public void menu(){\n super.goToMenuScreen();\n }", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}", "public void startMenu() {\n setTitle(\"Nier Protomata\");\n setSize(ICoord.LAST_COL + ICoord.ADD_SIZE,\n ICoord.LAST_ROW + ICoord.ADD_SIZE);\n \n setButton();\n }", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "@Override\n public void show() {\n texturaFondo = new Texture(\"fondoMenu.jpg\");\n\n crearMenu();\n }", "private void showMenuScreen()\n {\n logoutButton.setVisibility(textViewLabel.VISIBLE);\n battleButton.setVisibility(View.VISIBLE);\n char1.setVisibility(View.VISIBLE);\n char2.setVisibility(View.VISIBLE);\n char3.setVisibility(View.VISIBLE);\n }", "public void initMenu(){\n\t}", "private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }", "public void buildMenu() {\n\t\tthis.Menu = new uPanel(this.layer, 0, 0, (int) (this.getWidth() * 2), (int) (this.getHeight() * 3)) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean handleEvent(uEvent event) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick() {\r\n\t\t\t\tsuper.onClick();\r\n\t\t\t\tthis.space.sortLayer(this.layer);\r\n\t\t\t\tthis.castEvent(\"MENUPANEL_CLICK\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.screen.addPrehide(this.Menu);\r\n\r\n\t\tthis.Node.addChild(this.Menu.getNode());\r\n\r\n\t}", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public void menuSetup(){\r\n menu.add(menuItemSave);\r\n menu.add(menuItemLoad);\r\n menu.add(menuItemRestart);\r\n menuBar.add(menu); \r\n topPanel.add(menuBar);\r\n bottomPanel.add(message);\r\n \r\n this.setLayout(new BorderLayout());\r\n this.add(topPanel, BorderLayout.NORTH);\r\n this.add(middlePanel, BorderLayout.CENTER);\r\n this.add(bottomPanel, BorderLayout.SOUTH);\r\n \r\n }", "public void refreshMenu() {\n\t\tthis.Menu.setSize(this.Menu.getWidth(), this.Items.size() * (this.textSize + 4) + 4);\r\n\t\tthis.Menu.Camera.setPosition(0, 0);\r\n\t\tthis.anchorX();\r\n\t\tthis.anchorY();\r\n\t\t//println(\"----------\");\r\n\t\tthis.Menu.reposition((int) menuAnchor.x, (int) menuAnchor.y);\r\n\r\n\t\tfor (uTextButton t : this.Items) {\r\n\t\t\tt.setPosition(t.getX(), (this.Items.indexOf(t) * t.getHeight()));\r\n\t\t}\r\n\r\n\t}", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "public Menu() {\n initComponents();\n setSize(822, 539);\n setLocationRelativeTo(this);\n setVisible(true);\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public void startScreen()\n {\n onSales = false;\n \n numItemsAdded = 0; \n Menu guiMenu = new Menu(\"File\", \"NewSale\\nClose\\nExit\", 24, Color.BLACK, Color.WHITE, Color.BLACK,Color.WHITE, new FileCommands());\n clearScreen();\n addObject(guiMenu, 200, 50);\n }", "public void showStartMenu() {\n\t\tframe = new JFrame(\"Starting menu\");\n\t\tframe.setPreferredSize(new Dimension(700, 500));\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(this);\n\t\tframe.setVisible(true);\n\t\tframe.setLocationRelativeTo(null);\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "private void changeMenu()\n {\n if (_menuMode)\n {\n menuLayout.getChildAt(0).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(2).setVisibility(View.GONE);\n menuLayout.getChildAt(3).setVisibility(View.GONE);\n menuLayout.getChildAt(4).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Watch Mode\");\n\n }\n else\n {\n menuLayout.getChildAt(0).setVisibility(View.GONE);\n menuLayout.getChildAt(1).setVisibility(View.VISIBLE);\n _switchMode.setText(\"Paint Mode\");\n menuLayout.getChildAt(2).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(3).setVisibility(View.VISIBLE);\n menuLayout.getChildAt(4).setVisibility(View.GONE);\n _timeBar.setProgress((int) (_paintArea.getPercent() * 100f));\n }\n _paintArea.setPaintMode(_menuMode);\n _menuMode = !_menuMode;\n }", "public void volvreAlMenu() {\r\n\t\t// Muestra el menu y no permiye que se cambie el tamaņo\r\n\t\tMenu.frame.setVisible(true);\r\n\t\tMenu.frame.setResizable(false);\r\n\t\t// Oculta la ventana del flappyBird\r\n\t\tjframe.setVisible(false);\r\n\t}", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display, menu);\r\n return true;\r\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public startingMenu() {\r\n initComponents();\r\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public void openMenu() {\r\n\t\tJFrame current_frame = this;\r\n\t\tContainer content_pane = getContentPane();\r\n\t\ttop_panel = new PicPanel(\"trials.png\");\r\n\t\tmiddle_panel = new PicPanel(\"trials2.png\");\r\n\t\tlower_panel = new PicPanel(\"trials3.png\");\r\n\t\t//add panels to the content pane\r\n\t\tcontent_pane.add(top_panel);\r\n\t\tcontent_pane.add(middle_panel);\r\n\t\tcontent_pane.add(lower_panel);\r\n\t\t//*******\r\n\t\tJLabel control_keys_label = createLabel(\"controlkeys.png\");\r\n\t\tmiddle_panel.add(control_keys_label);\r\n\t\t//****\r\n\t\tJButton return_button = createButton(\"returntomenu.png\");\r\n\t\treturn_button.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e){\r\n\t\t \tcurrent_frame.dispose();\r\n\t\t \tStartMenuScreen start_menu = new StartMenuScreen();\r\n\t\t }\r\n\t\t});\r\n\t\tlower_panel.add(return_button);\r\n\t}", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "void drawMenu(IMenu menuToBeRendered);", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display, menu);\n return true;\n }", "public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_display_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "@Override\n\tpublic void showContents() {\n\t\tt1.start();\n\t\tif (menuAnimation.title_showing())\n\t\t{\n\t\t\tprogram.add(Play);\n\t\t\tprogram.add(Settings);\n\t\t\tprogram.add(Credits);\n\t\t\tprogram.add(Exit);\n\t\t\tprogram.add(barrel);\n\t\t\tprogram.add(tank);\n\t\t\ttitle.setLocation(30,80);\n\t\t\ttitle.changeTransparent(1);\n\t\t\tprogram.add(title);\n\t\t\tbackground.setImage(\"otherImages/background.png\");\n\t\t\tbackground.setSize(900,620);\n\t\t\tbackground.setLocation(-50,0);\n\t\t\tbg.start();\n\t\t\tbackground.sendToBack();\n\t\t\tprogram.add(background);\n\t\t}\n\t}", "@Override\r\n protected void onScreenActivate() {\n if (Forge.isLandscapeMode() && displaySidebarForLandscapeMode()) {\r\n menu.hide();\r\n menu.show(getLeft(), 0, getWidth(), getHeight());\r\n }\r\n }", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "public void drawLoadMenu(){\n implementation.devDrawLoadMenu();\n }", "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "public void setMenu() {\n\t \n\t\ttop = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t add(top, BorderLayout.CENTER);\n\t \n\t lPro = new JLabel(\"Projects: \");\n\t top.add(lPro);\n\t \n\t cPro = new JComboBox();\n\t getProject();\n\t\ttop.add(cPro);\n\t\t\n\t\tview = new JButton(\"View Sample\");\n\t\ttop.add(view);\n\t\t\n\t\tbottom = new JPanel(new FlowLayout(FlowLayout.CENTER));\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tcancel = new JButton(\"Cancel\");\n\t\tbottom.add(cancel);\n\t\t\n\t\tdownload = new JButton(\"Download\");\n\t\tbottom.add(download);\n\t\t\n\t\tsetActionListener();\t\n\t}", "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t{\n\t\tgetMenuInflater().inflate(R.menu.display_page, menu);\n\t\treturn true;\n\t}", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t\t\t\t}", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }" ]
[ "0.77688533", "0.7740173", "0.77149683", "0.77136016", "0.7634204", "0.7598291", "0.7487185", "0.7471915", "0.74634725", "0.74154216", "0.7380545", "0.7375875", "0.73753834", "0.7372655", "0.7353583", "0.73174685", "0.7310939", "0.72728485", "0.7256685", "0.7233865", "0.72334254", "0.719532", "0.71678084", "0.71512294", "0.7147408", "0.714593", "0.7139071", "0.7138944", "0.7138396", "0.7138356", "0.71373016", "0.7128991", "0.7123916", "0.71227455", "0.71216565", "0.7111053", "0.7101746", "0.7098657", "0.70929796", "0.7083974", "0.7075293", "0.70705616", "0.70570207", "0.70533764", "0.7047662", "0.70455784", "0.7040626", "0.70199966", "0.701007", "0.7004609", "0.7004392", "0.6999392", "0.6995011", "0.69868994", "0.6981291", "0.6979746", "0.6975057", "0.6972536", "0.6964204", "0.695761", "0.69522023", "0.69449687", "0.6917723", "0.6908718", "0.68963397", "0.6896041", "0.6892569", "0.6889002", "0.6884412", "0.6874855", "0.686698", "0.68628824", "0.68624705", "0.6861451", "0.68550026", "0.6841527", "0.6839039", "0.6835984", "0.68356454", "0.68339497", "0.6828285", "0.68202156", "0.6819992", "0.68197227", "0.68186784", "0.6815432", "0.680826", "0.6804401", "0.68039477", "0.680293", "0.67990774", "0.679724", "0.67904705", "0.6787303", "0.67862105", "0.67861974", "0.6786127", "0.67829883", "0.6781891", "0.6778248", "0.67734337" ]
0.0
-1
ADDED this makes sure that when settings is clicked we have the refresh button
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_refresh) { //Add this to execute the Async Task FetchWeatherTask ft = new FetchWeatherTask(); Log.v("onOptionsItemSelected","fresh retrieval"); ft.execute("02421"); List<Forecast> ff = null; try { ff = ft.get(); } catch (Exception e) { e.printStackTrace(); Log.e("xx", e.getLocalizedMessage()); } forecastAdapter.clear(); for(Forecast f:ff){ forecastAdapter.add(f.toString()); } return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent=new Intent(this,SettingActivity.class);\n startActivity(intent);\n return true;\n\n }\n if (id == R.id.refresh) {\n getInstence(getBaseContext()).ncalls();\n Toast.makeText(this,\"refreshed\",Toast.LENGTH_SHORT).show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void refreshTimeSettings()\n\t{\n\t\tIntent i = new Intent(this, MyTimeSettings.class);\n\t\ti.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\ti.putExtra(MyTimeSettingsFragment.EXTRA_REFRSH_AND_CLOSE, true);\n\t\tthis.startActivity(i);\n\t\t\n\t}", "@Override\n\t\t\tpublic void onRefreshClick() {\n\t\t\t\thttpRefreshMethod();\n\t\t\t}", "@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}", "public void setRefreshMenu() {\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\thf.getSettings().setVisible(true);;\n\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tchangeSettings();\n\t\t\t\t}", "public void onReloadClicked() {\n\n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "protected void refresh() {\n\t}", "private void refresh() {\n\t\tIntent intent = new Intent(BacklogActivity.this, BacklogActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void onRefreshClicked(){\n\t\tmGui.showToastRefresh(mData.getActivity());\r\n\t\t\r\n\t\t//update User Information in Data\r\n\t\tmData.setUser(mDataInterface.getUser(mData.getUser().getName()));\r\n\t\t\r\n\t\t//update Statistics in data\r\n\t\tmData.loadStatistics();\r\n\t\t\r\n\t\t//apply data (updated statistics) to Gui\r\n\t\tapplyDataToGui();\t\r\n\t}", "private void refresh() {\n System.out.println(\"refresh is called\");\n currentStory=storyManager.getStory(user.getCurrentStoryNode());\n resources=resourceManager.getResources();\n storyText.setText(currentStory.getText());\n // Set button texts, add foreground locks for options without conditions met\n for (int i=0; i<currentStory.getStoryPaths().size(); i++) {\n StoryPaths storyPath=currentStory.getStoryPaths().get(i);\n Resource resourceNeeded=storyPath.getResourceNeeded();\n if (resourceNeeded!=null) {\n int amountNeeded=storyPath.getAmountNeeded();\n if (resourceNeeded.getDepletable()) {\n buttons[i].setText(storyPath.getOptionText() + \" (Consume \" + amountNeeded + \" \" + resourceNeeded.getName() + \")\");\n } else {\n buttons[i].setText(storyPath.getOptionText() + \" (Require \" +resourceNeeded.getName() + \")\");\n }\n if (resourceNeeded.getStock() < amountNeeded) {\n buttons[i].setForeground(getDrawable(R.drawable.button_box_lock_sample));\n } else {\n buttons[i].setForeground(null);\n }\n } else {\n buttons[i].setText(storyPath.getOptionText());\n buttons[i].setForeground(null);\n }\n buttons[i].setVisibility(View.VISIBLE);\n updateResourceText();\n }\n // Make the other buttons disappear\n for (int i=currentStory.getStoryPaths().size(); i<5; i++) {\n buttons[i].setVisibility(View.GONE);\n }\n }", "public void Refresh()\n\t{\n\t}", "public void refresh() {\n }", "@Override\r\n\tprotected ActionListener refreshBtnAction() {\n\t\treturn null;\r\n\t}", "public void RefreshOptions() {\n setContentView(mMainView);\n mSolitaireView.RefreshOptions();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.action_refresh) {\n refresh();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\n public void refresh() {\n }", "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "@Override\n public void onRefresh() {\n synchronizeContent();\n }", "@Override\r\n\tpublic void onRefresh() {\n\r\n\t}", "private void refreshButtonClicked(ActionEvent event) {\n\n PriceFinder refreshedPrice = new PriceFinder(); // generates a new price to set as a temp item's new price\n\n itemView.testItem.setPrice(refreshedPrice.returnNewPrice());\n configureUI(); // essentially pushes the new item information to the panel\n\n showMessage(\"Item price updated! \");\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "@Override\n\tpublic void refresh() {\n\n\t}", "void clickOnRefreshButton() {\n\t\tSeleniumUtility.clickOnElement(driver, homepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning);\n\t}", "public abstract void refreshing();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsiv_update.changeSwitchStatus();\n\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\teditor.putBoolean(MobileGuard.APP_AUTO_UPDATE,\n\t\t\t\t\t\tsiv_update.getSwitchStatus());\n\t\t\t\teditor.commit();\n\t\t\t}", "@Override\n\tpublic void onRefresh() {\n\n\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "public void Refresh(){\n this.ShowAll();\n }", "@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}", "public void settingBtnClick() {\n\t}", "@Override\n public void onRefresh() {\n }", "@FXML\r\n\tpublic void refreshBtnAction(ActionEvent event) {\r\n\t\trefreshFnkt();\r\n\t}", "@Override\n\tpublic void changeToRefreshing() {\n\t\tif(mHintTextView != null)\n\t\t\tmHintTextView.setText(R.string.pull_releaseRefresh);\n\t}", "@Override\n public void onRefresh() {\n }", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}", "@Override\n\tpublic long updateDisplay() {\n\t\treturn AppStatus.NO_REFRESH;\n\t}", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "@Override\r\n public void run() {\n RefreshAction.doRefresh(project);\r\n }", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "@Override\n \tpublic boolean onOptionsItemSelected(MenuItem item) {\n \t\tswitch (item.getItemId()) {\n \t\t// case R.id.menu_settings:\n \t\t// return true;\n \t\tcase R.id.menu_refresh:\n \t\t\tgetSupportLoaderManager().restartLoader(LOADER_CONNECTION, null,\n \t\t\t\t\tthis);\n \t\t\treturn true;\n \t\tdefault:\n \t\t\treturn super.onOptionsItemSelected(item);\n \t\t}\n \t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.settings:\n Intent settingsActivity = new Intent(getBaseContext(), SettingsActivity.class);\n startActivity(settingsActivity);\n return true;\n case R.id.refresh:\n loadPage();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_refresh :\n this.refresh();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tprotected void RefreshView() {\n\t\t\n\t}", "@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }", "private void refreshScreen() {\n app.getMainMenu().getTextField().clear();\n for (int key = 0; key < 96; key++) {\n app.getWorkSpace().getGridCell(key).unhighlightGridCell();\n app.getWorkSpace().getGridCell(key).updateState(app);\n }\n Storage.getInstance().writeObject(\"workspace\", app.getWorkSpace().getWorkSpaceMap());\n app.show();\n }", "private void toggleRefresh() {\n if (mProgressBar.getVisibility() == View.INVISIBLE) {\n mProgressBar.setVisibility(View.VISIBLE);\n mRefreshImageView.setVisibility(View.INVISIBLE);\n } else {\n mProgressBar.setVisibility(View.INVISIBLE);\n mRefreshImageView.setVisibility(View.VISIBLE);\n }\n }", "@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n collectValuesForSettings();\n updateSettings();\n dismiss();\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\r\n\t\tcase 0:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tInitRefresh();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "public void refresh() {\r\n\t\tinit();\r\n\t}", "private void setRefresh(final boolean refresh) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(refresh);\n }\n });\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n AppManagerActivity.this.refreshing = false;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\t switch (item.getItemId()) {\n\t case R.id.action_settings:\n\t \tToast.makeText(getApplicationContext(), \"Refresh!\", Toast.LENGTH_SHORT).show();\n\t break;\n\t }\n\t return true;\n\t}", "public void refresh()\n {\n refresh( null );\n }", "@Override\n\tpublic void refreshView() {\n\n\t}", "public abstract void pullToRefresh();", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void refresh() {\n \t\n /* Attach a rotating ImageView to the refresh item as an ActionView */\n LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n ImageView iv = (ImageView) inflater.inflate(R.layout.refresh_action_view, null);\n\n Animation rotation = AnimationUtils.loadAnimation(mContext, R.anim.clockwise_refresh);\n rotation.setRepeatCount(Animation.INFINITE);\n iv.startAnimation(rotation);\n\n mSGV.setVisibility(View.INVISIBLE);\n mProgress.setVisibility(View.VISIBLE);\n \n mRefreshItem.setActionView(iv);\n refreshGoodsItems();\n \n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_refresh) {\n updateMovie();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "void doRefreshContent();", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "@Override\n public void onRefresh() {\n requestSoal();\n swipeRefreshLayout.setRefreshing(false);\n }", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "@Override\n public void refreshView() {\n WSDLActivityConfigurationBean configuration = activity.getConfiguration();\n description.setText(\"VPH-Share service \" + configuration.getWsdl());\n }", "public void onRefresh() {\n }", "void onRefresh() {\n\t}", "private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }", "@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }", "public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "private void refreshButtonClicked(ActionEvent event) {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n\n itemView.getItem().setPreviousPrice(itemView.getItem().getItemPrice());\n //itemView.getItem().setItemPrice(randPrice.getRandomPrice());\n itemView.getItem().setItemPrice(randPrice.getRandomPrice(itemView.getItem()));\n itemView.getItem().setItemChange();\n super.repaint();\n showMessage(\"Refresh clicked!\");\n }", "public void clickOnUpdateButton() {\r\n\t\tsafeJavaScriptClick(updateButton);\r\n\t}", "public void manualRefreshComing() {\r\n if (!Preferences.isEnabled(Preferences.SICKBEARD)) {\r\n return;\r\n }\r\n SickBeardController.refreshFuture(messageHandler);\r\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void refreshContent() {\n\n mSwipeRefreshLayout.setRefreshing(false);\n }", "public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}", "public void onClick(View v) {\n\t\t\t\tIntent in = new Intent(Intent.ACTION_MAIN);\n\t\t\t in.setClassName(\"com.android.settings\", \"com.android.settings.TestingSettings\");\n\t\t\t startActivity(in);\n\t\t\t\t/*if (togglebutton.isChecked()) {\n\t\t\t\t\tmHandler.postDelayed(mUpdateTimeTask, 100);\n\t\t\t\t} else {\n\t\t\t\t\tmHandler.removeCallbacks(mUpdateTimeTask);\n\t\t\t\t}*/\n\t\t\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "private void refreshUI() {\n\t\t\n\t\tif (MusicApplication.getInstance().getDiscussView() != null) {\n\t\t\tMusicApplication.getInstance().getDiscussView().renew();\n\t\t}\n\t\t\n\t\tif (MusicApplication.getInstance().getQueueView() != null) {\n\t\t\tMusicApplication.getInstance().getQueueView().renew();\n\t\t}\n\t\t\n\t\tif (MusicApplication.getInstance().getNetworkView() != null) {\n\t\t\tMusicApplication.getInstance().getNetworkView().renew();\n\t\t}\t\n\t\t\n\t\t//Phone Music\n\t\tif ( MusicApplication.getInstance().getMusicListView().mLocalView != null ){\n\t\t\tMusicApplication.getInstance().getMusicListView().mLocalView.renew();\n\t\t}\n\t\t//Folder Music\n\t\tif ( MusicApplication.getInstance().getMusicListView().mLocalView2 != null ){\n\t\t\tMusicApplication.getInstance().getMusicListView().mLocalView2.renew();\n\t\t}\n\t\t//Favorite Music\n\t\tif ( MusicApplication.getInstance().getMusicListView().mCollectView != null ){\n\t\t\tMusicApplication.getInstance().getMusicListView().mCollectView.refresh();\n\t\t}\n\t\t//Download Music\n\t\tif ( MusicApplication.getInstance().getMusicListView().mDownloadView != null ){\n\t\t\t\n\t\t\tif ( MusicApplication.getInstance().getMusicListView().mDownloadView.mLoadedView != null ){\n\t\t\t\tMusicApplication.getInstance().getMusicListView()\n\t\t\t\t\t.mDownloadView.mLoadedView.mLocalMusicList.renew();\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t}", "public void performUpdateReset() {\n switchToPage(NavDrawerAdapter.FLUFF_ID);\n\t}", "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tif(isRefreshEnabled()){\n\t\t\t\t\tsetRefreshEnabled(false);\n\t\t\t\t\tfetchGardenDetails(homeFrgRootView,true);\n\t\t\t\t}\n\t\t\t}" ]
[ "0.78441405", "0.69930315", "0.68948436", "0.67732114", "0.67202157", "0.67098266", "0.6698771", "0.66911024", "0.6685063", "0.66477257", "0.66366196", "0.65763503", "0.6571026", "0.65128416", "0.6489817", "0.6477727", "0.6464175", "0.6455726", "0.6455575", "0.6390338", "0.6390338", "0.6386324", "0.6385299", "0.6385299", "0.63588476", "0.63588476", "0.63588476", "0.63588476", "0.63588476", "0.63588476", "0.63588476", "0.6351648", "0.63462913", "0.6344225", "0.6333968", "0.63264865", "0.63194686", "0.6316159", "0.63130677", "0.6312922", "0.631108", "0.631108", "0.6297209", "0.6288575", "0.62851983", "0.627777", "0.62741226", "0.6269339", "0.62607485", "0.6260065", "0.6260065", "0.6260065", "0.6260065", "0.6260065", "0.6259467", "0.62587905", "0.6252931", "0.62523496", "0.6243264", "0.6233909", "0.6232971", "0.62278795", "0.6227069", "0.62268937", "0.6215869", "0.62056017", "0.62042904", "0.62028456", "0.62010586", "0.61961937", "0.6191519", "0.6190728", "0.6177879", "0.61745596", "0.6166802", "0.616403", "0.6162791", "0.6160536", "0.6160348", "0.61586297", "0.6157888", "0.615688", "0.61477774", "0.61477774", "0.6137698", "0.61340874", "0.61321664", "0.6123055", "0.61111003", "0.61030513", "0.61020064", "0.6099578", "0.6094006", "0.6091101", "0.6081335", "0.606872", "0.6067162", "0.6065294", "0.60535115", "0.6047659", "0.6036941" ]
0.0
-1
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread. The general contract of the method run is that it may take any action whatsoever.
@Override public void run() { System.out.println("topic 消息类型开始产生消息 " + "生产者: " + Thread.currentThread().getName()); try { /**第一步 创建连接工厂*/ factory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI); /**第二步 创建JMS 连接*/ Connection connection = factory.createConnection(); connection.start(); /** 第三步 创建Session,开启事务 */ Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE); /** 第四步: 创建topic,Topic是 Destination接口的子接口*/ Topic topic = session.createTopic(MqConfigConstants.TopicName); /** 第五步 创建生产者producer */ MessageProducer producer = session.createProducer(topic); /** 设置消息不需要持久化 */ producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT); //发送文本消息 while (true) { /** 第六步 发送消息 */ Message message = createMessage(session,"vincent",27,"江西省赣州市"); producer.send(message); session.commit();//开启事务必须需要提交,消费者才能获取到 System.out.println("发送消息: " +message.toString() ); Thread.sleep(200); } } catch (JMSException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Startable extends Runnable {\n \n /**\n * Waits until the thread this object is running in is finished before returning.\n */\n public void join();\n \n /**\n * Checks whether the component is done with its work.\n * @return <code>true</code> if the component is finished its work\n */\n public boolean isDone();\n \n /**\n * Sets the thread that this object is running in.\n * \n * @param t the thread that this object is running in\n */\n public void setThread(Thread t);\n\n /**\n * Gets the thread that this object is running in.\n * \n * @return the thread that this object is running in\n */\n public Thread getThread();\n\n}", "public void run(){\n //logic to execute in a thread \n }", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "void startThread();", "ThreadStart createThreadStart();", "public final void run() {\r\n }", "void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "public interface MainThread {\n void post(Runnable runnable);\n}", "public MyRunnable(){\t\n\t}", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void run() {\r\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tabstract public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public void start() {\n\n\t\tif (worker.isAlive()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Worker thread is still alive, unexpected.\");\n\t\t}\n\n\t\tif (runflag.get()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Runflag is inconsistant with thread, unexpected.\");\n\t\t}\n\n\t\trunflag.set(true);\n\t\tworker.start();\n\t}", "public void createThread() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void run()\n {\n }", "public void run()\n {\n }", "@Override\r\n\tpublic abstract void run();", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void run()\n\t{\n\t}", "public void run () { run (true); }", "public IThread createThread() throws IllegalWriteException, BBException;", "public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }", "@Override\n abstract public void run();", "public interface Interactor extends Runnable {\n void run();\n}", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}", "public void run() {\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}", "public void run() {\n\n }", "public void run()\n {\n\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void run() {\n\n\n }", "@Override\r\n public void run() {}", "public void run(){\n\t}", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "private interface CheckedRunnable {\n void run() throws Exception;\n }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void run() {\n\t}", "public void run() {\n\t}", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public void run() {\n super.run();\n }", "public void start(){\n thread.start();\n }", "@Override\npublic void run() {\n perform();\t\n}", "@Override\n public void run()\n {\n super.run();\n }", "@Override\n\tpublic void run()\n\t{\n\t}", "public static void run(){}", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public abstract void run();", "public abstract void run();", "public abstract void run();", "public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}", "public static void run() {\n }", "public void run() {\n System.out.println(ANSI_GREEN + \"Hello from anonymous class thread\");\n }", "@Override\n public void run() {\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}", "void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "@Override\n\tpublic void run() {\n\t\tLog.i(tag, \"run\");\n\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "public final void run() {\n //We get a hold on the thread where this unit is going to be executed\n //so shutdown() can interrupt it if called.\n thread = Thread.currentThread();\n running = true;\n \n try {\n init();\n } catch (RuntimeException ex) {\n stop();\n aborted = true;\n onRunAborted(ex);\n }\n\n try {\n if (!isFinished() && !isStopping()) {\n internalRun();\n }\n } catch (RuntimeException ex) {\n aborted = true;\n onRunAborted(ex);\n throw ex;\n } finally {\n try {\n cleanup();\n } catch (RuntimeException ex) {\n onRunAborted(ex);\n }\n\n running = false;\n //Remove the thread reference\n thread = null;\n }\n }", "public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public Thread startAndRun() {\r\n\t\tThread gameThread = new Thread(this, \"Coffee Bean Game Thread\");\r\n\t\tgameThread.start();\r\n\r\n\t\treturn gameThread;\r\n\t}", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }" ]
[ "0.70475006", "0.6958633", "0.68870807", "0.6735496", "0.6643171", "0.65780413", "0.65175885", "0.64959675", "0.6494277", "0.6465204", "0.64443004", "0.64420545", "0.6391305", "0.63876194", "0.6379064", "0.6373404", "0.63654023", "0.63654023", "0.63654023", "0.63654023", "0.63654023", "0.6356526", "0.6344039", "0.634339", "0.634339", "0.634339", "0.634339", "0.63409203", "0.6337046", "0.63267237", "0.63267237", "0.63237476", "0.6323125", "0.63028204", "0.629971", "0.62972146", "0.62819475", "0.6277499", "0.62680393", "0.62609917", "0.62598807", "0.6251549", "0.6249272", "0.6248115", "0.6244529", "0.6242194", "0.62372875", "0.6228656", "0.62271905", "0.62202287", "0.62200457", "0.62055796", "0.62036407", "0.62036407", "0.61727315", "0.6170563", "0.61686754", "0.61669034", "0.61658126", "0.61628777", "0.6160604", "0.6157039", "0.6151842", "0.6149016", "0.61481726", "0.61481726", "0.6144332", "0.61331475", "0.6125406", "0.6108106", "0.610492", "0.60947776", "0.60893077", "0.6079158", "0.6078082", "0.6075101", "0.6072081", "0.60710573", "0.607056", "0.6067212", "0.6067212", "0.6067212", "0.6065453", "0.60642356", "0.60641944", "0.6061087", "0.60605776", "0.6055499", "0.6044145", "0.6032303", "0.60291797", "0.60185003", "0.601294", "0.6010519", "0.60015476", "0.59945816", "0.5990733", "0.59887356", "0.59819084", "0.5980709", "0.5979729" ]
0.0
-1
/ Unable to fully structure code Could not resolve type clashes
public final void zzb(long var1_1) { var3_2 = zzbn.zzah(); var4_3 = 7; var5_4 = 0L; var7_5 = -128; if (var3_2 != 0 && (var3_2 = this.zzag()) >= (var9_6 = 10)) { while (true) { if ((var3_2 = (int)((cfr_temp_0 = (var10_10 = var1_1 & var7_5) - var5_4) == 0L ? 0 : (cfr_temp_0 < 0L ? -1 : 1))) == 0) { var12_12 = this.buffer; var4_3 = this.position; this.position = var13_14 = var4_3 + 1; var14_16 = var4_3; var16_17 = (byte)var1_1; zzfd.zza(var12_12, var14_16, var16_17); return; } var12_12 = this.buffer; var9_6 = this.position; this.position = var17_7 = var9_6 + 1; var10_10 = var9_6; var18_9 = (byte)((int)var1_1 & 127 | 128); zzfd.zza(var12_12, var10_10, var18_9); var1_1 >>>= var4_3; } } while (true) { if ((var3_2 = (int)((cfr_temp_1 = (var10_11 = var1_1 & var7_5) - var5_4) == 0L ? 0 : (cfr_temp_1 < 0L ? -1 : 1))) != 0) ** GOTO lbl48 var12_13 /* !! */ = this.buffer; break; } catch (IndexOutOfBoundsException var19_19) { var12_13 /* !! */ = (byte[])new Object[3]; var21_21 = this.position; var12_13 /* !! */ [0] = (byte)var21_21; var22_22 = this.limit; var13_15 = 1; var12_13 /* !! */ [var13_15] = (byte)var22_22; var21_21 = var13_15; var12_13 /* !! */ [2] = (byte)var21_21; var12_13 /* !! */ = (byte[])String.format("Pos: %d, limit: %d, len: %d", var12_13 /* !! */ ); var20_20 = new zzbn$zzc((String)var12_13 /* !! */ , var19_19); throw var20_20; } { var4_3 = this.position; var13_15 = var4_3 + 1; this.position = var13_15; var16_18 = (byte)var1_1; var12_13 /* !! */ [var4_3] = var16_18; return; lbl48: // 1 sources var12_13 /* !! */ = this.buffer; var9_6 = this.position; var17_8 = var9_6 + 1; this.position = var17_8; var17_8 = (byte)((int)var1_1 & 127 | 128); var12_13 /* !! */ [var9_6] = var17_8; var1_1 >>>= var4_3; continue; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public interface C45946d {\n @C6457h\n /* renamed from: a */\n C12466b<TypedInput> mo111267a(@C6450ac String str, @C6461l List<C12461b> list);\n\n @C6468s\n /* renamed from: a */\n C12466b<TypedInput> mo111268a(@C6450ac String str, @C6461l List<C12461b> list, @C6451b TypedByteArray typedByteArray);\n}", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "public IncorrectType58119e() {\n }", "@Test\n void cannotInferType() {\n }", "private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }", "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r20, boolean r21) {\n /*\n r13 = this;\n r0 = r13;\n r5 = r16;\n r1 = r19;\n r11 = r20;\n r2 = r0.f4676d;\n r3 = r0.f4673a;\n r2 = r2.refineSerializationType(r3, r11, r5);\n r3 = 1;\n if (r2 == r5) goto L_0x0058;\n L_0x0012:\n r4 = r2.m11531e();\n r6 = r16.m11531e();\n r7 = r4.isAssignableFrom(r6);\n if (r7 != 0) goto L_0x0056;\n L_0x0020:\n r7 = r6.isAssignableFrom(r4);\n if (r7 != 0) goto L_0x0056;\n L_0x0026:\n r1 = new java.lang.IllegalArgumentException;\n r2 = new java.lang.StringBuilder;\n r3 = \"Illegal concrete-type annotation for method '\";\n r2.<init>(r3);\n r3 = r20.mo1360b();\n r2.append(r3);\n r3 = \"': class \";\n r2.append(r3);\n r3 = r4.getName();\n r2.append(r3);\n r3 = \" not a super-type of (declared) class \";\n r2.append(r3);\n r3 = r6.getName();\n r2.append(r3);\n r2 = r2.toString();\n r1.<init>(r2);\n throw r1;\n L_0x0056:\n r4 = r3;\n goto L_0x005b;\n L_0x0058:\n r4 = r21;\n r2 = r5;\n L_0x005b:\n r6 = r0.f4676d;\n r6 = r6.findSerializationTyping(r11);\n r7 = 0;\n if (r6 == 0) goto L_0x006f;\n L_0x0064:\n r8 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.DEFAULT_TYPING;\n if (r6 == r8) goto L_0x006f;\n L_0x0068:\n r4 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.STATIC;\n if (r6 != r4) goto L_0x006e;\n L_0x006c:\n r4 = r3;\n goto L_0x006f;\n L_0x006e:\n r4 = r7;\n L_0x006f:\n r6 = 0;\n if (r4 == 0) goto L_0x0077;\n L_0x0072:\n r2 = r2.mo3385d();\n goto L_0x0078;\n L_0x0077:\n r2 = r6;\n L_0x0078:\n if (r1 == 0) goto L_0x00bc;\n L_0x007a:\n if (r2 != 0) goto L_0x007d;\n L_0x007c:\n r2 = r5;\n L_0x007d:\n r4 = r2.mo3394u();\n if (r4 != 0) goto L_0x00b6;\n L_0x0083:\n r1 = new java.lang.IllegalStateException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Problem trying to create BeanPropertyWriter for property '\";\n r3.<init>(r4);\n r4 = r15.mo1398a();\n r3.append(r4);\n r4 = \"' (of type \";\n r3.append(r4);\n r4 = r0.f4674b;\n r4 = r4.m3615a();\n r3.append(r4);\n r4 = \"); serialization type \";\n r3.append(r4);\n r3.append(r2);\n r2 = \" has no content\";\n r3.append(r2);\n r2 = r3.toString();\n r1.<init>(r2);\n throw r1;\n L_0x00b6:\n r1 = r2.mo3383b(r1);\n r8 = r1;\n goto L_0x00bd;\n L_0x00bc:\n r8 = r2;\n L_0x00bd:\n r1 = r0.f4675c;\n r2 = r15.mo1423y();\n r1 = r1.m3138a(r2);\n r1 = r1.m3139b();\n r2 = com.p111d.p112a.p113a.C1329q.C1327a.USE_DEFAULTS;\n if (r1 != r2) goto L_0x00d1;\n L_0x00cf:\n r1 = com.p111d.p112a.p113a.C1329q.C1327a.ALWAYS;\n L_0x00d1:\n r2 = com.p111d.p112a.p121c.p134k.C1501m.C15001.f4671a;\n r1 = r1.ordinal();\n r1 = r2[r1];\n switch(r1) {\n case 1: goto L_0x00ef;\n case 2: goto L_0x00e5;\n case 3: goto L_0x00df;\n case 4: goto L_0x00dd;\n default: goto L_0x00dc;\n };\n L_0x00dc:\n goto L_0x0127;\n L_0x00dd:\n r7 = r3;\n goto L_0x0127;\n L_0x00df:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x00e1:\n r10 = r1;\n r9 = r3;\n goto L_0x013d;\n L_0x00e5:\n r1 = r16.mo3560a();\n if (r1 == 0) goto L_0x00ec;\n L_0x00eb:\n goto L_0x00df;\n L_0x00ec:\n r9 = r3;\n r10 = r6;\n goto L_0x013d;\n L_0x00ef:\n if (r8 != 0) goto L_0x00f3;\n L_0x00f1:\n r1 = r5;\n goto L_0x00f4;\n L_0x00f3:\n r1 = r8;\n L_0x00f4:\n r2 = r0.f4675c;\n r2 = r2.m3139b();\n r4 = com.p111d.p112a.p113a.C1329q.C1327a.NON_DEFAULT;\n if (r2 != r4) goto L_0x0107;\n L_0x00fe:\n r2 = r15.mo1398a();\n r1 = r0.m3864a(r2, r11, r1);\n goto L_0x010b;\n L_0x0107:\n r1 = com.p111d.p112a.p121c.p134k.C1501m.m3863a(r1);\n L_0x010b:\n if (r1 != 0) goto L_0x010e;\n L_0x010d:\n goto L_0x00e1;\n L_0x010e:\n r2 = r1.getClass();\n r2 = r2.isArray();\n if (r2 == 0) goto L_0x0139;\n L_0x0118:\n r2 = java.lang.reflect.Array.getLength(r1);\n r3 = r1.getClass();\n r4 = new com.d.a.c.m.b$1;\n r4.<init>(r3, r2, r1);\n r10 = r4;\n goto L_0x013c;\n L_0x0127:\n r1 = r16.mo3391n();\n if (r1 == 0) goto L_0x013b;\n L_0x012d:\n r1 = r0.f4673a;\n r2 = com.p111d.p112a.p121c.C5387z.WRITE_EMPTY_JSON_ARRAYS;\n r1 = r1.m18737a(r2);\n if (r1 != 0) goto L_0x013b;\n L_0x0137:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x0139:\n r10 = r1;\n goto L_0x013c;\n L_0x013b:\n r10 = r6;\n L_0x013c:\n r9 = r7;\n L_0x013d:\n r12 = new com.d.a.c.k.d;\n r1 = r0.f4674b;\n r4 = r1.mo1376f();\n r1 = r12;\n r2 = r15;\n r3 = r11;\n r6 = r17;\n r7 = r18;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r0.f4676d;\n r1 = r1.findNullSerializer(r11);\n if (r1 == 0) goto L_0x015f;\n L_0x0157:\n r2 = r14;\n r1 = r2.mo2929c(r1);\n r12.mo3537b(r1);\n L_0x015f:\n r1 = r0.f4676d;\n r1 = r1.findUnwrappingNameTransformer(r11);\n if (r1 == 0) goto L_0x016d;\n L_0x0167:\n r2 = new com.d.a.c.k.a.r;\n r2.<init>(r12, r1);\n r12 = r2;\n L_0x016d:\n return r12;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.k.m.a(com.d.a.c.aa, com.d.a.c.f.n, com.d.a.c.j, com.d.a.c.o, com.d.a.c.i.f, com.d.a.c.i.f, com.d.a.c.f.e, boolean):com.d.a.c.k.d\");\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public MirroredTypesException(List<? extends TypeMirror> paramList) {\n/* 69 */ super(\"Attempt to access Class objects for TypeMirrors \" + (paramList = new ArrayList<>(paramList))\n/* */ \n/* 71 */ .toString());\n/* 72 */ this.types = Collections.unmodifiableList(paramList);\n/* */ }", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public static final C25225ao m39409a(C46865e c46865e, C46865e c46865e2) {\n AppMethodBeat.m2504i(119243);\n C25052j.m39376p(c46865e, \"from\");\n C25052j.m39376p(c46865e2, \"to\");\n Object obj = c46865e.dYq().size() == c46865e2.dYq().size() ? 1 : null;\n if (C44847aa.AUz && obj == null) {\n Throwable assertionError = new AssertionError(c46865e + \" and \" + c46865e2 + \" should have same number of type parameters, but \" + c46865e.dYq().size() + \" / \" + c46865e2.dYq().size() + \" found\");\n AppMethodBeat.m2505o(119243);\n throw assertionError;\n }\n C8238a c8238a = C25225ao.BJQ;\n List dYq = c46865e.dYq();\n C25052j.m39375o(dYq, \"from.declaredTypeParameters\");\n Iterable<C36955ar> iterable = dYq;\n Collection arrayList = new ArrayList(C25034m.m39318d(iterable));\n for (C36955ar dXY : iterable) {\n arrayList.add(dXY.dXY());\n }\n Iterable iterable2 = (List) arrayList;\n dYq = c46865e2.dYq();\n C25052j.m39375o(dYq, \"to.declaredTypeParameters\");\n iterable = dYq;\n Collection arrayList2 = new ArrayList(C25034m.m39318d(iterable));\n for (C36955ar dXY2 : iterable) {\n C25052j.m39375o(dXY2, \"it\");\n C8235ad dZf = dXY2.dZf();\n C25052j.m39375o(dZf, \"it.defaultType\");\n arrayList2.add(C41448a.m72315aM(dZf));\n }\n C25225ao bf = C8238a.m14560bf(C31586ag.m51052v(C25035t.m39325a(iterable2, (Iterable) (List) arrayList2)));\n AppMethodBeat.m2505o(119243);\n return bf;\n }", "@Override\n public void func_104112_b() {\n \n }", "public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}", "protected GEDCOMType() {/* intentionally empty block */}", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "public interface InterpolationMethodBaseType extends CodeType {\r\n}", "private void checkCommon() {\n final AnnotationTypeDeclaration commonAnnoType = (AnnotationTypeDeclaration) _env.getTypeDeclaration(Common.class.getName());\n final Collection<Declaration> decls = _env.getDeclarationsAnnotatedWith(commonAnnoType);\n for (Declaration decl : decls) {\n if (decl instanceof FieldDeclaration) {\n final FieldDeclaration field = (FieldDeclaration) decl;\n final TypeMirror type = field.getType();\n if (type instanceof DeclaredType) {\n final TypeMirror collectionType = _env.getTypeUtils().getDeclaredType(_env.getTypeDeclaration(Collection.class.getName()));\n final Collection<TypeMirror> typeVars = ((DeclaredType) type).getActualTypeArguments();\n if (typeVars.size() == 1) {\n TypeMirror typeVar = typeVars.iterator().next();\n boolean assignable = _env.getTypeUtils().isAssignable(typeVar, collectionType);\n if (assignable)\n _msgr.printError(typeVar + \" is assignable to \" + collectionType);\n else\n _msgr.printError(typeVar + \" is not assignable to \" + collectionType);\n }\n }\n } else if (decl instanceof TypeDeclaration) {\n final TypeDeclaration typeDecl = (TypeDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = typeDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n } else if (decl instanceof MethodDeclaration) {\n final MethodDeclaration methodDecl = (MethodDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = methodDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n }\n }\n }", "public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}", "public abstract void mo70713b();", "@Ignore\n @Test\n public void discoverOneTypes() throws Exception {\n }", "public interface C24717ak {\n}", "interface CodeList149 {\n}", "public lj au() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public abstract void mo42331g();", "public lj ax() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface C32454c<T extends C32454c> {\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$a */\n public static class C32455a {\n /* renamed from: a */\n public static C32454c m105172a() {\n return new C32449b();\n }\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$b */\n public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$c */\n public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$d */\n public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$e */\n public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }\n\n /* renamed from: a */\n void mo21067a(Surface surface);\n\n /* renamed from: a */\n void mo83703a(C32456b<T> bVar);\n\n /* renamed from: a */\n void mo83704a(C32457c<T> cVar);\n\n /* renamed from: a */\n void mo83705a(C32458d<T> dVar);\n\n /* renamed from: a */\n void mo83706a(C32459e<T> eVar);\n\n /* renamed from: a */\n void mo21068a(String str) throws IOException;\n\n /* renamed from: a */\n void mo21069a(boolean z);\n\n /* renamed from: b */\n void mo21070b();\n\n /* renamed from: b */\n void mo21071b(boolean z);\n\n /* renamed from: c */\n void mo21072c();\n\n /* renamed from: d */\n void mo21073d();\n\n /* renamed from: e */\n void mo21074e();\n\n /* renamed from: f */\n void mo21075f();\n\n /* renamed from: g */\n void mo21076g();\n\n /* renamed from: h */\n C32446a mo21077h() throws Exception;\n\n /* renamed from: i */\n String mo21078i();\n}", "public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }", "void checkTypesOfInstanceMethodResolvingFunctions() {\r\n \r\n for (int i = 0, nClassInstances = currentModuleTypeInfo.getNClassInstances(); i < nClassInstances; ++i) { \r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i);\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n if (instanceNode == null) {\r\n // This can occur if we are compiling an adjunct to a module that contains instance declarations.\r\n continue;\r\n }\r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNode.getChild(2);\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode classMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n classMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String classMethodName = classMethodNameNode.getText(); \r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(classMethodName); \r\n QualifiedName resolvingFunctionName = classMethodNameNode.nextSibling().toQualifiedName();\r\n \r\n TypeExpr instanceMethodType;\r\n {\r\n TypeExpr classMethodType = classMethod.getTypeExpr();\r\n TypeVar classTypeVar = classMethodType.getTypeClassTypeVar(typeClass.getTypeClassTypeVarName());\r\n classTypeVar.setInstance(classInstance.getType());\r\n instanceMethodType = classMethodType;\r\n }\r\n \r\n TypeExpr resolvingFunctionType = compiler.getTypeChecker().getEntity(resolvingFunctionName).getTypeExpr(); \r\n \r\n if (instanceMethodType.getGenericClassConstrainedPolymorphicVars(null).size() != 0 ||\r\n resolvingFunctionType.getGenericClassConstrainedPolymorphicVars(null).size() != 0) {\r\n //if either the instance method type or the resolving function type involve constrained type vars, then they\r\n //must have identically the same type. For example, for equals in the Eq-List instance, the types of the instance\r\n //method and the resolving instance must both be: Eq a => [a] -> [a] -> Boolean.\r\n if (!instanceMethodType.sameType(resolvingFunctionType)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeSpecific(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n \r\n } \r\n } else {\r\n //we allow extra flexibility here, so that e.g. withing the Eq-Integer instance, we can define fromInteger as id (rather than idInteger).\r\n if (!TypeExpr.canPatternMatch(instanceMethodType, resolvingFunctionType, currentModuleTypeInfo)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeGeneral(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n } \r\n } \r\n } \r\n } \r\n }", "public abstract void mo27385c();", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private PTypeRefSkel() {}", "@Test\n\tpublic void testInternalTypes() {\n\t\tlogger.info(\"Run testInternalTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// OrderByDirectionOutputType\n\t\tfinal IntrospectionFullType orderByDirectionOutputType = getFullType(introspection,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\t\tAssert.assertEquals(2, orderByDirectionOutputType.getEnumValues().size());\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.ASC.toString(), false);\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.DESC.toString(), false);\n\n\t\t// OrderByInputType\n\t\tfinal IntrospectionFullType orderByInputType = getFullType(introspection, getOrderByInputTypeName());\n\t\tAssert.assertEquals(2, orderByInputType.getInputFields().size());\n\t\tassertInputField(orderByInputType, \"field\", IntrospectionTypeKindEnum.NON_NULL,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(orderByInputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// OrderByOutputType\n\t\tfinal IntrospectionFullType orderByOutputType = getFullType(introspection, getOrderByOutputTypeName());\n\t\tAssert.assertEquals(2, orderByOutputType.getFields().size());\n\t\tassertField(orderByOutputType, \"field\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertField(orderByOutputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// PagingInputType\n\t\tfinal IntrospectionFullType pagingInputType = getFullType(introspection, getPagingInputTypeName());\n\t\tAssert.assertEquals(2, pagingInputType.getInputFields().size());\n\t\tassertInputField(pagingInputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(pagingInputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\n\t\t// PagingOutputType\n\t\tfinal IntrospectionFullType pagingOutputType = getFullType(introspection, getPagingOutputTypeName());\n\t\tAssert.assertEquals(3, pagingOutputType.getFields().size());\n\t\tassertField(pagingOutputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"totalLength\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t}", "@Ignore\n @Test\n public void discoverSeveralTypes() throws Exception {\n }", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "public interface C1709a<Data> {\n /* renamed from: a */\n Class<Data> mo12943a();\n\n /* renamed from: a */\n Data mo12944a(String str) throws IllegalArgumentException;\n\n /* renamed from: a */\n void mo12945a(Data data) throws IOException;\n }", "private Infer() {\n\n }", "<S extends C0218dl> S mo283b();", "@Override\n\tpublic void type() {\n\t\t\n\t}", "public static String toLegacyType(String keyword, String value) {\n/* 1300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static void createTypeMap() {\n\n }", "public abstract void mo27464a();", "@Test\n public void testSourceSuperTypeInputCompatibility() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // List<DataType> sourceInputTypes = new ArrayList<DataType>();\n // sourceInputTypes.add(new DataTypeImpl<Type>(Object.class,\n // Object.class));\n // DataType<List<DataType>> inputType = new\n // DataTypeImpl<List<DataType>>(String.class, sourceInputTypes);\n // Operation opSource1 = newOperationImpl(\"op1\", inputType, null, null,\n // false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // List<DataType> targetInputTypes = new ArrayList<DataType>();\n // targetInputTypes.add(new DataTypeImpl<Type>(String.class,\n // String.class));\n // DataType<List<DataType>> targetInputType =\n // new DataTypeImpl<List<DataType>>(String.class, targetInputTypes);\n //\n // Operation opTarget = newOperationImpl(\"op1\", targetInputType, null,\n // null, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }", "private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }", "public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}", "public abstract Object mo1771a();", "private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}", "<T> al<T> mo5674a(C4042k c4042k, C3972a<T> c3972a);", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "public interface Representation // C# has public abstract class\n{\n /// <summary>\n /// Creates a new type object of this representation, and\n /// associates it with the given HOW. Also sets up a new\n /// representation instance if needed.\n /// </summary>\n /// <param name=\"HOW\"></param>\n /// <returns></returns>\n RakudoObject type_object_for(ThreadContext tc, RakudoObject how);\n\n /// <summary>\n /// Creates a new instance based on the type object.\n /// </summary>\n /// <param name=\"WHAT\"></param>\n /// <returns></returns>\n RakudoObject instance_of(ThreadContext tc, RakudoObject what);\n\n /// <summary>\n /// Checks if a given object is defined.\n /// </summary>\n /// <param name=\"Obj\"></param>\n /// <returns></returns>\n boolean defined(ThreadContext tc, RakudoObject obj);\n\n /// <summary>\n /// Gets the current value for an attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Gets the current value for an attribute, obtained using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <returns></returns>\n RakudoObject get_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint);\n\n /// <summary>\n /// Binds the given value to the specified attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);\n\n /// <summary>\n /// Binds the given value to the specified attribute, using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint, RakudoObject Value);\n\n /// <summary>\n /// Gets the hint for the given attribute ID.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n int hint_for(ThreadContext tc, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Used with boxing. Sets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_int(ThreadContext tc, RakudoObject classHandle, int Value);\n\n /// <summary>\n /// Used with boxing. Gets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n int get_int(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_num(ThreadContext tc, RakudoObject classHandle, double Value);\n\n /// <summary>\n /// Used with boxing. Gets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n double get_num(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_str(ThreadContext tc, RakudoObject classHandle, String Value);\n\n /// <summary>\n /// Used with boxing. Gets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n String get_str(ThreadContext tc, RakudoObject classHandle);\n}", "public abstract void mo27386d();", "public abstract void mo42329d();", "Compatibility compatibility();", "public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}", "public interface ATypeCheckNode {}", "@Test\n\tpublic void testTypeExtension() {\n\t}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "@Deprecated // use the generic form only\npublic interface BonaPortableConverter extends DataConverter<BonaPortable,ObjectReference> {\n}", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public interface DataType extends CodeItem {\n}", "public interface BuiltinTypeValidator {\n // -------------------------------------------------------------------------\n // CONSTANTS\n // -------------------------------------------------------------------------\n\n /** validation error string for Bit String failures */\n String BIT_STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the BIT STRING format. The first byte must be within the range 0x00 - 0x07. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for GeneralizedTime failures */\n String GENERALIZEDTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the GeneralizedTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Bit String failures */\n String EMPTY_BYTE_ARRAY_VALIDATION_ERROR =\n \"ASN.1 %s type must contain at least one byte. Supplied array contains 0 bytes\";\n\n /** validation error string for IA5String failures */\n String IA5STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the IA5String format. All bytes must be within the range 0x00 - 0x7f. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Null failures */\n String NULL_VALIDATION_ERROR = \"Null type must be zero length.\";\n\n /** validation error string for NumericString failures */\n String NUMERICSTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the NumericString format. All bytes must be within the range '0' - '9' (0x30 - 0x39). Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Oid failures */\n String OID_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the OID format. The first byte must be with the range 0x00 - 0x7F. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for incomplete Oid */\n String OID_VALIDATION_ERROR_INCOMPLETE =\n \"Supplied bytes do not conform to the OID format. The OID encoding is incomplete: \";\n\n /** validation error string for PrintableString failures */\n String PRINTABLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the PrintableString format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for UTCTime failures */\n String UTCTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the UTCTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for VisibleString failures */\n String VISIBLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the VisibleString format. All bytes must be within the range 0x20 - 0x7e. Supplied bytes contain invalid values: \";\n\n // -------------------------------------------------------------------------\n // CLASS VARIABLES\n // -------------------------------------------------------------------------\n\n /** null instance */\n BuiltinTypeValidator.Null NULL = new BuiltinTypeValidator.Null();\n\n // -------------------------------------------------------------------------\n // PUBLIC METHODS\n // -------------------------------------------------------------------------\n\n /**\n * Validates the supplied tag in the data based on the the kind of ASN.1 Built-in Type\n * represented by this validator\n *\n * @param tag tag to validate\n * @param asnData data to retrieve tag from\n * @return any failures encountered while validating the tag\n */\n ImmutableSet<DecodedTagValidationFailure> validate(String tag, AsantiAsnData asnData);\n\n /**\n * Validates the supplied bytes based on the the kind of ASN.1 Built-in Type represented by this\n * validator\n *\n * @param bytes bytes to validate\n * @return any failures encountered while validating the bytes\n */\n ImmutableSet<ByteValidationFailure> validate(byte[] bytes);\n\n // -------------------------------------------------------------------------\n // INTERNAL CLASS: Null\n // -------------------------------------------------------------------------\n\n /**\n * Null instance of {@link BuiltinTypeDecoder}.\n *\n * <p>The {@code validate} methods will return an empty set.\n *\n * @author brightSPARK Labs\n */\n class Null implements BuiltinTypeValidator {\n // ---------------------------------------------------------------------\n // CONSTRUCTION\n // ---------------------------------------------------------------------\n\n /**\n * Default constructor. This is private, use {@link BuiltinTypeValidator#NULL} to obtain an\n * instance\n */\n private Null() {}\n\n // ---------------------------------------------------------------------\n // IMPLEMENTATION: BuiltinTypeValidator\n // ---------------------------------------------------------------------\n\n @Override\n public ImmutableSet<DecodedTagValidationFailure> validate(\n final String tag, final AsantiAsnData asnData) {\n return ImmutableSet.of();\n }\n\n @Override\n public ImmutableSet<ByteValidationFailure> validate(final byte[] bytes) {\n return ImmutableSet.of();\n }\n }\n}", "public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}", "private void computeSourceClass(JClassType type) {\n if (type == null || alreadyRan.contains(type)) {\n return;\n }\n \n alreadyRan.add(type);\n \n /*\n * IMPORTANT: Visit my supertype first. The implementation of\n * com.google.gwt.lang.Cast.wrapJSO() depends on all superclasses having\n * typeIds that are less than all their subclasses. This allows the same\n * JSO to be wrapped stronger but not weaker.\n */\n computeSourceClass(type.extnds);\n \n if (!program.typeOracle.isInstantiatedType(type)) {\n return;\n }\n \n // Find all possible query types which I can satisfy\n Set/* <JReferenceType> */yesSet = null;\n for (Iterator iter = queriedTypes.keySet().iterator(); iter.hasNext();) {\n JReferenceType qType = (JReferenceType) iter.next();\n Set/* <JReferenceType> */querySet = (Set) queriedTypes.get(qType);\n if (program.typeOracle.canTriviallyCast(type, qType)) {\n for (Iterator it = querySet.iterator(); it.hasNext();) {\n JReferenceType argType = (JReferenceType) it.next();\n if (program.typeOracle.canTriviallyCast(type, argType)) {\n if (yesSet == null) {\n yesSet = new HashSet/* <JReferenceType> */();\n }\n yesSet.add(qType);\n break;\n }\n }\n }\n }\n \n /*\n * Weird: JavaScriptObjects MUST have a typeId, the implementation of\n * Cast.wrapJSO depends on it.\n */\n if (yesSet == null && !program.isJavaScriptObject(type)) {\n return; // won't satisfy anything\n }\n \n // use an array to sort my yes set\n JReferenceType[] yesArray = new JReferenceType[nextQueryId];\n if (yesSet != null) {\n for (Iterator it = yesSet.iterator(); it.hasNext();) {\n JReferenceType yesType = (JReferenceType) it.next();\n Integer boxedInt = (Integer) queryIds.get(yesType);\n yesArray[boxedInt.intValue()] = yesType;\n }\n }\n \n // create a sparse lookup object\n JsonObject jsonObject = new JsonObject(program);\n for (int i = 0; i < nextQueryId; ++i) {\n if (yesArray[i] != null) {\n JIntLiteral labelExpr = program.getLiteralInt(i);\n JIntLiteral valueExpr = program.getLiteralInt(1);\n jsonObject.propInits.add(new JsonPropInit(program, labelExpr,\n valueExpr));\n }\n }\n \n // add an entry for me\n classes.add(type);\n jsonObjects.add(jsonObject);\n }", "public interface C2836e {\n /* renamed from: a */\n InputStream mo1151a();\n\n /* renamed from: b */\n String mo1152b();\n\n /* renamed from: c */\n String[] mo1153c();\n\n /* renamed from: d */\n long mo1154d();\n}", "@Override\n\tpublic MyIDictionary<String, Type> typecheck(MyIDictionary<String, Type> typeEnv) throws MyException {\n\t\treturn null;\n\t}", "void mo83706a(C32459e<T> eVar);", "public interface TypePoll {\n /**\n * ddd\n * @param clazz\n * @param itemViewBinder\n * @param linker\n * @param <T>\n */\n <T> void register(@NonNull Class<? extends T> clazz,\n @NonNull BaseItemViewBinder<?,T> itemViewBinder,\n @NonNull Linker<T> linker);\n\n int indexOf(@NonNull Class<?> clazz);\n\n\n @NonNull\n BaseItemViewBinder getItemBinder(int index);\n\n @NonNull\n BaseItemViewBinder getBinderByClass(@NonNull int index);\n\n\n @NonNull\n Linker<?> getLinker(int index);\n}", "@Test\n\tpublic void couplingWithGenericsAndJavaType() {\n\t\tCKClassResult b = report.get(\"cbo.Coupling6\");\n\t\tAssertions.assertEquals(1, b.getCbo());\n\n\t\tCKClassResult c = report.get(\"cbo.Coupling61\");\n\t\tAssertions.assertEquals(1, c.getCbo());\n\n\t\tCKClassResult d = report.get(\"cbo.Coupling62\");\n\t\tAssertions.assertEquals(2, d.getCbo());\n\n\t\tCKClassResult e = report.get(\"cbo.Coupling63\");\n\t\tAssertions.assertEquals(2, e.getCbo());\n\n\t\tCKClassResult f = report.get(\"cbo.Coupling64\");\n\t\tAssertions.assertEquals(2, f.getCbo());\n\n\t\tCKClassResult g = report.get(\"cbo.Coupling65\");\n\t\tAssertions.assertEquals(2, g.getCbo());\n\n\t}", "public abstract void mo53562a(C18796a c18796a);", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "private void updateFieldsWithUnresolvedTypes(Environment result,\n \t\t\tEnvironment ext, Environment base) throws AstCreatorException {\n \t\t// Path node, token, inode and itoken\n \t\tfor(IInterfaceDefinition def : result.getAllDefinitions())\n \t\t{\n \t\t\tif (def instanceof BaseClassDefinition)\n \t\t\t{\n \t\t\t\tBaseClassDefinition bcdef = (BaseClassDefinition)def;\n \n \t\t\t\tfor(Field f : bcdef.getFields())\n \t\t\t\t{\n \t\t\t\t\tif (f.type == null)\n \t\t\t\t\t{\n \t\t\t\t\t\tIInterfaceDefinition type = base.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type == null) type = ext.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tf.type = type;\n \t\t\t\t\t\t\tif (type instanceof ExternalJavaClassDefinition)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tExternalJavaClassDefinition ejcd = (ExternalJavaClassDefinition)type;\n \t\t\t\t\t\t\t\tif (ejcd.getFields() != null && ejcd.getFields().size() > 0 && ejcd.getFields().get(0).isTokenField)\n \t\t\t\t\t\t\t\t\tf.isTokenField = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\tthrow new AstCreatorException(\"The extension points to production: \"+f.getUnresolvedType()+\" in alternative \"+def.getName().getName()+\" which does not exists.\",null,true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \t}", "public void mo38117a() {\n }", "public interface C11962p<T> {\n /* renamed from: a */\n void mo30271a(C11961o<T> oVar) throws Exception;\n}", "public void smell() {\n\t\t\n\t}", "Type_use getType_use();", "@Test\n\tpublic void testInvariantsAndTheorems_06_partialTyping() throws Exception {\n\t\tIContextRoot con = createContext(\"ctx\");\n\t\taddCarrierSets(con, \"S1\");\n\t\n\t\tsaveRodinFileOf(con);\n\n\t\tITypeEnvironmentBuilder typeEnvironment = mTypeEnvironment(\"S1=ℙ(S1); V1=S1\",\n\t\t\t\tfactory);\n\t\t\n\t\tIMachineRoot mac = createMachine(\"mac\");\n\t\taddMachineSees(mac, \"ctx\");\n\t\taddVariables(mac, \"V1\");\n\t\taddInvariants(mac, \n\t\t\t\tmakeSList(\"I1\", \"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1=V1\", \"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false, false);\n\t\taddInitialisation(mac, \"V1\");\n\t\n\t\tsaveRodinFileOf(mac);\n\t\t\n\t\trunBuilderCheck(marker(mac.getInvariants()[0], PREDICATE_ATTRIBUTE, 0,\n\t\t\t\t2, TypeUnknownError));\n\t\t\n\t\tISCMachineRoot file = mac.getSCMachineRoot();\n\t\t\n\t\tcontainsInvariants(file, typeEnvironment, \n\t\t\t\tmakeSList(\"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false);\n\t}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "protected void addPoint(int k, int i)\n/* */ {\n/* 34 */ throw new Error(\"Unresolved compilation problems: \\n\\tPairEmissionState cannot be resolved to a type\\n\\tPairEmissionState cannot be resolved to a type\\n\\tstates cannot be resolved\\n\\tPhasedIntegerGenotypeData cannot be resolved to a type\\n\\tdata cannot be resolved\\n\");\n/* */ }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C0747b extends C0736b, C0738d, C0739e<Object> {\n }", "public void testTypeASTMapper() {\n MyTAST tast = MyTAST.parameterization(0,\n MyTAST.arrayOf(1,\n MyTAST.arrayOf(2,\n MyTAST.parameterization(3,\n new MyTAST(4)\n )\n )\n ),\n MyTAST.parameterization(5,\n new MyTAST(6),\n MyTAST.arrayOf(7,\n new MyTAST(8)),\n new MyTAST(9),\n new MyTAST(10)\n )\n );\n\n // Pretend myField represents a field of the type represented by tast\n // We have to do this because clients are no longer allowed to create\n // AElements directly; instead, they must vivify.\n ATypeElement<SimpleAnnotation> myAField =\n new AScene<SimpleAnnotation>(SimpleAnnotationFactory.saf)\n .classes.vivify(\"someclass\").fields.vivify(\"somefield\");\n // load it with annotations we can check against IDs\n myAField.tlAnnotationsHere.add(makeTLIdAnno(0));\n assignId(myAField, 1, 0, 0);\n assignId(myAField, 2, 0, 1);\n assignId(myAField, 3, 0);\n assignId(myAField, 4, 0, 0, 0);\n assignId(myAField, 5, 1);\n assignId(myAField, 6, 1, 0);\n assignId(myAField, 7, 1, 1, 0);\n assignId(myAField, 8, 1, 1);\n assignId(myAField, 9, 1, 2);\n // to test vivification, we don't assign 10\n \n // now visit and make sure the ID numbers match up\n MyTASTMapper mapper = new MyTASTMapper();\n mapper.traverse(tast, myAField);\n \n for (int i = 0; i < 11; i++)\n assertTrue(mapper.saw[i]);\n // make sure it vivified #10 and our annotation stuck\n AElement<SimpleAnnotation> e10 = myAField.innerTypes.get(\n new InnerTypeLocation(Arrays.asList(1, 3)));\n assertNotNull(e10);\n int e10aid = (Integer) e10.lookupAnnotation(\"IdAnno\")\n .getFieldValue(\"id\");\n assertEquals(e10aid, 10);\n }", "public abstract C7982k4<E> m39518y();", "@Test\n\tpublic void testInternalEntityRelatedTypes() {\n\t\tlogger.info(\"Run testInternalEntityRelatedTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// Entity1InputType\n\t\tfinal IntrospectionFullType entity1InputType = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(27, entity1InputType.getInputFields().size());\n\n\t\tassertInputField(entity1InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"intAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(entity1InputType, \"longAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t\tassertInputField(entity1InputType, \"doubleAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLFloat.getName());\n\t\tassertInputField(entity1InputType, \"stringAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"booleanAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBoolean.getName());\n\t\tassertInputField(entity1InputType, \"bigIntAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigInteger.getName());\n\t\tassertInputField(entity1InputType, \"bigDecimalAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigDecimal.getName());\n\t\tassertInputField(entity1InputType, \"bytesAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLByte.getName());\n\t\tassertInputField(entity1InputType, \"shortAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLShort.getName());\n\t\tassertInputField(entity1InputType, \"charAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLChar.getName());\n\t\tassertInputField(entity1InputType, \"dateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLDate.getName());\n\t\tassertInputField(entity1InputType, \"fileAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLFile.getName());\n\t\tassertInputField(entity1InputType, \"localDateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDate.getName());\n\t\tassertInputField(entity1InputType, \"localDateTimeAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDateTime.getName());\n\t\tassertInputField(entity1InputType, \"instantAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLInstant.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"enumAttr\", IntrospectionTypeKindEnum.ENUM, Enum1.class.getSimpleName());\n\n\t\tassertInputField(entity1InputType, \"enumList\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\t\tassertInputField(entity1InputType, \"enumSet\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\n\t\tassertInputField(entity1InputType, \"entity2\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity3\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity4\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\tassertInputField(entity1InputType, \"embeddedData1\", IntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tassertInputField(entity1InputType, \"embeddedData1s\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\n\t\t// Entity1LoadResult\n\t\tfinal IntrospectionFullType entity1LoadResult = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity1LoadResult.getFields().size());\n\n\t\tassertField(entity1LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName());\n\t\tassertField(entity1LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity1LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity2InputType\n\t\tfinal IntrospectionFullType entity2InputType = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity2InputType.getInputFields().size());\n\n\t\tassertInputField(entity2InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity2InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity2LoadResult\n\t\tfinal IntrospectionFullType entity2LoadResult = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity2LoadResult.getFields().size());\n\n\t\tassertField(entity2LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity2.class.getSimpleName());\n\t\tassertField(entity2LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity2LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity3InputType\n\t\tfinal IntrospectionFullType entity3InputType = getFullType(introspection,\n\t\t\t\tEntity3.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity3InputType.getInputFields().size());\n\n\t\tassertInputField(entity3InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity3InputType, \"entity1\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity4InputType\n\t\tfinal IntrospectionFullType entity4InputType = getFullType(introspection,\n\t\t\t\tEntity4.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity4InputType.getInputFields().size());\n\n\t\tassertInputField(entity4InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity4InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t}", "public interface C22932f {\n /* renamed from: a */\n void mo59932a(String str, JSONObject jSONObject);\n}", "public abstract void mo70702a(C30989b c30989b);", "protected abstract void registerSuperTypes();", "public void test642_smartLifting2() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl2Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl2_1 t = new Team642sl2_2();\\n\" +\n\t\t\t \" T642sl2_2 o = new T642sl2_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_4 extends Team642sl2_3 {\\n\" +\n\t\t\t \" public class Role642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_4.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_1 extends T642sl2_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl2_2 extends Role642sl2_1 playedBy T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl2_3 extends Role642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl2_2 as Role642sl2_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_4 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_2 extends Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl2_4 extends Role642sl2_3 playedBy T642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_5 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_3 extends Team642sl2_2 {\\n\" +\n\t\t\t \" public class Role642sl2_5 extends Role642sl2_3 playedBy T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_3.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_6 extends T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl2_2 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_3 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl2_2.Role642sl2_4\");\n }", "public interface C20288m {\n /* renamed from: a */\n int mo54403a(String str, String str2);\n\n /* renamed from: a */\n List<DownloadInfo> mo54404a(String str);\n\n /* renamed from: a */\n void mo54405a();\n\n /* renamed from: a */\n void mo54406a(int i);\n\n /* renamed from: a */\n void mo54407a(int i, int i2);\n\n /* renamed from: a */\n void mo54408a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo54409a(int i, int i2, int i3, long j);\n\n /* renamed from: a */\n void mo54410a(int i, int i2, long j);\n\n /* renamed from: a */\n void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: a */\n void mo54412a(int i, Notification notification);\n\n /* renamed from: a */\n void mo54413a(int i, C20254v vVar);\n\n /* renamed from: a */\n void mo54414a(int i, List<DownloadChunk> list);\n\n /* renamed from: a */\n void mo54415a(int i, boolean z);\n\n /* renamed from: a */\n void mo54416a(C20211ac acVar);\n\n /* renamed from: a */\n void mo54417a(DownloadChunk downloadChunk);\n\n /* renamed from: a */\n void mo54418a(DownloadTask downloadTask);\n\n /* renamed from: a */\n void mo54419a(List<String> list);\n\n /* renamed from: a */\n void mo54420a(boolean z, boolean z2);\n\n /* renamed from: a */\n boolean mo54421a(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n DownloadInfo mo54422b(String str, String str2);\n\n /* renamed from: b */\n List<DownloadInfo> mo54423b(String str);\n\n /* renamed from: b */\n void mo54424b(int i);\n\n /* renamed from: b */\n void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: b */\n void mo54426b(int i, List<DownloadChunk> list);\n\n /* renamed from: b */\n void mo54427b(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n void mo54428b(DownloadTask downloadTask);\n\n /* renamed from: b */\n boolean mo54429b();\n\n /* renamed from: c */\n List<DownloadInfo> mo54430c(String str);\n\n /* renamed from: c */\n boolean mo54431c();\n\n /* renamed from: c */\n boolean mo54432c(int i);\n\n /* renamed from: c */\n boolean mo54433c(DownloadInfo downloadInfo);\n\n /* renamed from: d */\n List<DownloadInfo> mo54434d(String str);\n\n /* renamed from: d */\n void mo54435d();\n\n /* renamed from: d */\n void mo54436d(int i);\n\n /* renamed from: e */\n void mo54437e(int i);\n\n /* renamed from: e */\n boolean mo54438e();\n\n /* renamed from: f */\n long mo54439f(int i);\n\n /* renamed from: f */\n void mo54440f();\n\n /* renamed from: g */\n int mo54441g(int i);\n\n /* renamed from: g */\n boolean mo54442g();\n\n /* renamed from: h */\n boolean mo54443h(int i);\n\n /* renamed from: i */\n DownloadInfo mo54444i(int i);\n\n /* renamed from: j */\n List<DownloadChunk> mo54445j(int i);\n\n /* renamed from: k */\n void mo54446k(int i);\n\n /* renamed from: l */\n void mo54447l(int i);\n\n /* renamed from: m */\n void mo54448m(int i);\n\n /* renamed from: n */\n boolean mo54449n(int i);\n\n /* renamed from: o */\n int mo54450o(int i);\n\n /* renamed from: p */\n boolean mo54451p(int i);\n\n /* renamed from: q */\n void mo54452q(int i);\n\n /* renamed from: r */\n boolean mo54453r(int i);\n\n /* renamed from: s */\n C20254v mo54454s(int i);\n\n /* renamed from: t */\n C20259y mo54455t(int i);\n\n /* renamed from: u */\n C20241o mo54456u(int i);\n}", "@Test\r\n public void testImportRedundancy() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.util.*\");\r\n Type t1 = typeParser.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n }", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "public abstract T mo36028b(Context context);", "public interface C26438t {\n /* renamed from: b */\n void mo5959b(boolean z, String str, Bundle bundle);\n}" ]
[ "0.56588846", "0.55258065", "0.53858924", "0.5374074", "0.5369886", "0.5353934", "0.5351341", "0.53429043", "0.5334839", "0.53212607", "0.530215", "0.5301301", "0.52903706", "0.52903706", "0.52903706", "0.5283512", "0.52777886", "0.5273244", "0.52068704", "0.5206165", "0.5193794", "0.51877815", "0.51770127", "0.51723695", "0.51610154", "0.515475", "0.5147618", "0.5141876", "0.51347923", "0.5129954", "0.5124015", "0.51239944", "0.51174325", "0.5104626", "0.50985885", "0.50955653", "0.5087753", "0.5087565", "0.5079433", "0.5078915", "0.5074575", "0.5072011", "0.50702196", "0.5069321", "0.50672996", "0.5066472", "0.50647366", "0.5063861", "0.50631326", "0.5061134", "0.5056911", "0.5055708", "0.5052675", "0.50488853", "0.5044489", "0.5044206", "0.50370616", "0.5036741", "0.5036532", "0.50232184", "0.50208384", "0.5016057", "0.50150365", "0.50142306", "0.5011434", "0.5010156", "0.5005392", "0.5004499", "0.50043017", "0.499017", "0.4989181", "0.49891752", "0.49808475", "0.49799126", "0.497798", "0.49721432", "0.49715728", "0.49656802", "0.4965144", "0.49596104", "0.49596024", "0.49595094", "0.49576166", "0.49574065", "0.49550754", "0.49549097", "0.4951472", "0.49474615", "0.49456787", "0.4943005", "0.4941922", "0.49400875", "0.49389032", "0.49321872", "0.4928525", "0.49270922", "0.49220252", "0.49183616", "0.49180764", "0.49170727", "0.49160677" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public final void zzg(String string2) { int n10 = this.position; try { int n11 = string2.length() * 3; n11 = zzbn.zzt(n11); int n12 = string2.length(); n12 = zzbn.zzt(n12); if (n12 == n11) { this.position = n11 = n10 + n12; byte[] byArray = this.buffer; int n13 = ((zzbn)this).zzag(); n11 = zzff.zza(string2, byArray, n11, n13); this.position = n10; int n14 = n11 - n10 - n12; ((zzbn)this).zzo(n14); this.position = n11; return; } n11 = zzff.zza(string2); ((zzbn)this).zzo(n11); byte[] byArray = this.buffer; n12 = this.position; int n15 = ((zzbn)this).zzag(); this.position = n11 = zzff.zza(string2, byArray, n12, n15); return; } catch (IndexOutOfBoundsException indexOutOfBoundsException) { zzbn$zzc zzbn$zzc = new zzbn$zzc(indexOutOfBoundsException); throw zzbn$zzc; } catch (zzfi zzfi2) { this.position = n10; this.zza(string2, zzfi2); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void additionalProcessing() {\n\t}", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.5535081", "0.54846907", "0.54519206", "0.54278064", "0.53613204", "0.5309005", "0.52847797", "0.5269803", "0.5230172", "0.51927435", "0.5191438", "0.51883394", "0.5168327", "0.51433074", "0.51433074", "0.51100445", "0.5068054", "0.5067755", "0.50661016", "0.50618815", "0.5047303", "0.5041135", "0.5039025", "0.50235474", "0.4963204", "0.49613473", "0.49240226", "0.49221218", "0.49205244", "0.4910153", "0.49070886", "0.49045718", "0.49041477", "0.49030378", "0.49025792", "0.48871017", "0.4882524", "0.48817915", "0.4880961", "0.4879467", "0.48694396", "0.4863201", "0.48621202", "0.48600096", "0.48495093", "0.4835507", "0.48300412", "0.48296046", "0.4829219", "0.48264617", "0.48244885", "0.4813368", "0.48123613", "0.48073086", "0.48019314", "0.48004314", "0.47945413", "0.4786912", "0.47771096", "0.47763753", "0.47727886", "0.47593686", "0.47536692", "0.47533438", "0.47498673", "0.47473362", "0.47469658", "0.47464383", "0.47444677", "0.4743415", "0.4740098", "0.4738612", "0.47332752", "0.47221702", "0.4717759", "0.47096145", "0.47085458", "0.47074702", "0.470668", "0.46983686", "0.46977887", "0.46945336", "0.46943447", "0.4692247", "0.46921644", "0.46915278", "0.46889123", "0.4688465", "0.4687943", "0.46829402", "0.46795157", "0.46698982", "0.46688205", "0.46674287", "0.4664572", "0.46629846", "0.4656533", "0.46531087", "0.46529138", "0.46519262", "0.46511453" ]
0.0
-1
/ Unable to fully structure code Could not resolve type clashes
public final void zzo(int var1_1) { var2_2 = zzbn.zzah(); if (var2_2 != 0 && (var2_2 = this.zzag()) >= (var3_3 = 10)) { while (true) { if ((var2_2 = var1_1 & -128) == 0) { var4_4 = this.buffer; var3_3 = this.position; this.position = var5_6 = var3_3 + 1; var6_8 = var3_3; var1_1 = (byte)var1_1; zzfd.zza(var4_4, var6_8, (byte)var1_1); return; } var4_4 = this.buffer; var3_3 = this.position; this.position = var5_6 = var3_3 + 1; var6_8 = var3_3; var8_9 = (byte)(var1_1 & 127 | 128); zzfd.zza(var4_4, var6_8, var8_9); var1_1 >>>= 7; } } while (true) { if ((var2_2 = var1_1 & -128) != 0) ** GOTO lbl46 var4_5 /* !! */ = this.buffer; break; } catch (IndexOutOfBoundsException var9_11) { var4_5 /* !! */ = (byte[])new zzbn$zzc; var10_12 /* !! */ = new Object[3]; var11_13 = this.position; var10_12 /* !! */ [0] = var11_13; var12_14 = this.limit; var8_10 = 1; var10_12 /* !! */ [var8_10] = var12_14; var11_13 = var8_10; var10_12 /* !! */ [2] = var11_13; var10_12 /* !! */ = String.format("Pos: %d, limit: %d, len: %d", var10_12 /* !! */ ); var4_5 /* !! */ ((String)var10_12 /* !! */ , var9_11); throw var4_5 /* !! */ ; } { var3_3 = this.position; var5_7 = var3_3 + 1; this.position = var5_7; var1_1 = (byte)var1_1; var4_5 /* !! */ [var3_3] = var1_1; return; lbl46: // 1 sources var4_5 /* !! */ = this.buffer; var3_3 = this.position; var5_7 = var3_3 + 1; this.position = var5_7; var5_7 = (byte)(var1_1 & 127 | 128); var4_5 /* !! */ [var3_3] = var5_7; var1_1 >>>= 7; continue; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public interface C45946d {\n @C6457h\n /* renamed from: a */\n C12466b<TypedInput> mo111267a(@C6450ac String str, @C6461l List<C12461b> list);\n\n @C6468s\n /* renamed from: a */\n C12466b<TypedInput> mo111268a(@C6450ac String str, @C6461l List<C12461b> list, @C6451b TypedByteArray typedByteArray);\n}", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "public IncorrectType58119e() {\n }", "@Test\n void cannotInferType() {\n }", "private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }", "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r20, boolean r21) {\n /*\n r13 = this;\n r0 = r13;\n r5 = r16;\n r1 = r19;\n r11 = r20;\n r2 = r0.f4676d;\n r3 = r0.f4673a;\n r2 = r2.refineSerializationType(r3, r11, r5);\n r3 = 1;\n if (r2 == r5) goto L_0x0058;\n L_0x0012:\n r4 = r2.m11531e();\n r6 = r16.m11531e();\n r7 = r4.isAssignableFrom(r6);\n if (r7 != 0) goto L_0x0056;\n L_0x0020:\n r7 = r6.isAssignableFrom(r4);\n if (r7 != 0) goto L_0x0056;\n L_0x0026:\n r1 = new java.lang.IllegalArgumentException;\n r2 = new java.lang.StringBuilder;\n r3 = \"Illegal concrete-type annotation for method '\";\n r2.<init>(r3);\n r3 = r20.mo1360b();\n r2.append(r3);\n r3 = \"': class \";\n r2.append(r3);\n r3 = r4.getName();\n r2.append(r3);\n r3 = \" not a super-type of (declared) class \";\n r2.append(r3);\n r3 = r6.getName();\n r2.append(r3);\n r2 = r2.toString();\n r1.<init>(r2);\n throw r1;\n L_0x0056:\n r4 = r3;\n goto L_0x005b;\n L_0x0058:\n r4 = r21;\n r2 = r5;\n L_0x005b:\n r6 = r0.f4676d;\n r6 = r6.findSerializationTyping(r11);\n r7 = 0;\n if (r6 == 0) goto L_0x006f;\n L_0x0064:\n r8 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.DEFAULT_TYPING;\n if (r6 == r8) goto L_0x006f;\n L_0x0068:\n r4 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.STATIC;\n if (r6 != r4) goto L_0x006e;\n L_0x006c:\n r4 = r3;\n goto L_0x006f;\n L_0x006e:\n r4 = r7;\n L_0x006f:\n r6 = 0;\n if (r4 == 0) goto L_0x0077;\n L_0x0072:\n r2 = r2.mo3385d();\n goto L_0x0078;\n L_0x0077:\n r2 = r6;\n L_0x0078:\n if (r1 == 0) goto L_0x00bc;\n L_0x007a:\n if (r2 != 0) goto L_0x007d;\n L_0x007c:\n r2 = r5;\n L_0x007d:\n r4 = r2.mo3394u();\n if (r4 != 0) goto L_0x00b6;\n L_0x0083:\n r1 = new java.lang.IllegalStateException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Problem trying to create BeanPropertyWriter for property '\";\n r3.<init>(r4);\n r4 = r15.mo1398a();\n r3.append(r4);\n r4 = \"' (of type \";\n r3.append(r4);\n r4 = r0.f4674b;\n r4 = r4.m3615a();\n r3.append(r4);\n r4 = \"); serialization type \";\n r3.append(r4);\n r3.append(r2);\n r2 = \" has no content\";\n r3.append(r2);\n r2 = r3.toString();\n r1.<init>(r2);\n throw r1;\n L_0x00b6:\n r1 = r2.mo3383b(r1);\n r8 = r1;\n goto L_0x00bd;\n L_0x00bc:\n r8 = r2;\n L_0x00bd:\n r1 = r0.f4675c;\n r2 = r15.mo1423y();\n r1 = r1.m3138a(r2);\n r1 = r1.m3139b();\n r2 = com.p111d.p112a.p113a.C1329q.C1327a.USE_DEFAULTS;\n if (r1 != r2) goto L_0x00d1;\n L_0x00cf:\n r1 = com.p111d.p112a.p113a.C1329q.C1327a.ALWAYS;\n L_0x00d1:\n r2 = com.p111d.p112a.p121c.p134k.C1501m.C15001.f4671a;\n r1 = r1.ordinal();\n r1 = r2[r1];\n switch(r1) {\n case 1: goto L_0x00ef;\n case 2: goto L_0x00e5;\n case 3: goto L_0x00df;\n case 4: goto L_0x00dd;\n default: goto L_0x00dc;\n };\n L_0x00dc:\n goto L_0x0127;\n L_0x00dd:\n r7 = r3;\n goto L_0x0127;\n L_0x00df:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x00e1:\n r10 = r1;\n r9 = r3;\n goto L_0x013d;\n L_0x00e5:\n r1 = r16.mo3560a();\n if (r1 == 0) goto L_0x00ec;\n L_0x00eb:\n goto L_0x00df;\n L_0x00ec:\n r9 = r3;\n r10 = r6;\n goto L_0x013d;\n L_0x00ef:\n if (r8 != 0) goto L_0x00f3;\n L_0x00f1:\n r1 = r5;\n goto L_0x00f4;\n L_0x00f3:\n r1 = r8;\n L_0x00f4:\n r2 = r0.f4675c;\n r2 = r2.m3139b();\n r4 = com.p111d.p112a.p113a.C1329q.C1327a.NON_DEFAULT;\n if (r2 != r4) goto L_0x0107;\n L_0x00fe:\n r2 = r15.mo1398a();\n r1 = r0.m3864a(r2, r11, r1);\n goto L_0x010b;\n L_0x0107:\n r1 = com.p111d.p112a.p121c.p134k.C1501m.m3863a(r1);\n L_0x010b:\n if (r1 != 0) goto L_0x010e;\n L_0x010d:\n goto L_0x00e1;\n L_0x010e:\n r2 = r1.getClass();\n r2 = r2.isArray();\n if (r2 == 0) goto L_0x0139;\n L_0x0118:\n r2 = java.lang.reflect.Array.getLength(r1);\n r3 = r1.getClass();\n r4 = new com.d.a.c.m.b$1;\n r4.<init>(r3, r2, r1);\n r10 = r4;\n goto L_0x013c;\n L_0x0127:\n r1 = r16.mo3391n();\n if (r1 == 0) goto L_0x013b;\n L_0x012d:\n r1 = r0.f4673a;\n r2 = com.p111d.p112a.p121c.C5387z.WRITE_EMPTY_JSON_ARRAYS;\n r1 = r1.m18737a(r2);\n if (r1 != 0) goto L_0x013b;\n L_0x0137:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x0139:\n r10 = r1;\n goto L_0x013c;\n L_0x013b:\n r10 = r6;\n L_0x013c:\n r9 = r7;\n L_0x013d:\n r12 = new com.d.a.c.k.d;\n r1 = r0.f4674b;\n r4 = r1.mo1376f();\n r1 = r12;\n r2 = r15;\n r3 = r11;\n r6 = r17;\n r7 = r18;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r0.f4676d;\n r1 = r1.findNullSerializer(r11);\n if (r1 == 0) goto L_0x015f;\n L_0x0157:\n r2 = r14;\n r1 = r2.mo2929c(r1);\n r12.mo3537b(r1);\n L_0x015f:\n r1 = r0.f4676d;\n r1 = r1.findUnwrappingNameTransformer(r11);\n if (r1 == 0) goto L_0x016d;\n L_0x0167:\n r2 = new com.d.a.c.k.a.r;\n r2.<init>(r12, r1);\n r12 = r2;\n L_0x016d:\n return r12;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.k.m.a(com.d.a.c.aa, com.d.a.c.f.n, com.d.a.c.j, com.d.a.c.o, com.d.a.c.i.f, com.d.a.c.i.f, com.d.a.c.f.e, boolean):com.d.a.c.k.d\");\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public MirroredTypesException(List<? extends TypeMirror> paramList) {\n/* 69 */ super(\"Attempt to access Class objects for TypeMirrors \" + (paramList = new ArrayList<>(paramList))\n/* */ \n/* 71 */ .toString());\n/* 72 */ this.types = Collections.unmodifiableList(paramList);\n/* */ }", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public static final C25225ao m39409a(C46865e c46865e, C46865e c46865e2) {\n AppMethodBeat.m2504i(119243);\n C25052j.m39376p(c46865e, \"from\");\n C25052j.m39376p(c46865e2, \"to\");\n Object obj = c46865e.dYq().size() == c46865e2.dYq().size() ? 1 : null;\n if (C44847aa.AUz && obj == null) {\n Throwable assertionError = new AssertionError(c46865e + \" and \" + c46865e2 + \" should have same number of type parameters, but \" + c46865e.dYq().size() + \" / \" + c46865e2.dYq().size() + \" found\");\n AppMethodBeat.m2505o(119243);\n throw assertionError;\n }\n C8238a c8238a = C25225ao.BJQ;\n List dYq = c46865e.dYq();\n C25052j.m39375o(dYq, \"from.declaredTypeParameters\");\n Iterable<C36955ar> iterable = dYq;\n Collection arrayList = new ArrayList(C25034m.m39318d(iterable));\n for (C36955ar dXY : iterable) {\n arrayList.add(dXY.dXY());\n }\n Iterable iterable2 = (List) arrayList;\n dYq = c46865e2.dYq();\n C25052j.m39375o(dYq, \"to.declaredTypeParameters\");\n iterable = dYq;\n Collection arrayList2 = new ArrayList(C25034m.m39318d(iterable));\n for (C36955ar dXY2 : iterable) {\n C25052j.m39375o(dXY2, \"it\");\n C8235ad dZf = dXY2.dZf();\n C25052j.m39375o(dZf, \"it.defaultType\");\n arrayList2.add(C41448a.m72315aM(dZf));\n }\n C25225ao bf = C8238a.m14560bf(C31586ag.m51052v(C25035t.m39325a(iterable2, (Iterable) (List) arrayList2)));\n AppMethodBeat.m2505o(119243);\n return bf;\n }", "@Override\n public void func_104112_b() {\n \n }", "public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}", "protected GEDCOMType() {/* intentionally empty block */}", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "public interface InterpolationMethodBaseType extends CodeType {\r\n}", "private void checkCommon() {\n final AnnotationTypeDeclaration commonAnnoType = (AnnotationTypeDeclaration) _env.getTypeDeclaration(Common.class.getName());\n final Collection<Declaration> decls = _env.getDeclarationsAnnotatedWith(commonAnnoType);\n for (Declaration decl : decls) {\n if (decl instanceof FieldDeclaration) {\n final FieldDeclaration field = (FieldDeclaration) decl;\n final TypeMirror type = field.getType();\n if (type instanceof DeclaredType) {\n final TypeMirror collectionType = _env.getTypeUtils().getDeclaredType(_env.getTypeDeclaration(Collection.class.getName()));\n final Collection<TypeMirror> typeVars = ((DeclaredType) type).getActualTypeArguments();\n if (typeVars.size() == 1) {\n TypeMirror typeVar = typeVars.iterator().next();\n boolean assignable = _env.getTypeUtils().isAssignable(typeVar, collectionType);\n if (assignable)\n _msgr.printError(typeVar + \" is assignable to \" + collectionType);\n else\n _msgr.printError(typeVar + \" is not assignable to \" + collectionType);\n }\n }\n } else if (decl instanceof TypeDeclaration) {\n final TypeDeclaration typeDecl = (TypeDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = typeDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n } else if (decl instanceof MethodDeclaration) {\n final MethodDeclaration methodDecl = (MethodDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = methodDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n }\n }\n }", "public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}", "public abstract void mo70713b();", "@Ignore\n @Test\n public void discoverOneTypes() throws Exception {\n }", "public interface C24717ak {\n}", "interface CodeList149 {\n}", "public lj au() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public abstract void mo42331g();", "public lj ax() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface C32454c<T extends C32454c> {\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$a */\n public static class C32455a {\n /* renamed from: a */\n public static C32454c m105172a() {\n return new C32449b();\n }\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$b */\n public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$c */\n public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$d */\n public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.live.alphaplayer.c$e */\n public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }\n\n /* renamed from: a */\n void mo21067a(Surface surface);\n\n /* renamed from: a */\n void mo83703a(C32456b<T> bVar);\n\n /* renamed from: a */\n void mo83704a(C32457c<T> cVar);\n\n /* renamed from: a */\n void mo83705a(C32458d<T> dVar);\n\n /* renamed from: a */\n void mo83706a(C32459e<T> eVar);\n\n /* renamed from: a */\n void mo21068a(String str) throws IOException;\n\n /* renamed from: a */\n void mo21069a(boolean z);\n\n /* renamed from: b */\n void mo21070b();\n\n /* renamed from: b */\n void mo21071b(boolean z);\n\n /* renamed from: c */\n void mo21072c();\n\n /* renamed from: d */\n void mo21073d();\n\n /* renamed from: e */\n void mo21074e();\n\n /* renamed from: f */\n void mo21075f();\n\n /* renamed from: g */\n void mo21076g();\n\n /* renamed from: h */\n C32446a mo21077h() throws Exception;\n\n /* renamed from: i */\n String mo21078i();\n}", "public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }", "void checkTypesOfInstanceMethodResolvingFunctions() {\r\n \r\n for (int i = 0, nClassInstances = currentModuleTypeInfo.getNClassInstances(); i < nClassInstances; ++i) { \r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i);\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n if (instanceNode == null) {\r\n // This can occur if we are compiling an adjunct to a module that contains instance declarations.\r\n continue;\r\n }\r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNode.getChild(2);\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode classMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n classMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String classMethodName = classMethodNameNode.getText(); \r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(classMethodName); \r\n QualifiedName resolvingFunctionName = classMethodNameNode.nextSibling().toQualifiedName();\r\n \r\n TypeExpr instanceMethodType;\r\n {\r\n TypeExpr classMethodType = classMethod.getTypeExpr();\r\n TypeVar classTypeVar = classMethodType.getTypeClassTypeVar(typeClass.getTypeClassTypeVarName());\r\n classTypeVar.setInstance(classInstance.getType());\r\n instanceMethodType = classMethodType;\r\n }\r\n \r\n TypeExpr resolvingFunctionType = compiler.getTypeChecker().getEntity(resolvingFunctionName).getTypeExpr(); \r\n \r\n if (instanceMethodType.getGenericClassConstrainedPolymorphicVars(null).size() != 0 ||\r\n resolvingFunctionType.getGenericClassConstrainedPolymorphicVars(null).size() != 0) {\r\n //if either the instance method type or the resolving function type involve constrained type vars, then they\r\n //must have identically the same type. For example, for equals in the Eq-List instance, the types of the instance\r\n //method and the resolving instance must both be: Eq a => [a] -> [a] -> Boolean.\r\n if (!instanceMethodType.sameType(resolvingFunctionType)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeSpecific(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n \r\n } \r\n } else {\r\n //we allow extra flexibility here, so that e.g. withing the Eq-Integer instance, we can define fromInteger as id (rather than idInteger).\r\n if (!TypeExpr.canPatternMatch(instanceMethodType, resolvingFunctionType, currentModuleTypeInfo)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeGeneral(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n } \r\n } \r\n } \r\n } \r\n }", "public abstract void mo27385c();", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private PTypeRefSkel() {}", "@Test\n\tpublic void testInternalTypes() {\n\t\tlogger.info(\"Run testInternalTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// OrderByDirectionOutputType\n\t\tfinal IntrospectionFullType orderByDirectionOutputType = getFullType(introspection,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\t\tAssert.assertEquals(2, orderByDirectionOutputType.getEnumValues().size());\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.ASC.toString(), false);\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.DESC.toString(), false);\n\n\t\t// OrderByInputType\n\t\tfinal IntrospectionFullType orderByInputType = getFullType(introspection, getOrderByInputTypeName());\n\t\tAssert.assertEquals(2, orderByInputType.getInputFields().size());\n\t\tassertInputField(orderByInputType, \"field\", IntrospectionTypeKindEnum.NON_NULL,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(orderByInputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// OrderByOutputType\n\t\tfinal IntrospectionFullType orderByOutputType = getFullType(introspection, getOrderByOutputTypeName());\n\t\tAssert.assertEquals(2, orderByOutputType.getFields().size());\n\t\tassertField(orderByOutputType, \"field\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertField(orderByOutputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// PagingInputType\n\t\tfinal IntrospectionFullType pagingInputType = getFullType(introspection, getPagingInputTypeName());\n\t\tAssert.assertEquals(2, pagingInputType.getInputFields().size());\n\t\tassertInputField(pagingInputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(pagingInputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\n\t\t// PagingOutputType\n\t\tfinal IntrospectionFullType pagingOutputType = getFullType(introspection, getPagingOutputTypeName());\n\t\tAssert.assertEquals(3, pagingOutputType.getFields().size());\n\t\tassertField(pagingOutputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"totalLength\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t}", "@Ignore\n @Test\n public void discoverSeveralTypes() throws Exception {\n }", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "public interface C1709a<Data> {\n /* renamed from: a */\n Class<Data> mo12943a();\n\n /* renamed from: a */\n Data mo12944a(String str) throws IllegalArgumentException;\n\n /* renamed from: a */\n void mo12945a(Data data) throws IOException;\n }", "private Infer() {\n\n }", "<S extends C0218dl> S mo283b();", "@Override\n\tpublic void type() {\n\t\t\n\t}", "public static String toLegacyType(String keyword, String value) {\n/* 1300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static void createTypeMap() {\n\n }", "public abstract void mo27464a();", "@Test\n public void testSourceSuperTypeInputCompatibility() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // List<DataType> sourceInputTypes = new ArrayList<DataType>();\n // sourceInputTypes.add(new DataTypeImpl<Type>(Object.class,\n // Object.class));\n // DataType<List<DataType>> inputType = new\n // DataTypeImpl<List<DataType>>(String.class, sourceInputTypes);\n // Operation opSource1 = newOperationImpl(\"op1\", inputType, null, null,\n // false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // List<DataType> targetInputTypes = new ArrayList<DataType>();\n // targetInputTypes.add(new DataTypeImpl<Type>(String.class,\n // String.class));\n // DataType<List<DataType>> targetInputType =\n // new DataTypeImpl<List<DataType>>(String.class, targetInputTypes);\n //\n // Operation opTarget = newOperationImpl(\"op1\", targetInputType, null,\n // null, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }", "private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }", "public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}", "public abstract Object mo1771a();", "private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}", "<T> al<T> mo5674a(C4042k c4042k, C3972a<T> c3972a);", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "public interface Representation // C# has public abstract class\n{\n /// <summary>\n /// Creates a new type object of this representation, and\n /// associates it with the given HOW. Also sets up a new\n /// representation instance if needed.\n /// </summary>\n /// <param name=\"HOW\"></param>\n /// <returns></returns>\n RakudoObject type_object_for(ThreadContext tc, RakudoObject how);\n\n /// <summary>\n /// Creates a new instance based on the type object.\n /// </summary>\n /// <param name=\"WHAT\"></param>\n /// <returns></returns>\n RakudoObject instance_of(ThreadContext tc, RakudoObject what);\n\n /// <summary>\n /// Checks if a given object is defined.\n /// </summary>\n /// <param name=\"Obj\"></param>\n /// <returns></returns>\n boolean defined(ThreadContext tc, RakudoObject obj);\n\n /// <summary>\n /// Gets the current value for an attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Gets the current value for an attribute, obtained using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <returns></returns>\n RakudoObject get_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint);\n\n /// <summary>\n /// Binds the given value to the specified attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);\n\n /// <summary>\n /// Binds the given value to the specified attribute, using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint, RakudoObject Value);\n\n /// <summary>\n /// Gets the hint for the given attribute ID.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n int hint_for(ThreadContext tc, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Used with boxing. Sets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_int(ThreadContext tc, RakudoObject classHandle, int Value);\n\n /// <summary>\n /// Used with boxing. Gets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n int get_int(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_num(ThreadContext tc, RakudoObject classHandle, double Value);\n\n /// <summary>\n /// Used with boxing. Gets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n double get_num(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_str(ThreadContext tc, RakudoObject classHandle, String Value);\n\n /// <summary>\n /// Used with boxing. Gets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n String get_str(ThreadContext tc, RakudoObject classHandle);\n}", "public abstract void mo27386d();", "public abstract void mo42329d();", "Compatibility compatibility();", "public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}", "public interface ATypeCheckNode {}", "@Test\n\tpublic void testTypeExtension() {\n\t}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "@Deprecated // use the generic form only\npublic interface BonaPortableConverter extends DataConverter<BonaPortable,ObjectReference> {\n}", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public interface DataType extends CodeItem {\n}", "public interface BuiltinTypeValidator {\n // -------------------------------------------------------------------------\n // CONSTANTS\n // -------------------------------------------------------------------------\n\n /** validation error string for Bit String failures */\n String BIT_STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the BIT STRING format. The first byte must be within the range 0x00 - 0x07. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for GeneralizedTime failures */\n String GENERALIZEDTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the GeneralizedTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Bit String failures */\n String EMPTY_BYTE_ARRAY_VALIDATION_ERROR =\n \"ASN.1 %s type must contain at least one byte. Supplied array contains 0 bytes\";\n\n /** validation error string for IA5String failures */\n String IA5STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the IA5String format. All bytes must be within the range 0x00 - 0x7f. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Null failures */\n String NULL_VALIDATION_ERROR = \"Null type must be zero length.\";\n\n /** validation error string for NumericString failures */\n String NUMERICSTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the NumericString format. All bytes must be within the range '0' - '9' (0x30 - 0x39). Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Oid failures */\n String OID_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the OID format. The first byte must be with the range 0x00 - 0x7F. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for incomplete Oid */\n String OID_VALIDATION_ERROR_INCOMPLETE =\n \"Supplied bytes do not conform to the OID format. The OID encoding is incomplete: \";\n\n /** validation error string for PrintableString failures */\n String PRINTABLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the PrintableString format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for UTCTime failures */\n String UTCTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the UTCTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for VisibleString failures */\n String VISIBLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the VisibleString format. All bytes must be within the range 0x20 - 0x7e. Supplied bytes contain invalid values: \";\n\n // -------------------------------------------------------------------------\n // CLASS VARIABLES\n // -------------------------------------------------------------------------\n\n /** null instance */\n BuiltinTypeValidator.Null NULL = new BuiltinTypeValidator.Null();\n\n // -------------------------------------------------------------------------\n // PUBLIC METHODS\n // -------------------------------------------------------------------------\n\n /**\n * Validates the supplied tag in the data based on the the kind of ASN.1 Built-in Type\n * represented by this validator\n *\n * @param tag tag to validate\n * @param asnData data to retrieve tag from\n * @return any failures encountered while validating the tag\n */\n ImmutableSet<DecodedTagValidationFailure> validate(String tag, AsantiAsnData asnData);\n\n /**\n * Validates the supplied bytes based on the the kind of ASN.1 Built-in Type represented by this\n * validator\n *\n * @param bytes bytes to validate\n * @return any failures encountered while validating the bytes\n */\n ImmutableSet<ByteValidationFailure> validate(byte[] bytes);\n\n // -------------------------------------------------------------------------\n // INTERNAL CLASS: Null\n // -------------------------------------------------------------------------\n\n /**\n * Null instance of {@link BuiltinTypeDecoder}.\n *\n * <p>The {@code validate} methods will return an empty set.\n *\n * @author brightSPARK Labs\n */\n class Null implements BuiltinTypeValidator {\n // ---------------------------------------------------------------------\n // CONSTRUCTION\n // ---------------------------------------------------------------------\n\n /**\n * Default constructor. This is private, use {@link BuiltinTypeValidator#NULL} to obtain an\n * instance\n */\n private Null() {}\n\n // ---------------------------------------------------------------------\n // IMPLEMENTATION: BuiltinTypeValidator\n // ---------------------------------------------------------------------\n\n @Override\n public ImmutableSet<DecodedTagValidationFailure> validate(\n final String tag, final AsantiAsnData asnData) {\n return ImmutableSet.of();\n }\n\n @Override\n public ImmutableSet<ByteValidationFailure> validate(final byte[] bytes) {\n return ImmutableSet.of();\n }\n }\n}", "public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}", "private void computeSourceClass(JClassType type) {\n if (type == null || alreadyRan.contains(type)) {\n return;\n }\n \n alreadyRan.add(type);\n \n /*\n * IMPORTANT: Visit my supertype first. The implementation of\n * com.google.gwt.lang.Cast.wrapJSO() depends on all superclasses having\n * typeIds that are less than all their subclasses. This allows the same\n * JSO to be wrapped stronger but not weaker.\n */\n computeSourceClass(type.extnds);\n \n if (!program.typeOracle.isInstantiatedType(type)) {\n return;\n }\n \n // Find all possible query types which I can satisfy\n Set/* <JReferenceType> */yesSet = null;\n for (Iterator iter = queriedTypes.keySet().iterator(); iter.hasNext();) {\n JReferenceType qType = (JReferenceType) iter.next();\n Set/* <JReferenceType> */querySet = (Set) queriedTypes.get(qType);\n if (program.typeOracle.canTriviallyCast(type, qType)) {\n for (Iterator it = querySet.iterator(); it.hasNext();) {\n JReferenceType argType = (JReferenceType) it.next();\n if (program.typeOracle.canTriviallyCast(type, argType)) {\n if (yesSet == null) {\n yesSet = new HashSet/* <JReferenceType> */();\n }\n yesSet.add(qType);\n break;\n }\n }\n }\n }\n \n /*\n * Weird: JavaScriptObjects MUST have a typeId, the implementation of\n * Cast.wrapJSO depends on it.\n */\n if (yesSet == null && !program.isJavaScriptObject(type)) {\n return; // won't satisfy anything\n }\n \n // use an array to sort my yes set\n JReferenceType[] yesArray = new JReferenceType[nextQueryId];\n if (yesSet != null) {\n for (Iterator it = yesSet.iterator(); it.hasNext();) {\n JReferenceType yesType = (JReferenceType) it.next();\n Integer boxedInt = (Integer) queryIds.get(yesType);\n yesArray[boxedInt.intValue()] = yesType;\n }\n }\n \n // create a sparse lookup object\n JsonObject jsonObject = new JsonObject(program);\n for (int i = 0; i < nextQueryId; ++i) {\n if (yesArray[i] != null) {\n JIntLiteral labelExpr = program.getLiteralInt(i);\n JIntLiteral valueExpr = program.getLiteralInt(1);\n jsonObject.propInits.add(new JsonPropInit(program, labelExpr,\n valueExpr));\n }\n }\n \n // add an entry for me\n classes.add(type);\n jsonObjects.add(jsonObject);\n }", "public interface C2836e {\n /* renamed from: a */\n InputStream mo1151a();\n\n /* renamed from: b */\n String mo1152b();\n\n /* renamed from: c */\n String[] mo1153c();\n\n /* renamed from: d */\n long mo1154d();\n}", "@Override\n\tpublic MyIDictionary<String, Type> typecheck(MyIDictionary<String, Type> typeEnv) throws MyException {\n\t\treturn null;\n\t}", "void mo83706a(C32459e<T> eVar);", "public interface TypePoll {\n /**\n * ddd\n * @param clazz\n * @param itemViewBinder\n * @param linker\n * @param <T>\n */\n <T> void register(@NonNull Class<? extends T> clazz,\n @NonNull BaseItemViewBinder<?,T> itemViewBinder,\n @NonNull Linker<T> linker);\n\n int indexOf(@NonNull Class<?> clazz);\n\n\n @NonNull\n BaseItemViewBinder getItemBinder(int index);\n\n @NonNull\n BaseItemViewBinder getBinderByClass(@NonNull int index);\n\n\n @NonNull\n Linker<?> getLinker(int index);\n}", "@Test\n\tpublic void couplingWithGenericsAndJavaType() {\n\t\tCKClassResult b = report.get(\"cbo.Coupling6\");\n\t\tAssertions.assertEquals(1, b.getCbo());\n\n\t\tCKClassResult c = report.get(\"cbo.Coupling61\");\n\t\tAssertions.assertEquals(1, c.getCbo());\n\n\t\tCKClassResult d = report.get(\"cbo.Coupling62\");\n\t\tAssertions.assertEquals(2, d.getCbo());\n\n\t\tCKClassResult e = report.get(\"cbo.Coupling63\");\n\t\tAssertions.assertEquals(2, e.getCbo());\n\n\t\tCKClassResult f = report.get(\"cbo.Coupling64\");\n\t\tAssertions.assertEquals(2, f.getCbo());\n\n\t\tCKClassResult g = report.get(\"cbo.Coupling65\");\n\t\tAssertions.assertEquals(2, g.getCbo());\n\n\t}", "public abstract void mo53562a(C18796a c18796a);", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "private void updateFieldsWithUnresolvedTypes(Environment result,\n \t\t\tEnvironment ext, Environment base) throws AstCreatorException {\n \t\t// Path node, token, inode and itoken\n \t\tfor(IInterfaceDefinition def : result.getAllDefinitions())\n \t\t{\n \t\t\tif (def instanceof BaseClassDefinition)\n \t\t\t{\n \t\t\t\tBaseClassDefinition bcdef = (BaseClassDefinition)def;\n \n \t\t\t\tfor(Field f : bcdef.getFields())\n \t\t\t\t{\n \t\t\t\t\tif (f.type == null)\n \t\t\t\t\t{\n \t\t\t\t\t\tIInterfaceDefinition type = base.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type == null) type = ext.lookupByTag(f.getUnresolvedType());\n \t\t\t\t\t\tif (type != null)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tf.type = type;\n \t\t\t\t\t\t\tif (type instanceof ExternalJavaClassDefinition)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tExternalJavaClassDefinition ejcd = (ExternalJavaClassDefinition)type;\n \t\t\t\t\t\t\t\tif (ejcd.getFields() != null && ejcd.getFields().size() > 0 && ejcd.getFields().get(0).isTokenField)\n \t\t\t\t\t\t\t\t\tf.isTokenField = true;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\tthrow new AstCreatorException(\"The extension points to production: \"+f.getUnresolvedType()+\" in alternative \"+def.getName().getName()+\" which does not exists.\",null,true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \t}", "public void mo38117a() {\n }", "public interface C11962p<T> {\n /* renamed from: a */\n void mo30271a(C11961o<T> oVar) throws Exception;\n}", "public void smell() {\n\t\t\n\t}", "Type_use getType_use();", "@Test\n\tpublic void testInvariantsAndTheorems_06_partialTyping() throws Exception {\n\t\tIContextRoot con = createContext(\"ctx\");\n\t\taddCarrierSets(con, \"S1\");\n\t\n\t\tsaveRodinFileOf(con);\n\n\t\tITypeEnvironmentBuilder typeEnvironment = mTypeEnvironment(\"S1=ℙ(S1); V1=S1\",\n\t\t\t\tfactory);\n\t\t\n\t\tIMachineRoot mac = createMachine(\"mac\");\n\t\taddMachineSees(mac, \"ctx\");\n\t\taddVariables(mac, \"V1\");\n\t\taddInvariants(mac, \n\t\t\t\tmakeSList(\"I1\", \"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1=V1\", \"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false, false);\n\t\taddInitialisation(mac, \"V1\");\n\t\n\t\tsaveRodinFileOf(mac);\n\t\t\n\t\trunBuilderCheck(marker(mac.getInvariants()[0], PREDICATE_ATTRIBUTE, 0,\n\t\t\t\t2, TypeUnknownError));\n\t\t\n\t\tISCMachineRoot file = mac.getSCMachineRoot();\n\t\t\n\t\tcontainsInvariants(file, typeEnvironment, \n\t\t\t\tmakeSList(\"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false);\n\t}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "protected void addPoint(int k, int i)\n/* */ {\n/* 34 */ throw new Error(\"Unresolved compilation problems: \\n\\tPairEmissionState cannot be resolved to a type\\n\\tPairEmissionState cannot be resolved to a type\\n\\tstates cannot be resolved\\n\\tPhasedIntegerGenotypeData cannot be resolved to a type\\n\\tdata cannot be resolved\\n\");\n/* */ }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C0747b extends C0736b, C0738d, C0739e<Object> {\n }", "public void testTypeASTMapper() {\n MyTAST tast = MyTAST.parameterization(0,\n MyTAST.arrayOf(1,\n MyTAST.arrayOf(2,\n MyTAST.parameterization(3,\n new MyTAST(4)\n )\n )\n ),\n MyTAST.parameterization(5,\n new MyTAST(6),\n MyTAST.arrayOf(7,\n new MyTAST(8)),\n new MyTAST(9),\n new MyTAST(10)\n )\n );\n\n // Pretend myField represents a field of the type represented by tast\n // We have to do this because clients are no longer allowed to create\n // AElements directly; instead, they must vivify.\n ATypeElement<SimpleAnnotation> myAField =\n new AScene<SimpleAnnotation>(SimpleAnnotationFactory.saf)\n .classes.vivify(\"someclass\").fields.vivify(\"somefield\");\n // load it with annotations we can check against IDs\n myAField.tlAnnotationsHere.add(makeTLIdAnno(0));\n assignId(myAField, 1, 0, 0);\n assignId(myAField, 2, 0, 1);\n assignId(myAField, 3, 0);\n assignId(myAField, 4, 0, 0, 0);\n assignId(myAField, 5, 1);\n assignId(myAField, 6, 1, 0);\n assignId(myAField, 7, 1, 1, 0);\n assignId(myAField, 8, 1, 1);\n assignId(myAField, 9, 1, 2);\n // to test vivification, we don't assign 10\n \n // now visit and make sure the ID numbers match up\n MyTASTMapper mapper = new MyTASTMapper();\n mapper.traverse(tast, myAField);\n \n for (int i = 0; i < 11; i++)\n assertTrue(mapper.saw[i]);\n // make sure it vivified #10 and our annotation stuck\n AElement<SimpleAnnotation> e10 = myAField.innerTypes.get(\n new InnerTypeLocation(Arrays.asList(1, 3)));\n assertNotNull(e10);\n int e10aid = (Integer) e10.lookupAnnotation(\"IdAnno\")\n .getFieldValue(\"id\");\n assertEquals(e10aid, 10);\n }", "public abstract C7982k4<E> m39518y();", "@Test\n\tpublic void testInternalEntityRelatedTypes() {\n\t\tlogger.info(\"Run testInternalEntityRelatedTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// Entity1InputType\n\t\tfinal IntrospectionFullType entity1InputType = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(27, entity1InputType.getInputFields().size());\n\n\t\tassertInputField(entity1InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"intAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(entity1InputType, \"longAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t\tassertInputField(entity1InputType, \"doubleAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLFloat.getName());\n\t\tassertInputField(entity1InputType, \"stringAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"booleanAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBoolean.getName());\n\t\tassertInputField(entity1InputType, \"bigIntAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigInteger.getName());\n\t\tassertInputField(entity1InputType, \"bigDecimalAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigDecimal.getName());\n\t\tassertInputField(entity1InputType, \"bytesAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLByte.getName());\n\t\tassertInputField(entity1InputType, \"shortAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLShort.getName());\n\t\tassertInputField(entity1InputType, \"charAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLChar.getName());\n\t\tassertInputField(entity1InputType, \"dateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLDate.getName());\n\t\tassertInputField(entity1InputType, \"fileAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLFile.getName());\n\t\tassertInputField(entity1InputType, \"localDateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDate.getName());\n\t\tassertInputField(entity1InputType, \"localDateTimeAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDateTime.getName());\n\t\tassertInputField(entity1InputType, \"instantAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLInstant.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"enumAttr\", IntrospectionTypeKindEnum.ENUM, Enum1.class.getSimpleName());\n\n\t\tassertInputField(entity1InputType, \"enumList\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\t\tassertInputField(entity1InputType, \"enumSet\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\n\t\tassertInputField(entity1InputType, \"entity2\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity3\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity4\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\tassertInputField(entity1InputType, \"embeddedData1\", IntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tassertInputField(entity1InputType, \"embeddedData1s\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\n\t\t// Entity1LoadResult\n\t\tfinal IntrospectionFullType entity1LoadResult = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity1LoadResult.getFields().size());\n\n\t\tassertField(entity1LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName());\n\t\tassertField(entity1LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity1LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity2InputType\n\t\tfinal IntrospectionFullType entity2InputType = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity2InputType.getInputFields().size());\n\n\t\tassertInputField(entity2InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity2InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity2LoadResult\n\t\tfinal IntrospectionFullType entity2LoadResult = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity2LoadResult.getFields().size());\n\n\t\tassertField(entity2LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity2.class.getSimpleName());\n\t\tassertField(entity2LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity2LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity3InputType\n\t\tfinal IntrospectionFullType entity3InputType = getFullType(introspection,\n\t\t\t\tEntity3.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity3InputType.getInputFields().size());\n\n\t\tassertInputField(entity3InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity3InputType, \"entity1\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity4InputType\n\t\tfinal IntrospectionFullType entity4InputType = getFullType(introspection,\n\t\t\t\tEntity4.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity4InputType.getInputFields().size());\n\n\t\tassertInputField(entity4InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity4InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t}", "public interface C22932f {\n /* renamed from: a */\n void mo59932a(String str, JSONObject jSONObject);\n}", "public abstract void mo70702a(C30989b c30989b);", "protected abstract void registerSuperTypes();", "public void test642_smartLifting2() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl2Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl2_1 t = new Team642sl2_2();\\n\" +\n\t\t\t \" T642sl2_2 o = new T642sl2_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_4 extends Team642sl2_3 {\\n\" +\n\t\t\t \" public class Role642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_4.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_1 extends T642sl2_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl2_2 extends Role642sl2_1 playedBy T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl2_3 extends Role642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl2_2 as Role642sl2_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_4 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_2 extends Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl2_4 extends Role642sl2_3 playedBy T642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_5 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_3 extends Team642sl2_2 {\\n\" +\n\t\t\t \" public class Role642sl2_5 extends Role642sl2_3 playedBy T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_3.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_6 extends T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl2_2 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_3 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl2_2.Role642sl2_4\");\n }", "public interface C20288m {\n /* renamed from: a */\n int mo54403a(String str, String str2);\n\n /* renamed from: a */\n List<DownloadInfo> mo54404a(String str);\n\n /* renamed from: a */\n void mo54405a();\n\n /* renamed from: a */\n void mo54406a(int i);\n\n /* renamed from: a */\n void mo54407a(int i, int i2);\n\n /* renamed from: a */\n void mo54408a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo54409a(int i, int i2, int i3, long j);\n\n /* renamed from: a */\n void mo54410a(int i, int i2, long j);\n\n /* renamed from: a */\n void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: a */\n void mo54412a(int i, Notification notification);\n\n /* renamed from: a */\n void mo54413a(int i, C20254v vVar);\n\n /* renamed from: a */\n void mo54414a(int i, List<DownloadChunk> list);\n\n /* renamed from: a */\n void mo54415a(int i, boolean z);\n\n /* renamed from: a */\n void mo54416a(C20211ac acVar);\n\n /* renamed from: a */\n void mo54417a(DownloadChunk downloadChunk);\n\n /* renamed from: a */\n void mo54418a(DownloadTask downloadTask);\n\n /* renamed from: a */\n void mo54419a(List<String> list);\n\n /* renamed from: a */\n void mo54420a(boolean z, boolean z2);\n\n /* renamed from: a */\n boolean mo54421a(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n DownloadInfo mo54422b(String str, String str2);\n\n /* renamed from: b */\n List<DownloadInfo> mo54423b(String str);\n\n /* renamed from: b */\n void mo54424b(int i);\n\n /* renamed from: b */\n void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: b */\n void mo54426b(int i, List<DownloadChunk> list);\n\n /* renamed from: b */\n void mo54427b(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n void mo54428b(DownloadTask downloadTask);\n\n /* renamed from: b */\n boolean mo54429b();\n\n /* renamed from: c */\n List<DownloadInfo> mo54430c(String str);\n\n /* renamed from: c */\n boolean mo54431c();\n\n /* renamed from: c */\n boolean mo54432c(int i);\n\n /* renamed from: c */\n boolean mo54433c(DownloadInfo downloadInfo);\n\n /* renamed from: d */\n List<DownloadInfo> mo54434d(String str);\n\n /* renamed from: d */\n void mo54435d();\n\n /* renamed from: d */\n void mo54436d(int i);\n\n /* renamed from: e */\n void mo54437e(int i);\n\n /* renamed from: e */\n boolean mo54438e();\n\n /* renamed from: f */\n long mo54439f(int i);\n\n /* renamed from: f */\n void mo54440f();\n\n /* renamed from: g */\n int mo54441g(int i);\n\n /* renamed from: g */\n boolean mo54442g();\n\n /* renamed from: h */\n boolean mo54443h(int i);\n\n /* renamed from: i */\n DownloadInfo mo54444i(int i);\n\n /* renamed from: j */\n List<DownloadChunk> mo54445j(int i);\n\n /* renamed from: k */\n void mo54446k(int i);\n\n /* renamed from: l */\n void mo54447l(int i);\n\n /* renamed from: m */\n void mo54448m(int i);\n\n /* renamed from: n */\n boolean mo54449n(int i);\n\n /* renamed from: o */\n int mo54450o(int i);\n\n /* renamed from: p */\n boolean mo54451p(int i);\n\n /* renamed from: q */\n void mo54452q(int i);\n\n /* renamed from: r */\n boolean mo54453r(int i);\n\n /* renamed from: s */\n C20254v mo54454s(int i);\n\n /* renamed from: t */\n C20259y mo54455t(int i);\n\n /* renamed from: u */\n C20241o mo54456u(int i);\n}", "@Test\r\n public void testImportRedundancy() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.util.*\");\r\n Type t1 = typeParser.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n }", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "public abstract T mo36028b(Context context);", "public interface C26438t {\n /* renamed from: b */\n void mo5959b(boolean z, String str, Bundle bundle);\n}" ]
[ "0.56588846", "0.55258065", "0.53858924", "0.5374074", "0.5369886", "0.5353934", "0.5351341", "0.53429043", "0.5334839", "0.53212607", "0.530215", "0.5301301", "0.52903706", "0.52903706", "0.52903706", "0.5283512", "0.52777886", "0.5273244", "0.52068704", "0.5206165", "0.5193794", "0.51877815", "0.51770127", "0.51723695", "0.51610154", "0.515475", "0.5147618", "0.5141876", "0.51347923", "0.5129954", "0.5124015", "0.51239944", "0.51174325", "0.5104626", "0.50985885", "0.50955653", "0.5087753", "0.5087565", "0.5079433", "0.5078915", "0.5074575", "0.5072011", "0.50702196", "0.5069321", "0.50672996", "0.5066472", "0.50647366", "0.5063861", "0.50631326", "0.5061134", "0.5056911", "0.5055708", "0.5052675", "0.50488853", "0.5044489", "0.5044206", "0.50370616", "0.5036741", "0.5036532", "0.50232184", "0.50208384", "0.5016057", "0.50150365", "0.50142306", "0.5011434", "0.5010156", "0.5005392", "0.5004499", "0.50043017", "0.499017", "0.4989181", "0.49891752", "0.49808475", "0.49799126", "0.497798", "0.49721432", "0.49715728", "0.49656802", "0.4965144", "0.49596104", "0.49596024", "0.49595094", "0.49576166", "0.49574065", "0.49550754", "0.49549097", "0.4951472", "0.49474615", "0.49456787", "0.4943005", "0.4941922", "0.49400875", "0.49389032", "0.49321872", "0.4928525", "0.49270922", "0.49220252", "0.49183616", "0.49180764", "0.49170727", "0.49160677" ]
0.0
-1
Strategy that defines a directed interaction between two balls where the balls are NOT equivalently processed.
public interface IInteractStrategy { /** * Performs a directed interaction between the context ball and the target Ball from the perspective of the context Ball. * @param context The Ball from whose perspective the interaction processing takes place. * @param target The Ball that is the "other ball" in the perspective of this processing. * @param disp The Dispatcher that is to be used if desired. * @param interactFirst A boolean denoting whether this is the first in a series (usually two) of interactions. */ public void interact(Ball context, Ball target, IDispatcher<IBallCmd> disp, Boolean interactFirst); /** * Null strategy with no-op behavior. * NOTE: We can use a lambda here instead of an anonymous inner class because IInteractStrategy is a functional interface (only has one * abstract method). */ public static final IInteractStrategy NULL = (context, target, disp, isSource) -> {}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeBallsCollide(Ball ball1, Ball ball2) {\n Vect pos1 = new Vect(ball1.getPosition().d1, ball1.getPosition().d2);\n Vect pos2 = new Vect(ball2.getPosition().d1, ball2.getPosition().d2);\n Geometry.VectPair newVels = Geometry.reflectBalls(pos1, this.BALLMASS,\n ball1.getVelocity(), pos2, this.BALLMASS, ball2.getVelocity());\n ball1.setVelocity(newVels.v1);\n ball2.setVelocity(newVels.v2);\n }", "private void awayFromColliderAncestorCycle(Graph graph) {\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n// awayFromCollider(graph, A, B, C);\n// awayFromCollider(graph, C, B, A);\n// awayFromAncestor(graph, A, B, C);\n// awayFromAncestor(graph, C, B, A);\n// awayFromCycle(graph, A, B, C);\n// awayFromCycle(graph, C, B, A);\n ruleR1(A, B, C, graph);\n ruleR1(C, B, A, graph);\n ruleR2(A, B, C, graph);\n ruleR2(C, B, A, graph);\n\n }\n }\n }", "private void awayFromCollider(Graph graph, Node a, Node b, Node c) {\n Endpoint BC = graph.getEndpoint(b, c);\n Endpoint CB = graph.getEndpoint(c, b);\n\n if (!(graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, b) == Endpoint.ARROW)) {\n if (CB == Endpoint.CIRCLE || CB == Endpoint.TAIL) {\n if (BC == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, b, c)) {\n return;\n }\n\n graph.setEndpoint(b, c, Endpoint.ARROW);\n changeFlag = true;\n }\n }\n\n if (BC == Endpoint.CIRCLE || BC == Endpoint.ARROW) {\n if (CB == Endpoint.CIRCLE) {\n graph.setEndpoint(c, b, Endpoint.TAIL);\n changeFlag = true;\n }\n }\n }\n }", "private void awayFromCycle(Graph graph, Node a, Node b, Node c) {\n if ((graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, c) == Endpoint.ARROW) &&\n (graph.getEndpoint(c, a) == Endpoint.CIRCLE)) {\n if (graph.isDirectedFromTo(a, b) && graph.isDirectedFromTo(b, c)) {\n graph.setEndpoint(c, a, Endpoint.TAIL);\n changeFlag = true;\n }\n }\n }", "public abstract void disconnectInDirection(N n1, N n2);", "abstract public void performCollision(Ball ball);", "private void moveWithoutCollision(Ball ball, double timeDelta) {\n DoublePair priorPos = ball.getPosition();\n Vect vel = ball.getVelocity();\n double newX = priorPos.d1 + vel.x() * timeDelta;\n double newY = priorPos.d2 + vel.y() * timeDelta;\n ball.setPosition(new DoublePair(newX, newY));\n ball.setTime(ball.getTime() - timeDelta);\n }", "protected abstract BallJoint newBallJointImpl( Body body1, Body body2 );", "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public static void moveBalls() {\n\t\tfor (Ball b : Panel.balls) {\n\t\t\tif (b.getxPOS() + b.getxVelocity() < 410 || b.getxPOS() + b.getxVelocity() > (1200 - (b.getMass() * 7))) { //checking next frame for boundry collision\n\t\t\t\tb.setxVelocity(-b.getxVelocity());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reverseing velocity if true\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() < 0) {\n\t\t\t\tb.setyVelocity(-(b.getyVelocity()));\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22) { //on each collision with the floor, decrease the balls X and Y velocity\n\t\t\t\tb.setyVelocity(-(b.getyVelocity() - energyLost));\n\t\t\t\tif (Panel.tick % 7 == 0 && Panel.Gravity) {\n\t\t\t\t\tif (b.getxVelocity() < 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (b.getxVelocity() > 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22)) { //applying motion in the Y direction only if the ball is not resting on the floor\n\t\t\t\tb.setyPOS(b.getyPOS() + b.getyVelocity());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tb.setyPOS((800 - (b.getMass() * 7)) - 22);\n\t\t\t}\n\t\t\t\n\t\t\tb.setxPOS(b.getxPOS() + b.getxVelocity()); //motion is always applied in the X direction\n\t\t}\n\t}", "public boolean isDirected();", "public boolean isDirected();", "public void replaceBall(Ball a, Ball b) {\n \t\tif (!a.isJointWith(b)) { // a haengt nicht an b\n \t\t\tfor (Ball jb : b.jointBalls()) { // alle anhaenger an b\n \t\t\t\tif (!a.isJointWith(jb)) { // anhaenger haengt nicht bereits an a\n \t\t\t\t\tjoints.add(join(a, jb));\n \t\t\t\t}\n \t\t\t}\n \t\t\tremoveBall(b);\n \t\t\tactive = null;\n \t\t}\n \t}", "private boolean isBallCollideCelling(GOval ball) {\n return ball.getY() <= 0;\n }", "public static void checkCollisions() {\n\t \n\t\tfor (Ball b1 : Panel.balls) {\n\t\t\tfor (Ball b2 : Panel.balls) {\n\t\t\t\tif (b1.Bounds().intersects(b2.Bounds()) && !b1.equals(b2)) {\t\t\t//checking for collision and no equals comparisions\n\t\t\t\t\tint vX = b1.getxVelocity();\n\t\t\t\t\tint vY = b1.getyVelocity();\n\t\t\t\t\tb1.setxVelocity(b2.getxVelocity());\t\t\t\t\t\t\t\t//reversing velocities of each Ball object\n\t\t\t\t\tb1.setyVelocity(b2.getyVelocity());\n\t\t\t\t\tb2.setxVelocity(vX);\n\t\t\t\t\tb2.setyVelocity(vY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void awayFromAncestorCycle(Graph graph) {\n while (changeFlag) {\n changeFlag = false;\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n awayFromAncestor(graph, A, B, C);\n awayFromAncestor(graph, C, B, A);\n awayFromCycle(graph, A, B, C);\n awayFromCycle(graph, C, B, A);\n }\n }\n }\n changeFlag = true;\n }", "protected boolean canUseOtherDirection() {\n return false;\n }", "@Override\n public void collision(Ball ball) {\n if (!(this.collideLine.size() == 0)){\n ball.setVelocity(Geometry.reflectWall(this.collideLine.get(0), ball.getVelocity()));\n //if ball collides with corner, reflect off circle\n }else if (!(this.collideCirc.size() == 0)){\n ball.setVelocity(Geometry.reflectCircle(this.collideCirc.get(0).getCenter(), ball.getPosition(), ball.getVelocity()));\n }\n\n this.trigger();\n\n }", "private void preventMovementInOppositeDirection() {\n\t\tif(currentDirection == Direction.RIGHT && \n\t\t\t\tsnakeDirection == Direction.LEFT) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.LEFT;\n\t\t} else if(currentDirection == Direction.LEFT && \n\t\t\t\tsnakeDirection == Direction.RIGHT) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.RIGHT;\n\t\t} else if(currentDirection == Direction.DOWN && \n\t\t\t\tsnakeDirection == Direction.UP) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.UP;\n\t\t} else if(currentDirection == Direction.UP && \n\t\t\t\tsnakeDirection == Direction.DOWN) {\n\t\t\t\n\t\t\tcurrentDirection = Direction.DOWN;\n\t\t}\n\t}", "public void logicalToBoltGraph() {\n\t\tDefaultDirectedGraph<FStream, IndexedEdge<FStream>> G = (DefaultDirectedGraph<FStream, IndexedEdge<FStream>>) _graph.clone();\n\t\tint bolt_counter = 0;\n\n\t\tremoveMerges(G);\n\t\t\n\t\tArrayDeque<FStream> stack = new ArrayDeque<FStream>();\n\t\t\t\t\n\t\t// Look for the actual spouts in the graph.\n\t\tfor (FStream n : G.vertexSet()) {\n\t\t\tif (n.getType() == FStream.NodeType.SPOUT) {\n\t\t\t\tstack.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// State for building the topology.\n\t\tboltMap = new HashMap<FStream, FlexyBolt>();\n\t\t// The edges link specific internal nodes between the bolts -- yes, it hurts my head too.\n\t\tboltG =\tnew DefaultDirectedGraph<FlexyBolt, IndexedEdge<FStream>>(new ErrorEdgeFactory());\n\t\tint edge_counter = 0;\n\n\t\t// Track through the stack and build up subgraphs.\n\t\twhile (stack.size() > 0) {\n\t\t\tFStream n = stack.pollFirst();\n\t\t\t\n\t\t\tFlexyBolt b = null;\n\t\t\tswitch (n.getType()) {\n\t\t\tcase SPOUT:\n\t\t\t\t// Create a bolt and link it into the map.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\tbreak;\n\t\t\tcase FUNCTION: \n\t\t\tcase PROJECTION:\n\t\t\t\t// Pull the previous node.\n\t\t\t\tFStream prev_n = \n\t\t\t\t\t\t(new ArrayList<IndexedEdge<FStream>>(G.incomingEdgesOf(n)))\n\t\t\t\t\t\t\t\t.get(0).source; // Yuck.\n\t\t\t\t\n\t\t\t\t// Pull the bolt.\n\t\t\t\tb = boltMap.get(prev_n);\n\t\t\t\t// Link this node into the bolt.\n\t\t\t\tb.link(prev_n, n);\n\t\t\t\tbreak;\n\t\t\tcase SHUFFLE:\n\t\t\t\t// Create a bolt and link it into the map.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\t\n\t\t\t\t// Add edges for all previous nodes\n\t\t\t\tfor (IndexedEdge<FStream> edge : G.incomingEdgesOf(n)) {\n\t\t\t\t\tFlexyBolt prev_b = boltMap.get(edge.source);\n\t\t\t\t\tprev_b.expose(edge.source);\n\t\t\t\t\t\n\t\t\t\t\tedge_counter += 1;\n\t\t\t\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(edge.source, n, edge_counter);\n\t\t\t\t\t\n\t\t\t\t\tboltG.addEdge(prev_b, b, e);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GROUPBY:\n\t\t\t\t// Create a new bolt for the Stage1/Store portion.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\t\n\t\t\t\t// Link it to the preceding bolts.\n\t\t\t\tfor (IndexedEdge<FStream> edge : G.incomingEdgesOf(n)) {\n\t\t\t\t\tFlexyBolt prev_b = boltMap.get(edge.source);\n\n\t\t\t\t\t// Link this node into the bolt for Stage0 Aggregation.\n\t\t\t\t\tFStream s0_agg = n.copy();\n\t\t\t\t\ts0_agg.setStage0Agg(true);\n\t\t\t\t\tprev_b.link(edge.source, s0_agg);\n\t\t\t\t\tprev_b.expose(s0_agg);\n\t\t\t\t\tboltMap.put(s0_agg, prev_b);\n\t\t\t\t\t\n\t\t\t\t\tedge_counter += 1;\n\t\t\t\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(s0_agg, n, edge_counter);\n\t\t\t\t\t\n\t\t\t\t\tboltG.addEdge(prev_b, b, e);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Unexpected node type: \" + n + \" \" + n.getType());\n\t\t\t}\n\t\t\t\n\t\t\t// Map the bolt.\n\t\t\tboltMap.put(n, b);\n\t\t\t\n\t\t\t// For all the adjacent nodes, add them to the stack.\n\t\t\tfor (IndexedEdge<FStream> edge : G.outgoingEdgesOf(n)) {\n\t\t\t\tif (!boltMap.containsKey(edge.target)) {\n\t\t\t\t\tstack.addLast(edge.target);\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "boolean isDirected();", "private void update() {\r\n\t\t// Get new (x,y) position\r\n\r\n ballX1 += ballSpeedX1;\r\n ballY1 += ballSpeedY1;\r\n\r\n\t\tballX2 += ballSpeedX2;\r\n\t\tballY2 += ballSpeedY2;\r\n\r\n ballX3 += ballSpeedX3;\r\n ballY3 += ballSpeedY3;\r\n\r\n ballX4 += ballSpeedX4;\r\n ballY4 += ballSpeedY4;\r\n\r\n ballX5 += ballSpeedX5;\r\n ballY5 += ballSpeedY5;\r\n\r\n ballX6 += ballSpeedX6;\r\n ballY6 += ballSpeedY6;\r\n\r\n\t\r\n\t\t// left = ballX - ballRadius\r\n\t\t// top = ballY - ballRadius\r\n\t\t// right = ballX + ballRadius\r\n\t\t// bottom = ballY + ballRadius\r\n\r\n // 1st ball\r\n // Detect collision and react\r\n if (ballX1 + ballRadius > xMax) {\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballX1 = xMax - ballRadius;\r\n } else if (ballX1 - ballRadius < xMin) {\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballX1 = xMin + ballRadius;\r\n }\r\n if (ballY1 + ballRadius > yMax) {\r\n ballSpeedY1 = -ballSpeedY1;\r\n ballY1 = yMax - ballRadius;\r\n } else if (ballY1 - ballRadius < yMin) {\r\n ballSpeedY1 = -ballSpeedY1;\r\n ballY1 = yMin + ballRadius;\r\n }\r\n\r\n\t\t// 2nd ball\r\n\t\t// Detect collision and react\r\n\t\tif (ballX2 + ballRadius > xMax) {\r\n\t\t\tballSpeedX2 = -ballSpeedX2;\r\n\t\t\tballX2 = xMax - ballRadius;\r\n\t\t} else if (ballX2 - ballRadius < xMin) {\r\n\t\t\tballSpeedX2 = -ballSpeedX2;\r\n\t\t\tballX2 = xMin + ballRadius;\r\n\t\t}\r\n\t\tif (ballY2 + ballRadius > yMax) {\r\n\t\t\tballSpeedY2 = -ballSpeedY2;\r\n\t\t\tballY2 = yMax - ballRadius;\r\n\t\t} else if (ballY2 - ballRadius < yMin) {\r\n\t\t\tballSpeedY2 = -ballSpeedY2;\r\n\t\t\tballY2 = yMin + ballRadius;\r\n\t\t}\r\n\r\n // 3rd ball\r\n // Detect collision and react\r\n if (ballX3 + ballRadius > xMax) {\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballX3 = xMax - ballRadius;\r\n } else if (ballX3 - ballRadius < xMin) {\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballX3 = xMin + ballRadius;\r\n }\r\n if (ballY3 + ballRadius > yMax) {\r\n ballSpeedY3 = -ballSpeedY3;\r\n ballY3 = yMax - ballRadius;\r\n } else if (ballY3 - ballRadius < yMin) {\r\n ballSpeedY3 = -ballSpeedY3;\r\n ballY3 = yMin + ballRadius;\r\n }\r\n\r\n //4th ball\r\n if (ballX4 + ballRadius > xMax) {\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballX4 = xMax - ballRadius;\r\n } else if (ballX4 - ballRadius < xMin) {\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballX4 = xMin + ballRadius;\r\n }\r\n if (ballY4 + ballRadius > yMax) {\r\n ballSpeedY4 = -ballSpeedY4;\r\n ballY4 = yMax - ballRadius;\r\n } else if (ballY4 - ballRadius < yMin) {\r\n ballSpeedY4 = -ballSpeedY4;\r\n ballY4 = yMin + ballRadius;\r\n }\r\n\r\n //5th ball\r\n if (ballX5 + ballRadius > xMax) {\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballX5 = xMax - ballRadius;\r\n } else if (ballX5 - ballRadius < xMin) {\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballX5 = xMin + ballRadius;\r\n }\r\n if (ballY5 + ballRadius > yMax) {\r\n ballSpeedY5 = -ballSpeedY5;\r\n ballY5 = yMax - ballRadius;\r\n } else if (ballY5 - ballRadius < yMin) {\r\n ballSpeedY5 = -ballSpeedY5;\r\n ballY5 = yMin + ballRadius;\r\n }\r\n\r\n //6th ball\r\n if (ballX6 + ballRadius > xMax) {\r\n ballSpeedX6 = -ballSpeedX6;\r\n ballX6 = xMax - ballRadius;\r\n } else if (ballX6 - ballRadius < xMin) {\r\n ballSpeedX6 = -ballSpeedX6;\r\n ballX6 = xMin + ballRadius;\r\n }\r\n if (ballY6 + ballRadius > yMax) {\r\n ballSpeedY6 = -ballSpeedY6;\r\n ballY6 = yMax - ballRadius;\r\n } else if (ballY6 - ballRadius < yMin) {\r\n ballSpeedY6 = -ballSpeedY6;\r\n ballY6 = yMin + ballRadius;\r\n }\r\n\r\n float dy12 = ballY1 - ballY2;\r\n float dx12 = ballX1 - ballX2;\r\n float distance12 = dy12 * dy12 + dx12 * dx12;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX2 = -ballSpeedX2;\r\n }\r\n float dy13 = ballY1 - ballY3;\r\n float dx13 = ballX1 - ballX3;\r\n float distance13 = dy13 * dy13 + dx13 * dx13;\r\n\r\n if (distance13 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX3 = -ballSpeedX3;\r\n }\r\n\r\n float dy14 = ballY1 - ballY4;\r\n float dx14 = ballX1 - ballX4;\r\n float distance14 = dy14 * dy14 + dx14 * dx14;\r\n\r\n if (distance14 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy15 = ballY1 - ballY5;\r\n float dx15 = ballX1 - ballX5;\r\n float distance15 = dy15 * dy15 + dx15 * dx15;\r\n\r\n if (distance15 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy16 = ballY1 - ballY6;\r\n float dx16 = ballX1 - ballX6;\r\n float distance16 = dy16 * dy16 + dx16 * dx16;\r\n\r\n if (distance16 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy23 = ballY2 - ballY3;\r\n float dx23 = ballX2 - ballX3;\r\n float distance23 = dy23 * dy23 + dx23 * dx23;\r\n\r\n if (distance23 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX3 = -ballSpeedX3;\r\n }\r\n\r\n float dy24 = ballY2 - ballY4;\r\n float dx24 = ballX2 - ballX4;\r\n float distance24 = dy24 * dy24 + dx24 * dx24;\r\n\r\n if (distance24 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy25 = ballY2 - ballY5;\r\n float dx25 = ballX2 - ballX5;\r\n float distance25 = dy25 * dy25 + dx25 * dx25;\r\n\r\n if (distance25 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy26 = ballY2 - ballY6;\r\n float dx26 = ballX2 - ballX6;\r\n float distance26 = dy26 * dy26 + dx26 * dx26;\r\n\r\n if (distance26 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy34 = ballY3 - ballY4;\r\n float dx34 = ballX3 - ballX4;\r\n float distance34 = dy34 * dy34 + dx34 * dx34;\r\n\r\n if (distance34 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy35 = ballY3 - ballY5;\r\n float dx35 = ballX3 - ballX5;\r\n float distance35 = dy35 * dy35 + dx35 * dx35;\r\n\r\n if (distance35 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy36 = ballY3 - ballY6;\r\n float dx36 = ballX3 - ballX6;\r\n float distance36 = dy36 * dy36 + dx36 * dx36;\r\n\r\n if (distance36 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n\r\n float dy45 = ballY4 - ballY5;\r\n float dx45 = ballX4 - ballX5;\r\n float distance45 = dy45 * dy45 + dx45 * dx45;\r\n\r\n if (distance45 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy46 = ballY4 - ballY6;\r\n float dx46 = ballX4 - ballX6;\r\n float distance46 = dy46 * dy46 + dx46 * dx46;\r\n\r\n if (distance46 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy56 = ballY5 - ballY6;\r\n float dx56 = ballX5 - ballX6;\r\n float distance56 = dy56 * dy56 + dx56 * dx56;\r\n\r\n if (distance56 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n\r\n\r\n collision(playerX, playerY,ballX1,ballY1);\r\n collision(playerX, playerY,ballX2,ballY2);\r\n collision(playerX, playerY,ballX3,ballY3);\r\n collision(playerX, playerY,ballX4,ballY4);\r\n collision(playerX, playerY,ballX5,ballY5);\r\n collision(playerX, playerY,ballX6,ballY6);\r\n\r\n\t}", "protected void moveAllBendpoints(IMoveShapeContext context) {\n \n \t\tif (!(context.getShape() instanceof ContainerShape)) {\n \t\t\treturn;\n \t\t}\n \n \t\tContainerShape shapeToMove = (ContainerShape) context.getShape();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t\tint deltaX = x - shapeToMove.getGraphicsAlgorithm().getX();\n \t\tint deltaY = y - shapeToMove.getGraphicsAlgorithm().getY();\n \n \t\tif (deltaX != 0 || deltaY != 0) {\n \n \t\t\tList<Anchor> anchorsFrom = getAnchors(shapeToMove);\n \t\t\tList<Anchor> anchorsTo = new ArrayList<Anchor>(anchorsFrom);\n \n \t\t\tfor (Anchor anchorFrom : anchorsFrom) {\n \n \t\t\t\tCollection<Connection> outgoingConnections = anchorFrom.getOutgoingConnections();\n \n \t\t\t\tfor (Connection connection : outgoingConnections) {\n \t\t\t\t\tfor (Anchor anchorTo : anchorsTo) {\n \n \t\t\t\t\t\tCollection<Connection> incomingConnections = anchorTo.getIncomingConnections();\n \t\t\t\t\t\tif (incomingConnections.contains(connection)) {\n \t\t\t\t\t\t\tif (connection instanceof FreeFormConnection) {\n \t\t\t\t\t\t\t\tFreeFormConnection ffc = (FreeFormConnection) connection;\n \t\t\t\t\t\t\t\tList<Point> points = ffc.getBendpoints();\n \t\t\t\t\t\t\t\tfor (int i = 0; i < points.size(); i++) {\n \t\t\t\t\t\t\t\t\tPoint point = points.get(i);\n \t\t\t\t\t\t\t\t\tint oldX = point.getX();\n \t\t\t\t\t\t\t\t\tint oldY = point.getY();\n \t\t\t\t\t\t\t\t\tpoints.set(i, Graphiti.getGaService().createPoint(oldX + deltaX, oldY + deltaY));\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void moveNonEdgeSpecificState(ISolverNode other);", "private static void optimizeAwayFalse(Map<GdlSentence, ExternalizedStateComponent> components,\n\t\t\tMap<GdlSentence, ExternalizedStateComponent> negations, ExternalizedStatePropNet pn,\n\t\t\tExternalizedStateComponent trueComponent, ExternalizedStateComponent falseComponent) {\n assert((components != null && negations != null) || pn != null);\n assert((components == null && negations == null) || pn == null);\n for (ExternalizedStateComponent output : Lists.newArrayList(falseComponent.getOutputs())) {\n \tif (isEssentialProposition(output) || output instanceof ExternalizedStateTransition) {\n \t\t//Since this is the false constant, there are a few \"essential\" types\n \t\t//we don't actually want to keep around.\n \t\tif (!isLegalOrGoalProposition(output)) {\n \t\t\tcontinue;\n \t\t}\n\t \t}\n\t\t\tif(output instanceof ExternalizedStateProposition) {\n\t\t\t\t//Move its outputs to be outputs of false\n\t\t\t\tfor(ExternalizedStateComponent child : output.getOutputs()) {\n\t\t\t\t\t//Disconnect\n\t\t\t\t\tchild.removeInput(output);\n\t\t\t\t\t//output.removeOutput(child); //do at end\n\t\t\t\t\t//Reconnect; will get children before returning, if nonessential\n\t\t\t\t\tfalseComponent.addOutput(child);\n\t\t\t\t\tchild.addInput(falseComponent);\n\t\t\t\t}\n\t\t\t\toutput.removeAllOutputs();\n\n\t\t\t\tif(!isEssentialProposition(output)) {\n\t\t\t\t\tExternalizedStateProposition prop = (ExternalizedStateProposition) output;\n\t\t\t\t\t//Remove the proposition entirely\n\t\t\t\t\tfalseComponent.removeOutput(output);\n\t\t\t\t\toutput.removeInput(falseComponent);\n\t\t\t\t\t//Update its location to the trueComponent in our map\n\t\t\t\t\tif(components != null) {\n\t\t\t\t\t components.put(prop.getName(), falseComponent);\n\t\t\t\t\t negations.put(prop.getName(), trueComponent);\n\t\t\t\t\t} else {\n\t\t\t\t\t pn.removeComponent(output);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(output instanceof ExternalizedStateAnd) {\n\t\t\t\tExternalizedStateAnd and = (ExternalizedStateAnd) output;\n\t\t\t\t//Attach children of and to falseComponent\n\t\t\t\tfor(ExternalizedStateComponent child : and.getOutputs()) {\n\t\t\t\t\tchild.addInput(falseComponent);\n\t\t\t\t\tfalseComponent.addOutput(child);\n\t\t\t\t\tchild.removeInput(and);\n\t\t\t\t}\n\t\t\t\t//Disconnect and completely\n\t\t\t\tand.removeAllOutputs();\n\t\t\t\tfor(ExternalizedStateComponent parent : and.getInputs())\n\t\t\t\t\tparent.removeOutput(and);\n\t\t\t\tand.removeAllInputs();\n\t\t\t\tif(pn != null)\n\t\t\t\t pn.removeComponent(and);\n\t\t\t} else if(output instanceof ExternalizedStateOr) {\n\t\t\t\tExternalizedStateOr or = (ExternalizedStateOr) output;\n\t\t\t\t//Remove as input from or\n\t\t\t\tor.removeInput(falseComponent);\n\t\t\t\tfalseComponent.removeOutput(or);\n\t\t\t\t//If or has only one input, remove it\n\t\t\t\tif(or.getInputs().size() == 1) {\n\t\t\t\t\tExternalizedStateComponent in = or.getSingleInput();\n\t\t\t\t\tor.removeInput(in);\n\t\t\t\t\tin.removeOutput(or);\n\t\t\t\t\tfor(ExternalizedStateComponent out : or.getOutputs()) {\n\t\t\t\t\t\t//Disconnect from and\n\t\t\t\t\t\tout.removeInput(or);\n\t\t\t\t\t\t//or.removeOutput(out); //do at end\n\t\t\t\t\t\t//Connect directly to the new input\n\t\t\t\t\t\tout.addInput(in);\n\t\t\t\t\t\tin.addOutput(out);\n\t\t\t\t\t}\n\t\t\t\t\tor.removeAllOutputs();\n\t\t\t\t\tif (pn != null) {\n\t\t\t\t\t pn.removeComponent(or);\n\t\t\t\t\t}\n\t\t\t\t} else if (or.getInputs().size() == 0) {\n\t\t\t\t\tif (pn != null) {\n\t\t\t\t\t\tpn.removeComponent(or);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(output instanceof ExternalizedStateNot) {\n\t\t\t\tExternalizedStateNot not = (ExternalizedStateNot) output;\n\t\t\t\t//Disconnect from falseComponent\n\t\t\t\tnot.removeInput(falseComponent);\n\t\t\t\tfalseComponent.removeOutput(not);\n\t\t\t\t//Connect all children of the not to trueComponent\n\t\t\t\tfor(ExternalizedStateComponent child : not.getOutputs()) {\n\t\t\t\t\t//Disconnect\n\t\t\t\t\tchild.removeInput(not);\n\t\t\t\t\t//not.removeOutput(child); //Do at end\n\t\t\t\t\t//Connect to trueComponent\n\t\t\t\t\tchild.addInput(trueComponent);\n\t\t\t\t\ttrueComponent.addOutput(child);\n\t\t\t\t}\n\t\t\t\tnot.removeAllOutputs();\n\t\t\t\tif(pn != null)\n\t\t\t\t pn.removeComponent(not);\n\t\t\t} else if(output instanceof ExternalizedStateTransition) {\n\t\t\t\t//???\n\t\t\t\tSystem.err.println(\"Fix optimizeAwayFalse's case for Transitions\");\n\t\t\t}\n\t\t}\n\t}", "public void noSmooth() {\n\t\tthis.dst.noSmooth();\n\t\tthis.src.noSmooth();\n\t}", "public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n } \n }else{\n if( (b.getPosX() + b.getSizeX() ) > px - sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n }\n }\n }", "private void phaseTwo(){\r\n\r\n\t\tCollections.shuffle(allNodes, random);\r\n\t\tList<Pair<Node, Node>> pairs = new ArrayList<Pair<Node, Node>>();\r\n\t\t\r\n\t\t//For each node in allNode, get all relationshpis and iterate through each relationship.\r\n\t\tfor (Node n1 : allNodes){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//If a node n1 is related to any other node in allNodes, add those relationships to rels.\r\n\t\t\t\t//Avoid duplication, and self loops.\r\n\t\t\t\tIterable<Relationship> ite = n1.getRelationships(Direction.BOTH);\t\t\t\t\r\n\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\tNode n2 = rel.getOtherNode(n1);\t//Get the other node\r\n\t\t\t\t\tif (allNodes.contains(n2) && !n1.equals(n2)){\t\t\t\t\t//If n2 is part of allNodes and n1 != n2\r\n\t\t\t\t\t\tif (!rels.contains(rel)){\t\t\t\t\t\t\t\t\t//If the relationship is not already part of rels\r\n\t\t\t\t\t\t\tPair<Node, Node> pA = new Pair<Node, Node>(n1, n2);\r\n\t\t\t\t\t\t\tPair<Node, Node> pB = new Pair<Node, Node>(n2, n1);\r\n\r\n\t\t\t\t\t\t\tif (!pairs.contains(pA)){\r\n\t\t\t\t\t\t\t\trels.add(rel);\t\t\t\t\t\t\t\t\t\t\t//Add the relationship to the lists.\r\n\t\t\t\t\t\t\t\tpairs.add(pA);\r\n\t\t\t\t\t\t\t\tpairs.add(pB);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public boolean isDisjointTo(OWLClass cls1,\r\n OWLClass cls2,\r\n ReasonerTaskListener taskListener) throws DIGReasonerException;", "private void translate(Ball ball, double timeDelta) {\n\n /*\n * The point of indexing into the arrays rather than, for example, using\n * Ball ball=this.getBallWithMinCollisionTime(ball, timeDelta) is that\n * we want the elements of the array to mutate if need be.\n */\n int gadgetIndex = this.getGadgetWithMinCollisionTime(ball, timeDelta);\n int ballIndex = this.getBallWithMinCollisionTime(ball, timeDelta);\n // If any gadgets are triggered, they will be kept track of with this\n // and then their actions called.\n Gadget[] triggeredGadgets = new Gadget[] {};\n // If the ball won't collide with a Gadget within timeDelta.\n if (gadgetIndex == this.gadgets.length) {\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, timeDelta);\n }\n // If the ball will collide with a Ball within timeDelta.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n // If the ball will possibly collide with a Gadget within timeDelta.\n else {\n double gadgetTime = this.gadgets[gadgetIndex].getMinCollisionTime(ball);\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, gadgetTime);\n Vect priorVel=ball.getVelocity();\n this.gadgets[gadgetIndex].interactWithBall(ball);\n Vect afterVel =ball.getVelocity();\n if (afterVel.equals(priorVel)){\n throw new RuntimeErrorException(null, \"interaction failed\");\n }\n\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n }\n // If the ball will possibly collide with both a ball and a Gadget.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n\n // For now avoiding the case that a ball will hit a ball and\n // gadget at the same time.\n if (gadgetTime < ballTime) {\n\n this.moveWithoutCollision(ball, gadgetTime);\n this.gadgets[gadgetIndex].interactWithBall(ball);\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n } else {\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n }\n if (triggeredGadgets.length != 0) {\n\n this.triggerGadgets(triggeredGadgets);\n }\n // If the ball isn't done moving, make sure it keeps moving\n if (!Util.doublesAreEqual(ball.getTime(), 0)) {\n this.translate(ball, ball.getTime());\n }\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "private void testForWallCollision() {\n\t\tVector2 n1 = temp;\n\t\tVector2 hitPoint = temp2;\n\t\t\n\t\tArrayList<Vector2> list;\n\t\tdouble angleOffset;\n\t\t\n\t\tfor (int w=0; w < 2; w++) {\n\t\t\tif (w == 0) {\n\t\t\t\tlist = walls1;\n\t\t\t\tangleOffset = Math.PI/2;\n\t\t\t} else {\n\t\t\t\tlist = walls2;\n\t\t\t\tangleOffset = -Math.PI/2;\n\t\t\t}\n\t\t\tn1.set(list.get(0));\n\t\t\t\n\t\t\tfor (int i=1; i < list.size(); i++) {\n\t\t\t\tVector2 n2 = list.get(i);\n\t\t\t\tif (Intersector.intersectSegments(n1, n2, oldPos, pos, hitPoint)) {\n\t\t\t\t\t// bounceA is technically the normal. angleOffset is used\n\t\t\t\t\t// here to get the correct side of the track segment.\n\t\t\t\t\tfloat bounceA = (float) (Math.atan2(n2.y-n1.y, n2.x-n1.x) + angleOffset);\n\t\t\t\t\tVector2 wall = new Vector2(1, 0);\n\t\t\t\t\twall.setAngleRad(bounceA).nor();\n\t\t\t\t\t\n\t\t\t\t\t// move the car just in front of the wall.\n\t\t\t\t\tpos.set(hitPoint.add((float)Math.cos(bounceA)*0.05f, (float)Math.sin(bounceA)*0.05f));\n\t\t\t\t\t\n\t\t\t\t\t// Lower the speed depending on which angle you hit the wall in.\n\t\t\t\t\ttemp2.setAngleRad(angle).nor();\n\t\t\t\t\tfloat wallHitDot = wall.dot(temp2);\n\t\t\t\t\tspeed *= (1 - Math.abs(wallHitDot)) * 0.85;\n\t\t\t\t\t\n\t\t\t\t\t// calculate the bounce using the reflection formula.\n\t\t\t\t\tfloat dot = vel.dot(wall);\n\t\t\t\t\tvel.sub(wall.scl(dot*2));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tn1.set(n2);\n\t\t\t}\n\t\t}\n\t}", "private void collideWithBall() {\n die();\n }", "public void ballVSbrick(Ball bb, Brick br) {\n Rectangle bb_box = new Rectangle(bb.getX(), bb.getY(), bb.getWidth(), bb.getHeight());\r\n Rectangle br_box = new Rectangle(br.getX(), br.getY(), br.getWidth(), br.getHeight());\r\n\r\n if (bb_box.intersects(br_box)) {\r\n //collision\r\n if (bb.getVX() < 0 && bb.getVY() < 0) {//-x,-y\r\n bb.setVY(bb.getVY() * -1);\r\n //remove brick\r\n //totalBricks.get(i)\r\n }//Inconsistent with collision\r\n else if (bb.getVX() > 0 && (bb.getVY() > 0)) {//+x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//works\r\n else if (bb.getVX() < 0 && (bb.getVY() > 0)) {//-x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//also inconsistent with collision\r\n else if(bb.getVX()>0 && bb.getVY()<0){//+x,-y\r\n bb.setVY(bb.getVY()*-1);\r\n }\r\n }\r\n if (totalBricks.isEmpty()) {\r\n this.setCleared(true);\r\n }\r\n //when the ball hits a brick\r\n //remove the brick\r\n //update velocity of ball\r\n\r\n }", "@Test\n public void notConnectedDueToRestrictions() {\n int sourceNorth = graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int sourceSouth = graph.edge(0, 3).setDistance(2).set(speedEnc, 10, 10).getEdge();\n int targetNorth = graph.edge(1, 2).setDistance(3).set(speedEnc, 10, 10).getEdge();\n int targetSouth = graph.edge(3, 2).setDistance(4).set(speedEnc, 10, 10).getEdge();\n\n assertPath(calcPath(0, 2, sourceNorth, targetNorth), 0.4, 4, 400, nodes(0, 1, 2));\n assertNotFound(calcPath(0, 2, sourceNorth, targetSouth));\n assertNotFound(calcPath(0, 2, sourceSouth, targetNorth));\n assertPath(calcPath(0, 2, sourceSouth, targetSouth), 0.6, 6, 600, nodes(0, 3, 2));\n }", "public boolean checkCollisionWithBall(Ball ball, float delta) {\n return false;\n }", "@Override\r\n public boolean collision(org.dyn4j.dynamics.Body body1, BodyFixture fixture1, org.dyn4j.dynamics.Body body2, BodyFixture fixture2) {\r\n //Default, keep processing this event\r\n\r\n return true;\r\n }", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "public void execute() {\n\t\tnot_a.in.set(a.get());\n\t\tnot_b.in.set(b.get());\n\n\t\t/* we now execute both of the NOT gates. Each one should\n\t\t * write a value to their output.\n\t\t */\n\t\tnot_a.execute();\n\t\tnot_b.execute();\n\n\n\t\t/* ----- IMPORTANT NOTE 2: -----\n\t\t *\n\t\t * We need to perform NOT twice in this component - since XOR\n\t\t * uses the NOT value of each of the inputs a,b. But we MUST\n\t\t * NOT use the same object twice! Instead, we use two\n\t\t * different NOT objects.\n\t\t *\n\t\t * In a program, this is of course a silly design. But\n\t\t * remember that we are trying to simulate hardware here - and\n\t\t * each component (such as a NOT gate) can only generate one\n\t\t * result per clock tick. So if we want to negate two different\n\t\t * signals for the same calculation, we need two differnt gates.\n\t\t */\n\n\n\t\t/* we now connect various wires to each AND gate. Each AND\n\t\t * checks for \"this value is true, the other is false\"; it does\n\t\t * this by doing the AND of one of the inputs, and the NOT of\n\t\t * the other.\n\t\t *\n\t\t * Note that it's perfectly OK to connect the same input to\n\t\t * two different devices - we just run wires to two different\n\t\t * physical places.\n\t\t */\n\t\tand1.a.set(a.get());\n\t\tand1.b.set(not_b.out.get());\n\n\t\tand2.a.set(not_a.out.get());\n\t\tand2.b.set(b.get());\n\n\t\t/* we execute the two AND gates *AFTER* their inputs are\n\t\t * in place.\n\t\t */\n\t\tand1.execute();\n\t\tand2.execute();\n\n\n\t\t/* the value of XOR is \"this and not that, or not this and that\" -\n\t\t * or, more formally,\n\t\t * (A ~B) + (~A B)\n\t\t * So our last step is to OR the result of the two AND gates\n\t\t * together. Its output is the output from our XOR gate.\n\t\t */\n\t\tor.a.set(and1.out.get());\n\t\tor.b.set(and2.out.get());\n\t\tor.execute();\n\t\tout.set(or.out.get());\n\t}", "@Override\n\tpublic void turnMotorB(boolean direction) throws ConnectionLostException {\n\t\t\n\t}", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "@Test\n void ignoreDifferentPlacement () throws ParserConfigurationException,\n SAXException, IOException, XPathExpressionException {\n\n Model base = new Model(\"./tests/TestModels/TravelAgency\" +\n \"/BaseModelForTA.bpmn.xml\");\n //the model against which all others will be tested.\n\n Model onlyPositionsAreDifferent = new Model(\"./tests/TestModels\" +\n \"/TravelAgency/onlyPositionsAreDifferent.bpmn.xml\");\n assertFalse(TravelAgency.modelsAreDifferent(base,\n onlyPositionsAreDifferent));\n //The position of the BPMN symbols should not matter. As such, it\n // should be equal to the base model.\n\n }", "private void collide() {\n int collisionRange;\n \n if(isObstacle) {\n for(Thing thg: proximity) {\n if(\n thg.isObstacle\n &&\n !thg.equals(this)\n ) {\n collisionRange = (thg.size + this.size)/2;\n deltaA = this.distance(thg);\n \n if( \n Math.abs(deltaA[0]) <= collisionRange\n &&\n Math.abs(deltaA[1]) <= collisionRange\n ){\n if(deltaA[0] > deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == 1) {\n dA[0] = 0;\n }\n }\n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == -1) {\n dA[1] = 0;\n }\n }\n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n if(dA[0] != 0) {\n dA[1] = dA[0];\n }\n if(dA[1] != 0) {\n dA[0] = dA[1];\n }\n }\n }\n \n if(deltaA[0] < deltaA[1]) {\n if(Math.abs(deltaA[0]) > Math.abs(deltaA[1])) {\n if(dA[0] == -1) {\n dA[0] = 0;\n }\n } \n if(Math.abs(deltaA[0]) < Math.abs(deltaA[1])) {\n if(dA[1] == 1) {\n dA[1] = 0;\n }\n } \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = dA[0];\n }\n }\n \n if(Math.abs(deltaA[0]) == Math.abs(deltaA[1])) {\n dA[0] = 1 - 2*(int) (Math.random()*2);\n dA[1] = -dA[0];\n }\n }\n }\n }\n }\n }", "private Proof impossibility(Expression a, Expression b) {\n Proof axm1 = axm1(a, b); //a -> b -> a\n Proof contra = contra(b, a); //(b -> a) -> (!a -> !b)\n return implTrans(axm1, contra);//a -> !a -> !b\n }", "@Test\n public void forcingDirectionDoesNotMeanWeCannotUseEdgeAtAll() {\n int north = graph.edge(1, 0).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int south = graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10).getEdge();\n graph.edge(2, 5).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(5, 4).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(4, 3).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(3, 2).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(1, 0).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(0, 6).setDistance(1).set(speedEnc, 10, 0);\n int targetEdge = graph.edge(6, 7).setDistance(1).set(speedEnc, 10, 0).getEdge();\n assertPath(calcPath(1, 7, north, targetEdge), 0.3, 3, 300, nodes(1, 0, 6, 7));\n assertPath(calcPath(1, 7, south, targetEdge), 0.9, 9, 900, nodes(1, 2, 5, 4, 3, 2, 1, 0, 6, 7));\n }", "private void createBallsOnTopOfPaddle() {\r\n for (int i = 0; i < levelInformation.numberOfBalls(); i++) {\r\n Ball ball = new Ball((guiWidth / 2) - ((levelInformation.numberOfBalls() - 1) * ballRadius)\r\n + (i * (ballRadius * 2)), 550, ballRadius, Color.WHITE, environment);\r\n ball.setVelocity(levelInformation.initialBallVelocities().get(i));\r\n ball.addToGame(this);\r\n }\r\n ballCounter.increase(levelInformation.numberOfBalls());\r\n }", "public Bond(IAtom atom1, IAtom atom2) {\n this(atom1, atom2, IBond.Order.SINGLE, CDKConstants.STEREO_BOND_NONE);\n }", "public void bounce() {\n angle = -angle;\n }", "public void paddleVSball(Paddle p, Ball b) {\n Rectangle p_box = new Rectangle(p.getX(), p.getY(), p.getWidth(), p.getHeight());\r\n // System.out.println(\"X: \"+p.getX()+\"Y: \"+p.getY()+\"W: \"+p.getWidth()+\"H: \"+p.getHeight());\r\n Rectangle b_box = new Rectangle(b.getX(), b.getY(), b.getWidth(), b.getHeight());\r\n\r\n if (p_box.intersects(b_box)) {\r\n //collision\r\n //if ball is going +y and -x\r\n if (b.getVY() > 0 || b.getVY() < 0) {\r\n b.setVY(b.getVY() * -1);\r\n }\r\n if (b.getY() < p.getY()) {//if the ball is inside the paddle\r\n b.setVX(b.getVX() * -1);\r\n b.setVX(b.getVX() * -1);\r\n }\r\n }\r\n }", "public void throwBall() {\r\n\t\tthis.move();\r\n\t\tballCount--;\r\n\r\n\t}", "@Override\r\n\tpublic void converse() {\n\t\t\r\n\t}", "void swap() {\n\t\tint remain_singles = this.d - this.couples_found;\n\t\tfor (int pit_id = 0; pit_id < remain_singles; pit_id++) {\n\t\t\tint dancer_id = findDancer(pit_id);\n\t\t\tif(dancers[dancer_id].soulmate != -1) continue;\n\t\t\tint next_pit = getNextPit(pit_id);\n\t\t\tif(next_pit == -1){\n\t\t\t\tdancers[dancer_id].next_pos = new Point(pits[pit_id].pos.x, pits[pit_id].pos.y);\n\t\t\t\tdancers[dancer_id].pit_id = pit_id;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdancers[dancer_id].next_pos = findNearestActualPoint(pits[next_pit].pos, pits[pit_id].pos);\n\t\t\t\tdancers[dancer_id].pit_id = next_pit;\n\t\t\t}\n\t\t}\n \t\tthis.state = 3 - this.state;\n \t\tthis.stay = 0;\n\t}", "private static void optimizeAwayTrueAndFalse(Map<GdlSentence, ExternalizedStateComponent> components, Map<GdlSentence, ExternalizedStateComponent> negations, ExternalizedStateComponent trueComponent, ExternalizedStateComponent falseComponent) throws InterruptedException {\n\t while(hasNonessentialChildren(trueComponent) || hasNonessentialChildren(falseComponent)) {\n\t \tConcurrencyUtils.checkForInterruption();\n optimizeAwayTrue(components, negations, null, trueComponent, falseComponent);\n optimizeAwayFalse(components, negations, null, trueComponent, falseComponent);\n }\n\t}", "@Override\n public boolean checkForScoringCondition(BotState botState) {\n Location botLocation = new Location(botState.x, botState.y);\n for (var ballLocation: ballLocations) {\n if (botLocation.getDistance(ballLocation) < SCORING_DISTANCE) {\n // The robot picked up the ball!\n logger.info(\"FOUND A BALL BOT=\"+botLocation+\" ball=\"+ballLocation);\n ballLocations.remove(ballLocation);\n return true;\n }\n }\n return false;\n }", "public void receiveBall(BallControl iBall) {\r\n ball = iBall;\r\n ball.assignEnemy((Enemy)spatial);\r\n }", "public static void createMazeMinus(DrawMaze maze) {\n Set<Point> loose = new HashSet<Point>();\n Set<Point> source = new HashSet<Point>();\n \n maze.getLoosePoints(loose);\n maze.getSourcePoints(source);\n\n //Repeat until the loose collection is empty.\n while (!loose.isEmpty()) {\n //point randomly selected from the source collection\n //checked for adjacent points that are not connected\n \tint size = source.size();\n \tint item = new Random().nextInt(size);\n \tint i = 0;\n \tPoint currentSourcePoint = null;\n \tfor(Point p : source) {\n \t if (i == item)\n \t currentSourcePoint = p;\n \t i = i + 1;\n \t}\n \t\n \tArrayList<Point> toChoose =\n \t\t\tmaze.getAdjacentLoosePoints(currentSourcePoint, loose);\n \t\n //If there is exactly one loose adjacent point,\n \t//the wall between the source point and the loose point is added to the maze\n \t//source point can be removed from the source collection\n \tif (toChoose.size() == 1) {\n \t\t\n \t\tPoint drawTo = toChoose.get(0);\n \t\tmaze.connectWall(currentSourcePoint, drawTo);\n \t\tloose.remove(drawTo);\n \t\tsource.remove(currentSourcePoint);\n \t\tsource.add(drawTo);\n \t\n //else If there are more than one loose points adjacent to the source point,\n \t//randomly select a direction for the wall, from the possibilities,\n \t//and add that wall to the maze. In this case, do not remove the\n \t//source point from the source collection.\n \t} else if (toChoose.size() > 1) {\n \n \t\tint rand = (int) (Math.random() * (toChoose.size() - 1)) / 1;\n \t\tPoint drawTo = toChoose.get(rand);\n maze.connectWall(currentSourcePoint, drawTo);\n loose.remove(drawTo);\n source.add(drawTo);\n \t}\n }\n }", "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }", "public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }", "private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }", "public void invertBeeper() {\n /* an if/else statement */\n if(beepersPresent()) {\n pickBeeper();\n } else {\n putBeeper();\n }\n }", "public boolean commutes(){\n\t\treturn false;\n }", "public void checkBallCollisions(Ball ball, Board board, ArrayList<Brick> bricks) {\n float currDir = ball.getDirection();\n // check if the ball has hit any of the bricks\n for(Brick brick : bricks){\n boolean hitBrick = false;\n boolean hitCorner = false;\n\n if (ball.intersects(brick.getTopLeftCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getTopLeftCorner());\n if ((!ball.hasPositiveXDirection()) && angle<reverseVerticalDirection(angle)) ball.reverseVerticalDirection();\n else if (ball.hasPositiveYDirection() && angle>reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getTopRightCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getTopRightCorner());\n if (ball.hasPositiveXDirection() && angle>reverseVerticalDirection(angle) && angle<Math.PI) ball.reverseVerticalDirection();\n else if (ball.hasPositiveYDirection() && (angle<reverseHorizontalDirection(angle)\n || angle>Math.PI)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getBottomLeftCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getBottomLeftCorner());\n if ((!ball.hasPositiveXDirection()) && angle>reverseVerticalDirection(angle)) ball.reverseVerticalDirection();\n else if ((!ball.hasPositiveYDirection()) && angle<reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getBottomRightCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getBottomRightCorner());\n if (ball.hasPositiveXDirection() && angle<reverseVerticalDirection(angle) && angle>Math.PI) ball.reverseVerticalDirection();\n else if ((!ball.hasPositiveYDirection()) && angle>reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n }\n if (hitCorner) {\n brick.decrementLife(); Points.getInstance().addPoints(10);\n break;\n }\n if (ball.intersects(brick.getNorthLine()) && Math.PI<=currDir\n && currDir<=2*Math.PI) {\n ball.reverseVerticalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getSouthLine()) && 0<=currDir\n && currDir<=Math.PI) {\n ball.reverseVerticalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getWestLine()) && ((0<=currDir\n && currDir<=(Math.PI)/2) || ((3*Math.PI)/2<=currDir\n && currDir<=2*Math.PI))) {\n ball.reverseHorizontalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getEastLine()) && (Math.PI)/2<=currDir\n && currDir<=(3*Math.PI)/2) {\n ball.reverseHorizontalDirection();\n hitBrick = true;\n }\n if (hitBrick) {\n brick.decrementLife(); Points.getInstance().addPoints(10);\n break;\n }\n }\n\n // check if the ball has hit the ceiling or one of the walls\n if (ball.getY() <= ceilingPos) {\n ball.setY(ceilingPos);\n ball.reverseVerticalDirection();\n } else if (ball.getMaxX() >= rightWallPos) {\n ball.setX(rightWallPos - 2 * ball.getRadius());\n ball.reverseHorizontalDirection();\n } else if (ball.getX() <= leftwallPos) {\n ball.setX(leftwallPos);\n ball.reverseHorizontalDirection();\n }\n\n // check if the ball has hit the board\n if (currDir>((Math.PI)/6) && currDir<((3*Math.PI)/6)) return;\n if (ball.intersects(board.getBody()) && currDir>Math.PI) {\n ball.reverseVerticalDirection();\n } else if (ball.intersects(board.getLeftEdge())) {\n float angle = getDirectionAfterCollisionWithCircle(ball, board.getLeftEdge());\n if (angle<((Math.PI)/2) || angle>(3*Math.PI)/2) ball.reverseVerticalDirection();\n else ball.setDirection(angle);\n } else if (ball.intersects(board.getRightEdge())) {\n float angle = getDirectionAfterCollisionWithCircle(ball, board.getRightEdge());\n if (angle>((Math.PI)/2) && angle<(3*Math.PI)/2) ball.reverseVerticalDirection();\n else ball.setDirection(angle);\n }\n }", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "@Override\r\n public int numberOfBalls() {\r\n return 2;\r\n }", "public abstract void turnToLiving(int x, int y);", "@Override\n\tpublic boolean collide(int ballX, int ballY, Drawable ball) {\n\t\tint[] coordinates = brick.get();\n\t\tint brickX = coordinates[0];\n\t\tint brickY = coordinates[1];\n\t\tif (ballX + ball.getWidth() >= brickX\n\t\t\t\t&& ballX <= brickX + brick.getWidth()\n\t\t\t\t&& ballY+ ball.getHeight() >= brickY\n\t\t\t\t&& ballY <= brickY + brick.getHeight()) {\n\t\t\t\n\t\t\t//System.out.println(\"Collideed\");\n\t\t\tbrickBlast = true;\n\t\t\treturn true;\n\t\t \n\t\t}\n\t\treturn false;\n\t}", "@Test\n void testTrackBallSameY() {\n goalie.setPosition(goalie.getX(),400);\n Vector result =\n goalie.TrackBallSetDirection(new Vector (120f,400), new Vector(-1,0));\n\n // when the goalieY == ballY the direction of movement should evaluate zero\n assertEquals(0, result.getY());\n }", "public void clearBalls();", "@Override\n\tpublic void action() {\n\t if (firingBall.getY() + firingBall.getRadius() < this.y) { \n\t //deactivate absorber locally and in GameBoard\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t}", "public void chase(int targetX, int targetY, ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls, 0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if (isIntersection) {\r\n if (!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isLeftCollision && this.direction != 2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX, 2) + Math.pow(yPos - targetY, 2);\r\n }\r\n if (!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos - 20) - targetY, 2);\r\n }\r\n if (!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX, 2) + Math.pow((yPos + 20) - targetY, 2);\r\n }\r\n if (upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n } else if (downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n } else if (rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n } else if (leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if (this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if (this.direction == 1) {\r\n yPos = yPos + 5;\r\n }\r\n if (this.direction == 2) {\r\n xPos = xPos + 5;\r\n }\r\n if (this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n\r\n }", "public static void testNegate()\n {\n\t Picture thrudoor = new Picture(\"thruDoor.jpg\");\n\t thrudoor.toNegative();\n\t thrudoor.explore();\n }", "public void Protocol(Plane Board,ServerConnect server1,ServerConnect server2){\n\t\tDice dice = new Dice();\n\t\tJudge judge = new Judge();\n\t\tString action = null;\n\t\tint receive1, receive2;\n\t\tboolean WinOrNot=false;\n\t\tBoard.initial();\n\t\touter:\n\t\twhile(!WinOrNot){\n\t\t\t//send current state to client\n\t\t\tserver1.SendToSocket(\"current,\"+Integer.toString(Board.CurrentBoard()[0])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[1])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[2])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[3])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[4])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[5])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[6])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[7])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[8])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[9])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[10]));\n\t\t\tserver2.SendToSocket(\"current,\"+Integer.toString(Board.CurrentBoard()[0])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[1])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[2])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[3])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[4])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[5])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[6])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[7])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[8])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[9])+\",\"+\n\t\t\t\t\tInteger.toString(Board.CurrentBoard()[10]));\n\t\t\tinner:\n\t\t\twhile(true){\n\t\t\t\tString[] receive = null;\n\t\t\t\tString s = \"\";\n\t\t\t\ts = server1.ReceiveFromSocket();\n\t\t\t\treceive = null;\n\t\t\t\treceive = s.split(\",\");\n\t\t\t\taction = receive[0];\n\t\t\t\tif (action.trim().equals(\"roll\")){\t//\"roll\" received from client, generate four random numbers\n\t\t\t\t\tdice.Roll();\n\t\t\t\t\tServe4Game.roll1=dice.Dice1();\n\t\t\t\t\tServe4Game.roll2=dice.Dice2();\n\t\t\t\t\tServe4Game.roll3=dice.Dice3();\n\t\t\t\t\tServe4Game.roll4=dice.Dice4();\n\t\t\t\t\tserver1.SendToSocket(\"dice,\"+Serve4Game.roll1+\",\"+Serve4Game.roll2+\",\"+\n\t\t\t\t\t\tServe4Game.roll3+\",\"+Serve4Game.roll4);\n\t\t\t\t\tserver2.SendToSocket(\"dice,\"+Serve4Game.roll1+\",\"+Serve4Game.roll2+\",\"+\n\t\t\t\t\t\tServe4Game.roll3+\",\"+Serve4Game.roll4);\n\t\t\t\t\tint r1,r2,r3,r4,r5,r6;\n\t\t\t\t\tr1 = Serve4Game.roll1 + Serve4Game.roll2;\n\t\t\t\t\tr2 = Serve4Game.roll1 + Serve4Game.roll3;\n\t\t\t\t\tr3 = Serve4Game.roll1 + Serve4Game.roll4;\n\t\t\t\t\tr4 = Serve4Game.roll2 + Serve4Game.roll3;\n\t\t\t\t\tr5 = Serve4Game.roll2 + Serve4Game.roll4;\n\t\t\t\t\tr6 = Serve4Game.roll3 + Serve4Game.roll4;\n\t\t\t\t\t\n\t\t\t\t\t//judge whether the player craps out\n\t\t\t\t\tif(!judge.judger(r1, Board)&&!judge.judger(r2, Board)&&!judge.judger(r3, Board)\n\t\t\t\t\t\t&&!judge.judger(r4, Board)&&!judge.judger(r5, Board)&&!judge.judger(r6, Board))\n\t\t\t\t\t{\n\t\t\t\t\t\tBoard.initial();\n\t\t\t\t\t\tserver1.SendToSocket(\"crap,\"+Integer.toString(Board.CurrentBoard()[0])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[1])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[2])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[3])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[4])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[5])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[6])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[7])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[8])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[9])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[10]));\n\t\t\t\t\t\tserver2.SendToSocket(\"crap,\"+Integer.toString(Board.CurrentBoard()[0])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[1])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[2])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[3])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[4])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[5])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[6])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[7])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[8])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[9])+\",\"+\n\t\t\t\t\t\t\tInteger.toString(Board.CurrentBoard()[10]));\n\t\t\t\t\t\tServe4Game.act1 = !Serve4Game.act1 ;\n\t\t\t\t\t\tServe4Game.act2 = !Serve4Game.act2 ;\n\t\t\t\t\t\tbreak outer;\t\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcontinue inner;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//judge whether the numbers client chose can make a move\n\t\t\t\telse if (action.trim().equals(\"number\")){\n\t\t\t\t\treceive1 = Integer.parseInt(receive[1]);\n\t\t\t\t\treceive2 = Integer.parseInt(receive[2]);\n\t\t\t\t\tjudge.err = judge.judge(receive1, receive2, Board);\n\t\t\t\t\tif (judge.err == 1||judge.err==2||judge.err ==3){\n\t\t\t\t\t\tserver1.SendToSocket(\"err,\");\n\t\t\t\t\t\tserver2.SendToSocket(\"err,\");\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t\telse if(judge.bool1&&judge.bool2){\n\t\t\t\t\t\tBoard.ChangeCurrent(judge.num1);\n\t\t\t\t\t\tif(judge.num2 !=0){\n\t\t\t\t\t\t\tjudge.bool2 = judge.judger(judge.num2,Board);\n\t\t\t\t\t\t\tif(judge.bool2 && judge.num2 != 0)\n\t\t\t\t\t\t\t\tBoard.ChangeCurrent(judge.num2);\n\t\t\t\t\t\t\telse if(!judge.bool2)\n\t\t\t\t\t\t\t\tjudge.num2 = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserver1.SendToSocket(\"ack,\"+judge.num1+\",\"+judge.num2);\n\t\t\t\t\t\tserver2.SendToSocket(\"ack,\"+judge.num1+\",\"+judge.num2);\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t\telse if((judge.bool1)&&(!judge.bool2)){\n\t\t\t\t\t\tBoard.ChangeCurrent(judge.num1);\n\t\t\t\t\t\tserver1.SendToSocket(\"ack,\"+judge.num1+\",\"+0);\n\t\t\t\t\t\tserver2.SendToSocket(\"ack,\"+judge.num1+\",\"+0);\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t\telse if((!judge.bool1)&&(judge.bool2)&&judge.num2!=0){\n\t\t\t\t\t\tBoard.ChangeCurrent(judge.num2);\n\t\t\t\t\t\tjudge.num1 = 0;\n\t\t\t\t\t\tserver1.SendToSocket(\"ack,\"+judge.num1+\",\"+judge.num2);\n\t\t\t\t\t\tserver2.SendToSocket(\"ack,\"+judge.num1+\",\"+judge.num2);\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (action.trim().equals(\"stop\")){\t//\"stop\" received from client, change current state\n\t\t\t\t\tserver1.SendToSocket(\"stop\");\n\t\t\t\t\tserver2.SendToSocket(\"stop\");\n\t\t\t\t\tBoard.ChangePrevious();\n\t\t\t\t\tWinOrNot =Board.WinerOrNot();\t//judge whether the player win the game\n\t\t\t\t\tBoard.initial();\n\t\t\t\t\tServe4Game.act1 = !Serve4Game.act1 ;\n\t\t\t\t\tServe4Game.act2 = !Serve4Game.act2 ;\n\t\t\t\t\tif (WinOrNot){\n\t\t\t\t\t\tserver1.SendToSocket(\"win\");\n\t\t\t\t\t\tserver2.SendToSocket(\"win\");\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tserver1.SendToSocket(\"ACK\");\n\t\t\t\t\t\tserver2.SendToSocket(\"ACK\");\n\t\t\t\t\t}\n\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tjudge.err = 0;\n\t\treturn;\n\t}", "private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }", "private static void fakePole() {\n\t\tint turns = 1000;\n\t\tModelLearnerHeavy modeler = new ModelLearnerHeavy(100, new int[] {30},\n\t\t\t\tnew int[] {30}, new int[] {30}, ActivationFunction.SIGMOID0p5, turns);\n\n\t\tfinal boolean NN_FORM = false;\n\t\tdouble[] mins = Pole.stateMins;\n\t\tdouble[] maxes = Pole.stateMaxes;\n\t\tEnvTranslator stateTranslator = EnvTranslator.rbfEnvTranslator(mins, maxes, new int[] {12,12}, .5);\n\t\tEnvTranslator actTranslator = Pole.actionTranslator;\n\t\tList<double[]> actions = Pole.actionChoices;\n\t\tactions.add(new double[] {1,0});\n//\t\tactions.add(new double[] {0,0});\n\t\tactions.add(new double[] {0,1});\n\t\tfinal Collection<double[]> tmpCorrel = new ArrayList<double[]>();\n\t\tfor (int t = 0; t < turns; t++) {\n\t\t\tdouble[] preState = new double[mins.length];\n\t\t\tfor (int i = 0; i < preState.length; i++) {\n\t\t\t\tfinal double spread = (maxes[i] - mins[i]) / 10;\n\t\t\t\tpreState[i] = RandomUtils.randBetween(mins[i] - spread, maxes[i] + spread);\t\n\t\t\t}\n\t\t\tdouble[] inNN = stateTranslator.toNN(preState);\n\t\t\tdouble[] action = RandomUtils.randomOf(actions);\n\t\t\tmodeler.observePreState(inNN);\n\t\t\tmodeler.observeAction(action);\n\t\t\t\n\t\t\tdouble[] postState = new double[mins.length];\n\t\t\tdouble act = Math.random() < 0.99 ? action[0] - action[1] : (2*Math.round(Math.random())-1);\n\t\t\tdouble r = act/100;\n\t\t\tfor (int i = 0; i < postState.length; i++) {\n\t\t\t\tpostState[i] = preState[i] * Math.exp(Math.signum(preState[i]) * (i == 0 ? r : -r));\n\t\t\t} // act0 moves state[0] up and state[1] down, act1 moves state[0] down and state[1] up\n\t\t\ttmpCorrel.add(new double[] {act, postState[0] - preState[0]});\n\t\t\tmodeler.observePostState(stateTranslator.toNN(postState));\n\t\t\tmodeler.saveMemory();\n\t\t}\n\t\tmodeler.learnFromMemory(1.5, 0.5, 0, false, 1000, 0.0003); // IT SEEMS CONFIDENCE IS NOT RELIABLE INDICATOR\n//\t\tfor (double[] dd : tmpCorrel) {\n//\t\t\tString s = \"\"; for (double d : dd) s += d + \"\t\";\n//\t\t\tSystem.out.println(s);\n//\t\t}\n\t\tfor (int i = 0; i < 10; i++) System.out.println(\"*********\");\n\t\tSystem.out.println(modeler.getModelVTA().getConfidenceEstimate());\n//\t\tmodeler.testit(1000, mins, maxes, stateTranslator, actTranslator, actions, NN_FORM);\n\t\t\n\t\tfor (int t = 0; t < 500; t++) {\n\t\t\tfinal double[] state = new double[mins.length];\n\t\t\tfor (int i = 0; i < state.length; i++) state[i] = RandomUtils.randBetween(mins[i], maxes[i]);\n\t\t\tString s = \"\";\n\t\t\tfor (double d : state) s += d + \"\t\";\n\t\t\tfor (double[] act : actions) {\n\t\t\t\tdouble[] foresight = Foresight.montecarlo(modeler, stateTranslator.toNN(state), act, 1, 100, 30);\n\t\t\t\tdouble[] postV = stateTranslator.fromNN(foresight);\n\t\t\t\ts += \"act:\" + actTranslator.fromNN(act) + \":\t\";\n\t\t\t\tfor (double d : postV) s += Utils.round(d * 100, 2) + \"\t\";\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "protected void collideOne(Mob m1, Entity m2, int dir) {\r\n // Calibrate bounding box\r\n float[] a = new float[6];\r\n a[0] = m1.getPos().x + m1.getDX() - m1.getLenX()/2;\r\n a[1] = m1.getPos().y + m1.getDY() - m1.getLenY()/2;\r\n a[2] = m1.getPos().z + m1.getDZ() - m1.getLenZ()/2;\r\n a[3] = m1.getPos().x + m1.getDX() + m1.getLenX()/2;\r\n a[4] = m1.getPos().y + m1.getDY() + m1.getLenY()/2;\r\n a[5] = m1.getPos().z + m1.getDZ() + m1.getLenZ()/2;\r\n float[] b = new float[6];\r\n b[0] = m2.getPos().x - m2.getLenX()/2;\r\n b[1] = m2.getPos().y - m2.getLenY()/2;\r\n b[2] = m2.getPos().z - m2.getLenZ()/2;\r\n b[3] = m2.getPos().x + m2.getLenX()/2;\r\n b[4] = m2.getPos().y + m2.getLenY()/2;\r\n b[5] = m2.getPos().z + m2.getLenZ()/2;\r\n // Collision detection\r\n boolean collide =\r\n overlap(a, b) || overlap(b, a);\r\n ;\r\n // Post-Collision adjustments\r\n if(collide) {\r\n if(dir == 3) {\r\n m1.setDX(m1.getDX() + (b[3] - a[0]) + 0.01f);\r\n } else if(dir == 1) {\r\n m1.setDX(m1.getDX() - (a[3] - b[0]) - 0.01f);\r\n } else if(dir == 0) {\r\n m1.setDZ(m1.getDZ() + (b[5] - a[2]) + 0.01f);\r\n } else if(dir == 2) {\r\n m1.setDZ(m1.getDZ() - (a[5] - b[2]) - 0.01f);\r\n }\r\n }\r\n }", "private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n getFinalTasksWithoutParticipant(source,\n ((ChoreographyNodeAdaptor) target).getActiveParticipant());\n if (!nodesWithoutParticipation.isEmpty()) {\n validator.addMessage(\n \"initiatorOfChoreographyActivityNotParticipantInPriorActivity\",\n target, nodesWithoutParticipation);\n }\n }\n }", "void collision(float x_a,float y_a,float x_b,float y_b){\n float dy = y_a - y_b;\r\n float dx = x_a - x_b;\r\n float distance12 = dy * dy + dx * dx;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ((GameActivity)mActivity).mTimer.cancel();\r\n ((GameActivity)mActivity).layout.removeAllViews();\r\n new AlartMessage(mActivity);\r\n }\r\n\r\n }", "private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }", "public void testMissingRouteAfterMerge() throws Exception {\n a=createNode(LON, \"A\", LON_CLUSTER, null);\n b=createNode(LON, \"B\", LON_CLUSTER, null);\n Util.waitUntilAllChannelsHaveSameView(30000, 1000, a, b);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, null);\n assert x.getView().size() == 1;\n\n RELAY2 ar=a.getProtocolStack().findProtocol(RELAY2.class),\n xr=x.getProtocolStack().findProtocol(RELAY2.class);\n\n assert ar != null && xr != null;\n\n JChannel a_bridge=null, x_bridge=null;\n for(int i=0; i < 20; i++) {\n a_bridge=ar.getBridge(SFO);\n x_bridge=xr.getBridge(LON);\n if(a_bridge != null && x_bridge != null && a_bridge.getView().size() == 2 && x_bridge.getView().size() == 2)\n break;\n Util.sleep(500);\n }\n\n assert a_bridge != null && x_bridge != null;\n\n System.out.println(\"A's bridge channel: \" + a_bridge.getView());\n System.out.println(\"X's bridge channel: \" + x_bridge.getView());\n assert a_bridge.getView().size() == 2 : \"bridge view is \" + a_bridge.getView();\n assert x_bridge.getView().size() == 2 : \"bridge view is \" + x_bridge.getView();\n\n Route route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n // Now inject a partition into site LON\n System.out.println(\"Creating partition between A and B:\");\n createPartition(a, b);\n\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n assert a.getView().size() == 1 && b.getView().size() == 1;\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n View bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n System.out.println(\"bridge_view = \" + bridge_view);\n\n // Now make A and B form a cluster again:\n View merge_view=new MergeView(a.getAddress(), 10, Arrays.asList(a.getAddress(), b.getAddress()),\n Arrays.asList(View.create(a.getAddress(), 5, a.getAddress()),\n View.create(b.getAddress(), 5, b.getAddress())));\n GMS gms=a.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n gms=b.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n\n Util.waitUntilAllChannelsHaveSameView(20000, 500, a, b);\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n\n for(int i=0; i < 20; i++) {\n bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n if(bridge_view != null && bridge_view.size() == 2)\n break;\n Util.sleep(500);\n }\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n }", "public void move() {\n boolean changeDirection = true;\r\n if (y + y1 < 0) { // We want to change the direction if the ball hits the upper border\r\n y1 = game.speed;\r\n }else if (y + y1 > game.getHeight() - DIAMETER) { // we want to change the direction if the ball hits the lower border\r\n y1 = -game.speed;\r\n }else if (x + x1 < 0) { // Checks if the ball hits the left or right border. If it does, the round ends\r\n score2++;\r\n game.player2Score = score2;\r\n x1 = game.speed;\r\n }else if (x + x1 > game.getWidth() - DIAMETER) {\r\n score1++;\r\n game.player1Score = score1;\r\n x1 = -game.speed;\r\n }else if (collision1()) { // checks if our ball collides with our first racket\r\n x1 = -game.speed;\r\n// y = game.racket1.getTopY() - DIAMETER;\r\n game.speed++;\r\n }else if (collision2()) { // checks if our ball collides with our second racket\r\n x1 = game.speed + 1;\r\n// y = game.racket2.getTopY() + DIAMETER;\r\n// game.speed++;\r\n }else { // if neither of the borders nor the rackets are hit, we don't change our direction of the ball\r\n changeDirection = false;\r\n }\r\n if (changeDirection) { // if the ball hits the border or the racket, the sound of collision is going to play.\r\n Sound.BALL.play();\r\n }\r\n\r\n if (score1 == 3 || score2 == 3) {\r\n game.gameOver(\" Wins!\");\r\n }\r\n x += x1; // helps in moving our ball in x-axis\r\n y += y1; // helps in moving our ball in y-axis\r\n }", "private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Bag b1, Automaton.Bag b2) {\n\t\tint b1_size = b1.size();\n\t\tint b2_size = b2.size();\n\n\t\tif (b1_size != b2_size) {\n\t\t\t// Observe that, unlike a set, the size of a bag will never be\n\t\t\t// changed by the identification of equivalent states. Therefore,\n\t\t\t// the size of both collection must be identical, otherwise they can\n\t\t\t// never be equivalent.\n\t\t\treturn false;\n\t\t}\n\n\t\tint[] b1_children = b1.children;\n\t\tint[] b2_children = b2.children;\n\t\t// maps vertices in b2 to those they are matched against in b1\n\t\tint[] matches = new int[b1_size];\n\t\tArrays.fill(matches, -1);\n\t\t// Used to ensure no vertex is explored more than once during\n\t\t// reconfiguration.\n\t\tboolean[] visited = new boolean[b1_size];\n\t\t\n\t\t// For every state in s1\n\t\tfor (int i = 0; i != b1_size; ++i) {\n\t\t\tint b1_child = b1_children[i];\n\t\t\tif(b1_child < 0) {\n\t\t\t\t// In this case, we have to do something different.\n\t\t\t\tif(!findNegativeMatch(i,b1_children,b2_children,equivs,matches)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tArrays.fill(visited,false);\n\t\t\t\tif(!findMatch(i,b1_children,b2_children,equivs,matches,visited)) {\n\t\t\t\t\t// If we can't find a match, then it's game over and we know for\n\t\t\t\t\t// sure these two states are not equivalent.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void paddleCollision(Paddle myPaddle, Ball ball, Ball secondBall) {\n this.getMyImageView().setVisible(false);\n this.setX(1000);\n }", "@Test\r\n\tpublic void emptyOneSideEndsGame() {\r\n\t\tBowl bowl = setupGame(new Bowl());\r\n\t\tvar player = new Player();\r\n\t\tvar answer = bowl.gameEndCheck();\r\n\t\tassertEquals(false,answer);\r\n\t\tbowl.getNeighbor(5).playTurn(player);\r\n\t\tanswer = bowl.getNeighbor(6).gameEndCheck();\r\n\t\tassertEquals(true,answer);\r\n\t}", "private void phaseOne(){\r\n\r\n\t\twhile (allNodes.size() < endSize){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//Pick a random node from allNodes\r\n\t\t\t\tint idx = random.nextInt(allNodes.size());\r\n\t\t\t\tNode node = allNodes.get(idx);\r\n\r\n\t\t\t\t//Get all relationships of node\t\t\t\t\r\n\t\t\t\tIterable<Relationship> ite = node.getRelationships(Direction.BOTH);\r\n\t\t\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\r\n\t\t\t\t//Pick one of the relationships uniformly at random.\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\ttempRels.add(rel);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tidx = random.nextInt(tempRels.size());\r\n\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\tNode neighbour = rel.getOtherNode(node);\r\n\r\n\t\t\t\t//Add the neighbour to allNodes\r\n\t\t\t\tif (!allNodes.contains(neighbour)){\r\n\t\t\t\t\tallNodes.add(neighbour);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.success();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If reached here, then phase one completed successfully.\r\n\t\treturn;\r\n\t}", "public int dropBalls(){\r\n if(balls>0){\r\n balls--;\r\n }\r\n return getBalls();\r\n }", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "public void moveRobber(Tile t){\r\n for(Tile tile: tiles){\r\n tile.setRobber(false);\r\n }\r\n t.setRobber(true);\r\n }", "private void ruleR2(Node a, Node b, Node c, Graph graph) {\n if (!graph.isAdjacentTo(a, c)) {\n return;\n }\n\n if (graph.getEndpoint(b, a) == Endpoint.TAIL && graph.getEndpoint(a, b) == Endpoint.ARROW\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n } else if (graph.getEndpoint(a, b) == Endpoint.ARROW && graph.getEndpoint(c, b) == Endpoint.TAIL\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE\n ) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n }\n }", "public boolean bounceBall(Ball ball) {\r\n\t\t\r\n\t\tint radius= ball.getRadius(), fullRound= 360;\r\n\t\t\r\n\t\tif ((ball.getX()>topX-radius && ball.getX()< topX+width+radius)// in X radius\r\n\t\t\t\t&& ball.getY()>= topY-radius && ball.getY()< topY){// in Y radius\r\n\t\t\tball.setDirection(fullRound-ball.getDirection());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public void collisionPhsysics (Body otherBody) {\n if (this.mass <= otherBody.mass) {\n this.merged = true;\n otherBody.mass += this.mass;\n this.x = 0;\n this.y = 0;\n this.temp_x = 0;\n this.temp_y = 0;\n }\n else {\n otherBody.merged = true;\n this.mass += otherBody.mass;\n otherBody.x = 0;\n otherBody.y = 0;\n otherBody.temp_x = 0;\n otherBody.temp_y = 0;\n }\n\n // momentum transfer\n if (this.mass <= otherBody.mass) {\n otherBody.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n otherBody.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n else {\n this.vx = (this.mass*this.vx + otherBody.mass*otherBody.vx)/(this.mass + otherBody.mass);\n this.vy = (this.mass*this.vy + otherBody.mass*otherBody.vy)/(this.mass + otherBody.mass);\n }\n\n\n }", "public boolean isBlocked(java.util.List<Ball> myObjects)\n {\n boolean _isBlocked = false;\n for(Ball that : myObjects)\n {\n // beruehrt eines der Objekte das OutputHole\n if(this.touches(that))\n {\n // WENN ja DANN ist OutPutHole blockiert\n _isBlocked = _isBlocked || true;\n }\n }\n\n return _isBlocked;\n }", "Cone orderCone(Flavor[]balls) {\n\t \n }", "public void ride(Bicycle bicycle){\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.brake();\n\n }", "public void intersections(){\n\n \tif (ball.intersect(paddle.getX(), paddle.getY(), paddle.getWidth(), paddle.getHeight())){\n\t\t\tball.bouncePaddle(paddle.getX(),paddle.getY(),paddle.getWidth(),paddle.getHeight());\n\t\t}\n\n\t\t//WHEN POWERUP HITS PADDLE\n\n\t\tfor (int i = 0; i < powerups.size(); i++){\n\t\t\tif (paddle.intersect(powerups.get(i).getX(), powerups.get(i).getY(), powerups.get(i).getWidth(), powerups.get(i).getHeight())) {\n\t\t\t\tif (powerups.get(i).getType() != 4){\n\t\t\t\t\tpaddle.setType(powerups.get(i).getType());\n\t\t\t\t}else{\n\t\t\t\t\tball.setType(1);\n\t\t\t\t}\n\t\t\t\tpowerups.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t//WHEN LASER HITS BRICK\n\n\t\tfor (int i = 0; i < lasers.size() ; i++){\n\t\t\tfor (int j = 0; j < bricks.size(); j++){\n\n\t\t\t\tif (lasers.size() != 0 && lasers.get(i).intersect(bricks.get(j).getX(), bricks.get(j).getY(), bricks.get(j).getWidth(), bricks.get(j).getHeight())){\n\t\t\t\t\tbricks.get(j).hit(0);\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tif (i > 0){\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\n\t\t//BRICKS\n\t\tfor (int i = 0; i < bricks.size(); i++){\n\t\t\t//WHEN BALL HITS BRICK\n\t\t\tif (ball.intersect(bricks.get(i).getX(), bricks.get(i).getY(), bricks.get(i).getWidth(), bricks.get(i).getHeight())){\n\t\t\t\t\n\t\t\t\tball.bounceBrick(ball.hitOnSide(bricks.get(i).getX(), bricks.get(i).getY(), bricks.get(i).getWidth(), bricks.get(i).getHeight()));\n\t\t\t\tball.move();\n\n\n\t\t\t\tbricks.get(i).hit(ball.getType());\n\t\t\t\tif (ball.getType() == 1){\n\t\t\t\t\tfor (int j = 0; j < bricks.size(); j++){\n\t\t\t\t\t\tif (bricks.get(j).getX() > ball.getX()-50 && bricks.get(j).getX() < ball.getX()+50){\n\t\t\t\t\t\t\tif (bricks.get(j).getY() > ball.getY()-75 && bricks.get(j).getY() < ball.getY()+75){\n\t\t\t\t\t\t\t\tbricks.get(j).hit(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tball.setType(0);\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t//WHEN BRICK DIES\n\t\tfor (int i = bricks.size()-1; i>=0; i--){\n\t\t\tif (bricks.get(i).isDead()){\n\t\t\t\tif (bricks.get(i).spawnPowerup()){\n\t\t\t\t\tpowerups.add(new Powerup(bricks.get(i).getX(), bricks.get(i).getY(), paddle));\n\t\t\t\t}\n\t\t\t\tbricks.remove(i);\n\t\t\t}\n\t\t}\n\n }", "public void movement2()\n\t{\n\t\tballoon6Y = balloon6Y + speedBalloonY1;\n\t\tif(balloon6Y > 700)\n\t\t{\n\t\t\tballoon6Y = -100;\n\t\t\tballoon6X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon7Y = balloon7Y + speedBalloonY2;\n\t\tif(balloon7Y > 700)\n\t\t{\n\t\t\tballoon7Y = -100;\n\t\t\tballoon7X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon8Y = balloon8Y + speedBalloonY3;\n\t\tif(balloon8Y > 700)\n\t\t{\n\t\t\tballoon8Y = -100;\n\t\t\tballoon8X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon9Y = balloon9Y + speedBalloonY4;\n\t\tif(balloon9Y > 700)\n\t\t{\n\t\t\tballoon9Y = -100;\n\t\t\tballoon9X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon10Y = balloon10Y + speedBalloonY5;\n\t\tif(balloon10Y > 700)\n\t\t{\n\t\t\tballoon10Y = -100;\n\t\t\tballoon10X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "public void buyFarm(){\n bought = !bought;\n }", "public abstract void turnToDead(int x, int y);", "public Bond(IAtom atom1, IAtom atom2, Order order) {\n this(atom1, atom2, order, CDKConstants.STEREO_BOND_NONE);\n }", "@SubL(source = \"cycl/inference/harness/inference-balanced-tactician-motivation.lisp\", position = 74034) \n public static final SubLObject balanced_strategy_early_removal_linkP(SubLObject strategy, SubLObject link) {\n checkType(strategy, $sym8$BALANCED_STRATEGY_P);\n checkType(link, $sym49$PROBLEM_LINK_P);\n return makeBoolean(((NIL != inference_worker_join_ordered.join_ordered_link_p(link))\n && (NIL != inference_datastructures_problem_link.problem_link_openP(link))\n && (NIL != inference_balanced_tactician_datastructures.balanced_strategy_connected_conjunction_link_motivated_wrt_removalP(strategy, link))\n && (NIL != inference_balanced_tactician_datastructures.balanced_strategy_problem_motivated_wrt_new_rootP(strategy, inference_datastructures_problem_link.problem_link_supported_problem(link)))\n && ($kw34$COMPLETE == inference_worker.problem_generalized_removal_completeness(inference_worker_join_ordered.join_ordered_tactic_lookahead_problem(inference_worker_join_ordered.join_ordered_link_tactic(link)), strategy))\n && (NIL != Errors\n\t\t\t\t.handleMissingMethodError(\"This call was replaced for LarKC purposes. Originally a method was called. Refer to number 35448\"))));\n }", "private void awayFromAncestor(Graph graph, Node a, Node b, Node c) {\n if ((graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, c) == Endpoint.CIRCLE)) {\n\n if ((graph.getEndpoint(a, b) == Endpoint.ARROW) &&\n (graph.getEndpoint(b, c) == Endpoint.ARROW) && (\n (graph.getEndpoint(b, a) == Endpoint.TAIL) ||\n (graph.getEndpoint(c, b) == Endpoint.TAIL))) {\n\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n changeFlag = true;\n }\n }\n }" ]
[ "0.59282976", "0.5520275", "0.54752487", "0.53851306", "0.5360604", "0.5354916", "0.5197685", "0.51437527", "0.50427437", "0.5027169", "0.5017111", "0.5017111", "0.50161153", "0.50120085", "0.50029033", "0.49532577", "0.4950235", "0.49402878", "0.49066958", "0.4896953", "0.48796746", "0.48718378", "0.48684528", "0.4849584", "0.4847151", "0.48383638", "0.48374933", "0.4831214", "0.48152068", "0.48041034", "0.47982758", "0.4795045", "0.4790967", "0.4790792", "0.47839287", "0.4783927", "0.47796607", "0.47732982", "0.4768944", "0.47671327", "0.4749889", "0.4749878", "0.47254562", "0.47205225", "0.47176456", "0.47169486", "0.47124764", "0.47044402", "0.4698509", "0.46854264", "0.4681872", "0.46796", "0.46761793", "0.46734738", "0.46666354", "0.4659419", "0.4652995", "0.46526092", "0.46472335", "0.46339032", "0.46338624", "0.46333727", "0.46329257", "0.46307757", "0.46302292", "0.4620715", "0.46202874", "0.46195742", "0.46185586", "0.46178493", "0.4617379", "0.4611677", "0.4608174", "0.46081233", "0.4605712", "0.45953026", "0.45952642", "0.45897216", "0.4586292", "0.4576149", "0.45756227", "0.45633706", "0.4556328", "0.45528412", "0.4543447", "0.45416784", "0.45349938", "0.45344403", "0.45329145", "0.4526716", "0.4526439", "0.4526133", "0.4526035", "0.45239985", "0.45217183", "0.45129457", "0.45125097", "0.45115706", "0.45100823", "0.45087186" ]
0.52527493
6
Performs a directed interaction between the context ball and the target Ball from the perspective of the context Ball.
public void interact(Ball context, Ball target, IDispatcher<IBallCmd> disp, Boolean interactFirst);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public void receiveBall(BallControl iBall) {\r\n ball = iBall;\r\n ball.assignEnemy((Enemy)spatial);\r\n }", "@Override\n public void collision(Ball ball) {\n if (!(this.collideLine.size() == 0)){\n ball.setVelocity(Geometry.reflectWall(this.collideLine.get(0), ball.getVelocity()));\n //if ball collides with corner, reflect off circle\n }else if (!(this.collideCirc.size() == 0)){\n ball.setVelocity(Geometry.reflectCircle(this.collideCirc.get(0).getCenter(), ball.getPosition(), ball.getVelocity()));\n }\n\n this.trigger();\n\n }", "public void bounce(Ball ball) {\n\t\tPoint location = ball.getLocation();\n\t\tPoint velocity = ball.getVelocity();\n\t\tint radius = ball.getRadius();\n\n\t\tif (location.x < 0) {\n\t\t\tlocation.x = -location.x;\n\t\t\tvelocity.x = -velocity.x;\n\t\t}\n\n\t\tif (location.x + 1 * radius > BallWorldModel.returnBounds().width) {\n\t\t\tlocation.x = BallWorldModel.returnBounds().width * 2 - location.x - 2 * radius;\n\t\t\tvelocity.x = -velocity.x;\n\n\t\t}\n\t\tif (location.y < 0) {\n\t\t\tlocation.y = -location.y;\n\t\t\tvelocity.y = -velocity.y;\n\t\t}\n\t\tif (location.y + 1 * radius > BallWorldModel.returnBounds().height) {\n\t\t\tlocation.y = BallWorldModel.returnBounds().height * 2 - location.y - 2 * radius;\n\t\t\tvelocity.y = -velocity.y;\n\n\t\t}\n\t}", "public interface IInteractStrategy {\n\n\t/**\n\t * Performs a directed interaction between the context ball and the target Ball from the perspective of the context Ball.\n\t * @param context The Ball from whose perspective the interaction processing takes place.\n\t * @param target The Ball that is the \"other ball\" in the perspective of this processing.\n\t * @param disp The Dispatcher that is to be used if desired.\n\t * @param interactFirst A boolean denoting whether this is the first in a series (usually two) of interactions.\n\t */\n\tpublic void interact(Ball context, Ball target, IDispatcher<IBallCmd> disp, Boolean interactFirst);\n\n\t/**\n\t * Null strategy with no-op behavior. \n\t * NOTE: We can use a lambda here instead of an anonymous inner class because IInteractStrategy is a functional interface (only has one\n\t * abstract method).\n\t */\n\tpublic static final IInteractStrategy NULL = (context, target, disp, isSource) -> {};\n\t\n}", "public void moveBall()\n\t{\n\t\tx -= vx;\n\t\ty += vy;\n\t}", "public void act() \n {\n // need to explicitly cast as the World subclass (i.e., Game)\n playField = (Game)getWorld();\n \n // behavior depends on the game status\n if ( playField.getGameStatus() == Status.NOT_PLAYING )\n {\n // don't do anything\n }\n else if ( playField.getGameStatus() == Status.PLAYING )\n {\n move();\n \n /* \n * Check for intersection with the player's paddle \n */\n Paddle possiblePaddle = (Paddle)( getOneObjectAtOffset(-4,0,Paddle.class) );\n if ( possiblePaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possiblePaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possiblePaddle.getExactY()-32.0);\n int returnAngle = (int)( 315.0 + (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /* \n * Check for intersection with the CPU paddle \n */\n CPUPaddle possibleCPUPaddle = (CPUPaddle)( getOneObjectAtOffset(+4,0,CPUPaddle.class) );\n if ( possibleCPUPaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possibleCPUPaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possibleCPUPaddle.getExactY()-32.0);\n int returnAngle = (int)( 225.0 - (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /*\n * If the ball hits the boundary, simply have it reflect off the \n * surface in the opposite Y direction \n */\n Boundary possibleTopBoundary = (Boundary)( getOneObjectAtOffset(0,-4,Boundary.class) );\n Boundary possibleBottomBoundary = (Boundary)( getOneObjectAtOffset(0,4,Boundary.class) );\n if ( possibleTopBoundary != null || possibleBottomBoundary != null )\n {\n getMovement().revertVertical();\n playField.playLowBlip();\n } // end if \n \n // check if the ball has passed the player's paddle\n if ( getExactX() <= 0 )\n {\n playField.updateScore( PLAYER_TWO );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n // check if the ball has passed the CPU's paddle\n if ( getExactX() >= playField.GAME_WIDTH )\n {\n playField.updateScore( PLAYER_ONE );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n } \n else if ( playField.getGameStatus() == Status.GAME_OVER )\n {\n playField.removeObject( this );\n } // end multiway if/else\n \n }", "public void goTo(Ball ball, boolean facingForward) {\n \tthis.goTo(ball.getPosition(), facingForward);\n }", "abstract public void performCollision(Ball ball);", "@EventHandler\n public void ballInteractEvent(BallInteractEvent event) {\n final Game game;\n if ((game = this.controller.getGameFromBall(event.getBall())) != null) {\n final GameEntity entity = (GameEntity) game;\n if (entity.ballPreviousCacheLocation != null && entity.ballPreviousCacheLocation.distance(event.getBall().getLocation().toVector()) < 2) {\n entity.ballCornerBumper++;\n } else {\n entity.ballCornerBumper = 0;\n }\n if (entity.ballCornerBumper >= 3) {\n final Vector direction = entity.arena.getBallSpawnLocation().toVector().subtract(event.getBall().getLocation().toVector());\n int x = 1;\n int z = 1;\n if (direction.getX() < 0)\n x = -1;\n if (direction.getZ() < 0)\n z = -1;\n event.getBall().teleport(new Location(event.getBall().getLocation().getWorld(), event.getBall().getLocation().getX() + x, event.getBall().getLocation().getY(), event.getBall().getLocation().getZ() + z));\n entity.ballCornerBumper = 0;\n }\n entity.ballPreviousCacheLocation = event.getBall().getLocation().toVector();\n if (entity.blueTeam.contains(event.getPlayer())) {\n entity.lastHitTeam = Team.BLUE;\n } else {\n entity.lastHitTeam = Team.RED;\n }\n entity.lastHit = event.getPlayer();\n }\n }", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public BouncingBall()\n {\n ballCanvas = new BallPanel( this ); // create new BallPanel\n add( ballCanvas ); // add BallPanel to JFrame\n\n pack(); // make window just large enough for its GUI\n setVisible( true ); // show window\n }", "public void attachBall(ppBall myBall) {\n this.myBall = myBall;\n }", "void hitBall() {\n \n System.out.println(this.golfBall.vel_vector.x + \",\"\n + this.golfBall.vel_vector.y + \",\"\n + this.golfBall.acc_vector.x + \",\"\n + this.golfBall.acc_vector.y);\n \n if (this.golfBall.stopped) {\n new Sound(\"resources/hit.wav\").play();\n this.golfBall.stopped = false;\n this.golfBall.acc(this.strokeAcc.x, this.strokeAcc.y);\n this.strokes += 1;\n }\n \n }", "private void goTo(double x, double y) \n\t{\n\t\t/* Transform our coordinates into a vector */\n\t\tx -= getX();\n\t\ty -= getY();\n\t \n\t\t/* Calculate the angle to the target position */\n\t\tdouble angleToTarget = Math.atan2(x, y);\n\t \n\t\t/* Calculate the turn required get there */\n\t\tdouble targetAngle = Utils.normalRelativeAngle(angleToTarget - getHeadingRadians());\n\t \n\t\t/* \n\t\t * The Java Hypot method is a quick way of getting the length\n\t\t * of a vector. Which in this case is also the distance between\n\t\t * our robot and the target location.\n\t\t */\n\t\tdouble distance = Math.hypot(x, y);\n\t \n\t\t/* This is a simple method of performing set front as back */\n\t\tdouble turnAngle = Math.atan(Math.tan(targetAngle));\n\t\tsetTurnRightRadians(turnAngle);\n\t\tif(targetAngle == turnAngle) {\n\t\t\tsetAhead(distance);\n\t\t} else {\n\t\t\tsetBack(distance);\n\t\t}\n\t}", "public void setUpBall(){\n new OrangeBall().setUpOrangeBall();\n }", "public void activate() {\n rBody.activate();\n }", "private void moveBall() {\n\t\tball.move(vx,vy);\n\t\tpause(10);\t\n\t\t\n\t}", "public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }", "public void applyStrategy(){\n\t\tfloat dx, dy;\n\t\t\n\t\tdx = targetCar.getX() - myCar.getX();\n\t\tdy = targetCar.getY() - myCar.getY();\n\t\t\n\t\t// awesome, atan2 handles all the hard parts of arctan calculations\n\t\tint angle = (int)Math.toDegrees( Math.atan2(dx, dy) );\n\t\tmyCar.setHeading( angle );\n\t}", "protected void moveAllBendpoints(IMoveShapeContext context) {\n \n \t\tif (!(context.getShape() instanceof ContainerShape)) {\n \t\t\treturn;\n \t\t}\n \n \t\tContainerShape shapeToMove = (ContainerShape) context.getShape();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t\tint deltaX = x - shapeToMove.getGraphicsAlgorithm().getX();\n \t\tint deltaY = y - shapeToMove.getGraphicsAlgorithm().getY();\n \n \t\tif (deltaX != 0 || deltaY != 0) {\n \n \t\t\tList<Anchor> anchorsFrom = getAnchors(shapeToMove);\n \t\t\tList<Anchor> anchorsTo = new ArrayList<Anchor>(anchorsFrom);\n \n \t\t\tfor (Anchor anchorFrom : anchorsFrom) {\n \n \t\t\t\tCollection<Connection> outgoingConnections = anchorFrom.getOutgoingConnections();\n \n \t\t\t\tfor (Connection connection : outgoingConnections) {\n \t\t\t\t\tfor (Anchor anchorTo : anchorsTo) {\n \n \t\t\t\t\t\tCollection<Connection> incomingConnections = anchorTo.getIncomingConnections();\n \t\t\t\t\t\tif (incomingConnections.contains(connection)) {\n \t\t\t\t\t\t\tif (connection instanceof FreeFormConnection) {\n \t\t\t\t\t\t\t\tFreeFormConnection ffc = (FreeFormConnection) connection;\n \t\t\t\t\t\t\t\tList<Point> points = ffc.getBendpoints();\n \t\t\t\t\t\t\t\tfor (int i = 0; i < points.size(); i++) {\n \t\t\t\t\t\t\t\t\tPoint point = points.get(i);\n \t\t\t\t\t\t\t\t\tint oldX = point.getX();\n \t\t\t\t\t\t\t\t\tint oldY = point.getY();\n \t\t\t\t\t\t\t\t\tpoints.set(i, Graphiti.getGaService().createPoint(oldX + deltaX, oldY + deltaY));\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void createBall(GL2 gl)\n\t{\n\t\tif(!change)\n\t\t{\n\t\t\tif(shape2)\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255 - (13 * hitCount));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\t}\n\t\t\t\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\tcurrentPoint.setLocation(640, 360);\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t\tchange = false;\n\t\t\thitCount = 0;\n\t\t}\n\t}", "private void translate(Ball ball, double timeDelta) {\n\n /*\n * The point of indexing into the arrays rather than, for example, using\n * Ball ball=this.getBallWithMinCollisionTime(ball, timeDelta) is that\n * we want the elements of the array to mutate if need be.\n */\n int gadgetIndex = this.getGadgetWithMinCollisionTime(ball, timeDelta);\n int ballIndex = this.getBallWithMinCollisionTime(ball, timeDelta);\n // If any gadgets are triggered, they will be kept track of with this\n // and then their actions called.\n Gadget[] triggeredGadgets = new Gadget[] {};\n // If the ball won't collide with a Gadget within timeDelta.\n if (gadgetIndex == this.gadgets.length) {\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, timeDelta);\n }\n // If the ball will collide with a Ball within timeDelta.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n // If the ball will possibly collide with a Gadget within timeDelta.\n else {\n double gadgetTime = this.gadgets[gadgetIndex].getMinCollisionTime(ball);\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, gadgetTime);\n Vect priorVel=ball.getVelocity();\n this.gadgets[gadgetIndex].interactWithBall(ball);\n Vect afterVel =ball.getVelocity();\n if (afterVel.equals(priorVel)){\n throw new RuntimeErrorException(null, \"interaction failed\");\n }\n\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n }\n // If the ball will possibly collide with both a ball and a Gadget.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n\n // For now avoiding the case that a ball will hit a ball and\n // gadget at the same time.\n if (gadgetTime < ballTime) {\n\n this.moveWithoutCollision(ball, gadgetTime);\n this.gadgets[gadgetIndex].interactWithBall(ball);\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n } else {\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n }\n if (triggeredGadgets.length != 0) {\n\n this.triggerGadgets(triggeredGadgets);\n }\n // If the ball isn't done moving, make sure it keeps moving\n if (!Util.doublesAreEqual(ball.getTime(), 0)) {\n this.translate(ball, ball.getTime());\n }\n }", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "public void attachToBody(Body body, float dx, float dy);", "@Override\n\tpublic void beginContact(Contact c) {\n\t\tGdx.app.log(\"contact listener\", c.getFixtureA().getBody().getUserData()+ \"\");\n\n\t\t\n\n\t\t\tfloat ballCenterY = c.getFixtureB().getBody()\n\t\t\t\t\t.getWorldCenter().y;\n\t\t\tfloat paddleCenterY = c.getFixtureA().getBody()\n\t\t\t\t\t.getWorldCenter().y;\n\t\t\tfloat difference = ballCenterY - paddleCenterY;\n\t\t\tfloat position = difference / 50;\n\t\t\tfloat returnAngel = 70 * position;\n\t\t\t\n\t\t\t\n\t\t\tGdx.app.log(\"returnAngel\",returnAngel+\" lin vol \" + c.getFixtureB().getBody().getLinearVelocity().x +\",\"+c.getFixtureB().getBody().getLinearVelocity().y);\n\t\t\tfloat Xspeed = c.getFixtureB().getBody().getLinearVelocity().x;\t\n\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" ){\n\t\t\t\tif ( c.getFixtureA().getBody().getUserData() == \"paddle1\" || c.getFixtureA().getBody().getUserData() == \"paddle2\"){\n\t\t\t\tXspeed = Xspeed*-1;\n\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\tGdx.app.log(\"returnAngel after new set\",returnAngel+\" lin vol \" + c.getFixtureB().getBody().getLinearVelocity().x +\",\"+c.getFixtureB().getBody().getLinearVelocity().y + \" xSpeed = \"+Xspeed);\n\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"top\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tfloat angel = (180-90-returnAngel)*-1;\n\t\t\t\t\t\n\t\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\t\tGdx.app.log(\"top + ball hit\", \"angel = \" +angel);\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"buttom\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfloat angel = (180-90-returnAngel)*-1;\n\t\t\t\t\n\t\t\t\tc.getFixtureB().getBody().setLinearVelocity(new Vector2(Xspeed, returnAngel));\n\t\t\t\tGdx.app.log(\"top + ball hit\", \"angel = \" +angel);\n\t\t\t\t\n\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"left\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\thandler.setPlayer2ScorePlusOne();\n\t\t\t\tGdx.app.log(\"Score : \", \"player1 :\"+handler.getPlayer1Score()+ \" player2 :\"+handler.getPlayer2Score() );\n\t\t\t\thandler.resetVaribal = true;\n\t\t\t\t\n\t\t}\n\t\t\tif(c.getFixtureB().getBody().getUserData() == \"ball\" && c.getFixtureA().getBody().getUserData() == \"right\" ){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\thandler.setPlayer1ScorePlusOne();\n\t\t\t\tGdx.app.log(\"Score : \", \"player1 :\"+handler.getPlayer1Score()+ \" player2 :\"+handler.getPlayer2Score() );\n\t\t\t\thandler.resetVaribal = true;\n\t\t\t\t\n\t\t}\n\t\tif(c.getFixtureB().getUserData() == \"paddle1\" && c.getFixtureA().getUserData() == \"buttom\" || c.getFixtureA().getUserData() == \"top\" ){\n\t\t\t}\n\t\t\t\n\t}", "@Override\n public void doAction() {\n checkRep();\n if (!storedBalls.isEmpty()) {\n Ball ballToShootOut = storedBalls.remove();\n ballToShootOut.setVelocity(new Vect(0,STOREDBALLVELOCITY));\n ballToShootOut.setActive(true);\n }\n checkRep();\n }", "public void run ()\n\t{\n\t\tif (ballDetected())\n\t\t{\n\t\t\t//findColor();\n\t\t\t\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL\n\t\t\tmainRightMotor.rotate(-30,false);\n\t\t\t\n\t\t\t//turn and move forward to grab the ball\n\t\t\tmainLeftMotor.rotate(-90,true);\n\t\t\tmainRightMotor.rotate(90,false);\n\t\t\tmainLeftMotor.rotate(360, true);\n\t\t\tmainRightMotor.rotate(360,false);\n\t\t\t\n\t\t\t//V2.0 for BallGrab_V2.0\n\t\t\tmotorSetSpeeds(loweringSpeed,loweringSpeed);\n\t\t\tleftMotor.rotate(110,true);\n\t\t\trightMotor.rotate(110,false);\n\n\t\t\t//V1.0 for BallGrab_V1.0\n\t\t\tgrabMotor.setSpeed(speed);\n\t\t\tgrabMotor.rotate(50);\n\t\t\tgrabMotor.rotate(-45);\n\t\t\tgrabMotor.rotate(45);\n\t\t\t\n\t\t\t//hold the ball at a rather vertical angle\n\t\t\tmotorSetSpeeds(holdingSpeed,holdingSpeed);\n\t\t\tleftMotor.rotate(-11,true);\n\t\t\trightMotor.rotate(-110,false);\n\t\t\t\n\t\t}\n\t\t\n\t\t//use navigation class to navigate to the designated area, then shoot \n\t\t\n\t\t//V2.0 for BallGrab_V2.0\n/*\t\tleftMotor.setAcceleration(acceleration);\n\t\trightMotor.setAcceleration(acceleration);\n\t\tleftMotor.setSpeed(forwardSpeed);\n\t\trightMotor.setSpeed(forwardSpeed);*/\n\t\tgrabMotor.rotate(-10);\n\t}", "public void attachToBody(Body body, float offsetX, float offSetY, float degrees);", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "void addEventGoal(DefaultGoal goal, DefaultBall ball);", "public TurnToTarget() {\n forceDone = false;\n turnToTarget = new TurnToAngle(0);\n }", "public abstract void turnToLiving(int x, int y);", "private void makeBallsCollide(Ball ball1, Ball ball2) {\n Vect pos1 = new Vect(ball1.getPosition().d1, ball1.getPosition().d2);\n Vect pos2 = new Vect(ball2.getPosition().d1, ball2.getPosition().d2);\n Geometry.VectPair newVels = Geometry.reflectBalls(pos1, this.BALLMASS,\n ball1.getVelocity(), pos2, this.BALLMASS, ball2.getVelocity());\n ball1.setVelocity(newVels.v1);\n ball2.setVelocity(newVels.v2);\n }", "protected void FacetoTarget(Character pc, Object target) {\n int dx, dy;\n if (target instanceof Character) {\n dx = ((Character) target).x - pc.x;\n dy = ((Character) target).y - pc.y;\n } else if (target instanceof Envir_Item) {\n dx = ((Envir_Item) target).getX() - bottom_screen.left - pc.x;\n dy = ((Envir_Item) target).getY() - bottom_screen.top - pc.y;\n } else {\n return;\n }\n\n if (Math.abs(dx) >= Math.abs(dy)) {\n if (dx > 0) {\n pc.setDir(2);\n } else {\n pc.setDir(1);\n }\n } else {\n if (dy > 0) {\n pc.setDir(0);\n } else {\n pc.setDir(3);\n }\n }\n }", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "public void paddleVSball(Paddle p, Ball b) {\n Rectangle p_box = new Rectangle(p.getX(), p.getY(), p.getWidth(), p.getHeight());\r\n // System.out.println(\"X: \"+p.getX()+\"Y: \"+p.getY()+\"W: \"+p.getWidth()+\"H: \"+p.getHeight());\r\n Rectangle b_box = new Rectangle(b.getX(), b.getY(), b.getWidth(), b.getHeight());\r\n\r\n if (p_box.intersects(b_box)) {\r\n //collision\r\n //if ball is going +y and -x\r\n if (b.getVY() > 0 || b.getVY() < 0) {\r\n b.setVY(b.getVY() * -1);\r\n }\r\n if (b.getY() < p.getY()) {//if the ball is inside the paddle\r\n b.setVX(b.getVX() * -1);\r\n b.setVX(b.getVX() * -1);\r\n }\r\n }\r\n }", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "public void setBall(Ball b){\r\n\t\tthis.ball = b;\r\n\t}", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "@Override\n\tpublic void setup() {\n\t\tObjectSpace objectSpace = Blackboard.inst().getSpace(ObjectSpace.class, \"object\");\n\t\tList<PhysicsObject> objects = objectSpace.getCognitiveAgents();\n\n\t\tif (objects.size() != 2)\n\t\t\tthrow new RuntimeException(\"Need two agents in order to run PathScenario4!\");\n\t\t\n\t\t// first we determine the line between their two points.\n\t\tPhysicsObject obj1 = objects.get(0);\n\t\tPhysicsObject obj2 = objects.get(1);\n\t\t\t\t\n\t\tVec2 direction = obj1.getPPosition().sub(obj2.getPPosition());\n\t\tVec2 nDirection = new Vec2(direction);\n\t\tnDirection.normalize();\n\t\tfloat radians = (float) Math.atan2(nDirection.y, nDirection.x);\n\t\tfloat PI = (float) Math.PI;\n\t\tfloat PI2 = PI * 0.5f;\n\n\t\tfloat perp = radians + PI2;\n\t\tVec2 v = new Vec2((float) Math.cos(perp), (float) Math.sin(perp));\n\t\tVec2 offset1 = new Vec2(obj1.getPPosition().add(v));\n\n\t\tList<Vec2> waypoints1 = new ArrayList<Vec2>();\n\t\twaypoints1.add(obj2.getPPosition());\n\n\t\tList<Vec2> waypoints2 = new ArrayList<Vec2>();\n\t\twaypoints2.add(offset1);\n\t\t\n\t\t// Set positions and orientations\n\t\tobj1.getBody().setXForm(obj1.getPPosition(), radians + (float) Math.PI);\n\t\tobj2.getBody().setXForm(obj2.getPPosition(), radians);\n\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints1, obj1));\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints2, obj2));\n\t}", "public void draw(){\n hit();\n hit();\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public Ball(Binge game, int x, int y, int diameter){\n\t\tsuper(game,x,y);\n\t\tthis.xcenter = x + diameter/2;\n\t\tthis.ycenter = y + diameter/2;\n\t\tthis.diameter = diameter;\n\t\tthis.theball = new Ellipse2D.Double(x,y,diameter,diameter);\n\t}", "@Override\n public void doCommand(FrontEndTurtle frontEndTurtle) {\n frontEndTurtle.towards(x, y);\n }", "public void ballManagement(){\n\t\t\n//\t\tUpdates the Ball's X Position\n\t\tif (validBall.getxLoc() <0)\n\t\t\tvalidBall.setActiveBall(false);\n\t\telse\n\t\t\tvalidBall.updateBallXPos();\n\n//\t\tUpdates the Ball's Y Position\n\t\tif (validBall.getyLoc() > screenHeight)\n\t\t\tvalidBall.setActiveBall(false);\n\t\telse\n\t\t\tvalidBall.updateBallYPos();\n\t\t\n//\t\tUpdates the Ball Count of the Level\n\t\tupdateBallCount();\n\t\t\n//\t\tDraw the Ball on the Screen\n\t\tbatch.draw(validBall.getBallImage(), validBall.getxLoc(),validBall.getyLoc(), validBall.getBallImage().getWidth() * validBall.getBallScale(),validBall.getBallImage().getHeight() * validBall.getBallScale() );\n\t\t\n\t}", "@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}", "public void makeBall(TStrategyDropListItem strategySelectedItem,\n TPaintDropListItem paintSelectedItem);", "public void moveOneStep() {\n\n //computing the predicted trajectory\n Line trajectory = computeTrajectory();\n\n //checking the borders\n if (reachedBorder(trajectory)) {\n return;\n }\n\n //getting the closest collision info\n //CollisionInfo collisionInfo = this.gameEnvironment.getClosestCollision(trajectory);\n CollisionInfo collisionInfo = this.gameLevel.getEnvironment().getClosestCollision(trajectory);\n\n if (collisionInfo != null && collisionInfo.collisionObject() != null) {\n\n //changing the velocity according to the collision info (point, type of collidiable\n // and position on the collidable)\n Velocity newVelocity =\n collisionInfo.collisionObject().hit(this, collisionInfo.collisionPoint(), this.velocity);\n this.velocity = newVelocity;\n }\n\n //setting the next position of the center of the ball (new velocity after collision)\n this.center = this.getVelocity().applyToPoint(this.center);\n }", "private void updatePos() {\n var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D();\n var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D();\n var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY());\n var hookBallCenter = new Vector2(hookBallBounds.getCenterX(), hookBallBounds.getCenterY());\n fullDirection = hookBallCenter.subtracted(ballCenter);\n var oposDir = ballCenter.subtracted(hookBallCenter).normalized();\n oposDir.multiplyBy(hookBallBounds.getWidth() / 2);\n hookBallCenter.add(oposDir);\n direction = hookBallCenter.subtracted(ballCenter);\n getTransform().setPosition(ballCenter);\n getTransform().setRotation(GeometryHelper.vectorToAngle(hookBallCenter.subtracted(ballCenter)));\n getTransform().translate(0, -GameSettings.ROPE_HEIGHT / 2 - 1);\n }", "void executeMotion(Shape shape);", "@Override\n\tpublic void updateState(final Ball context, IDispatcher<TDispMsg> dispatcher) {\n\t\tPoint oldV = context.getVelocity();\n\t\toldV.x = Randomizer.singleton.randomInt(-50, 50);\n\t\toldV.y = Randomizer.singleton.randomInt(-50, 50);\n\t\tcontext.setVelocity(oldV);\n\t}", "public boolean bounceBall(Ball ball) {\r\n\t\t\r\n\t\tint radius= ball.getRadius(), fullRound= 360;\r\n\t\t\r\n\t\tif ((ball.getX()>topX-radius && ball.getX()< topX+width+radius)// in X radius\r\n\t\t\t\t&& ball.getY()>= topY-radius && ball.getY()< topY){// in Y radius\r\n\t\t\tball.setDirection(fullRound-ball.getDirection());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public BoxBall(int xPos, int yPos, int ballDiameter, Color ballColor,\n int groundPos1, int groundPos2, int groundPos3, int groundPos4, Canvas drawingCanvas)\n {\n xPosition = xPos; // Initial position\n yPosition = yPos; // Initial position\n color = ballColor;\n diameter = ballDiameter;\n groundPositionX1 = groundPos1;\n groundPositionY1 = groundPos2;\n groundPositionX2 = groundPos3;\n groundPositionY2 = groundPos4;\n canvas = drawingCanvas; \n \n Random aleatorio = new Random();\n int y = aleatorio.nextInt(2);\n if(y == 0){\n ySpeed = -ySpeed;\n }\n int x = aleatorio.nextInt(2);\n if(x == 0){\n xSpeed = -xSpeed;\n }\n }", "Ball(int x, int y, int dx, int dy){\n this.x = this.originalX = x;\n this.y = this.originalY = y;\n this.dx = this.originalDX = dx;\n this.dy = this.originalDY = dy;\n s = new ShapeRenderer();\n s.setColor(1,1,1,1);//white\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmotion.displace();\r\n\t\tmotion.circleIntersects();\r\n\t\t//check collision\r\n\t\tmotion.intersectBound();\r\n\t\trepaint(); // repaints this component\r\n\t}", "public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public Ball(int x, int y, int diameter)\n {\n currentBallX = x;\n currentBallY = y;\n this.diameter = diameter;\n }", "public void bounce(Paddle paddle) {\n if(hit(paddle)) {\n // ball to the right\n boolean right = paddle.getCenterX() < ball.getCenterX();\n\n if(Math.abs(paddle.getCenterY() - ball.getCenterY()) >= 8 || angle % Math.PI == 0) {\n angle = ((right ? 0 : Math.PI) - Math.atan((right ? 1 : -1) * (paddle.getCenterY() - ball.getCenterY()) / paddle.getWidth())) % (2 * Math.PI);\n } else {\n angle = Math.PI - angle;\n ball.setCenterX( paddle.getRectangle().getX() + (right ? (paddle.getWidth() + ball.getRadius()) : -ball.getRadius() ) );\n }\n\n setSpeed( Math.abs(paddle.getCenterY() - ball.getCenterY()) / 25 + 1);\n }\n }", "public void setBallTouched(Ball ball)\n {\n ballTouched = ball;\n }", "public abstract void collide(InteractiveObject obj);", "public void moveBallBy(int dx, int dy)\n {\n currentBallX+= dx;\n currentBallY+= dy;\n }", "@Override\n public void execute() {\n ballCount = conveyor.getBallCount();\n SmartDashboard.putNumber(\"Ball Count\", conveyor.getBallCount());\n if(ballCount == 4){\n complete = true;\n conveyor.setDone(complete);\n } else {\n complete = false;\n conveyor.setDone(complete);\n }\n SmartDashboard.putBoolean(\"Intake Complete?\", complete);\n \n //conveyor.rightWithSensor();\n if(ballCount == 0){ // right one\n conveyor.engageConveyor(false, 0.5);\n } else if(ballCount == 1) { // left one\n conveyor.engageConveyor(true, 0.5);\n stage2 = false;\n } else if(ballCount == 2 && !stage2){\n //System.out.println(\"Moving balls up\");\n conveyor.conveyorFeedTime();\n if(conveyor.doneBoolean()){\n //System.out.println(\"Ready for 3rd and 4th balls\");\n stage2 = true;\n }\n } else if(stage2 && ballCount == 2) {\n //System.out.println(\"3rd\");\n conveyor.engageConveyor(false, 0.375);\n } else if(ballCount == 3){\n conveyor.engageConveyor(true, 0.375);\n } else {\n conveyor.setConveyorMotors(0, 0, 0, 0);\n }\n \n }", "public static void main(String[] args) {\r\n int bound = 200;\r\n GUI gui = new GUI(\"Bouncing Ball Animation\", bound, bound);\r\n biuoop.Sleeper sleeper = new biuoop.Sleeper();\r\n Ball ball = new Ball(90, 0, 30, java.awt.Color.BLACK);\r\n Velocity velocity = Velocity.fromAngleAndSpeed(45, 10);\r\n ball.setVelocity(velocity);\r\n while (true) {\r\n ball.setBounds(bound, bound, 0, 0);\r\n ball.moveOneStep();\r\n DrawSurface d = gui.getDrawSurface();\r\n ball.drawOn(d);\r\n gui.show(d);\r\n sleeper.sleepFor(50); // wait for 50 milliseconds.\r\n }\r\n }", "public void updatePhysics() {\n ball.setLayoutX(ball.getLayoutX() + velX);\n ball.setLayoutY(ball.getLayoutY() - velY);\n\n velY += accelY;\n velX += accelX;\n }", "public void setTarget(Vector3f target) \n {\n float distance = FastMath.abs(target.y - this.getPosition().y);\n this.motionTarget = target;\n this.motionPath = new MotionPath();\n \n this.motionPath.addWayPoint(this.getPosition());\n\n this.motionPath.addWayPoint(new Vector3f(this.getPosition().x, target.y, this.getPosition().z));\n \n grabberMotion = new MotionEvent(this.node, this.motionPath);\n grabberMotion.setInitialDuration(distance / this.speed);\n }", "@Override\n\t\tpublic void handle(long arg0) {\n\t\t\t\n\t\t\tbtn.setOnAction(e ->{\n\t\t\t\t\n\t\t\t\t//System.out.println(ball.getCenterY());\n\t\t\t\t\n\t\t\t\tball.setCenterY(ball.getCenterY()-40);\n\t\t\t\t\n\t\t\t//\tSystem.out.println(\"clicked\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t});\n\t\t\t\t\n\t\t\t\n\t\t\t ball.setCenterY(ball.getCenterY()+2);\n\t\t\t \n\t\t\t //System.out.println(ball.getCenterY());\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "public void moveBall() {\n\t\tif (BrickPanel.getBrickCount() == -1) {\n\t\t\t\n \t\tcontrolPanel.resetGame();\n \t\tcontrolPanel.gameWonText();\n \t}\n\t\tif (BrickPanel.getBallShape().getY() >= 300) {\n\t\t\t \n\t\t\tcontrolPanel.resetGame();\n\t\t\t controlPanel.gameOverText();\n\t\t\t \n\t\t\t}\n\t\t//calls the moveBall method to move the ball\n\t\tBrickPanel.moveBall();\n\t}", "private GOval drawBall(){\n GOval ball = new GOval(getWidth() / 2.0 - BALL_RADIUS, getHeight() - PADDLE_Y_OFFSET - 2 * BALL_RADIUS,\n 2 * BALL_RADIUS, 2 * BALL_RADIUS);\n ball.setFilled(true);\n ball.setColor(Color.gray);\n add(ball);\n return ball;\n }", "public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // rec center \r\n float rec_center_X = this.p1[0]+extent_X;\r\n float rec_center_Y = this.p1[1]+extent_Y;\r\n \r\n // difference between center : vector D = Vector Cir_center-Rec-center\r\n float d_X =cir_center_X-rec_center_X;\r\n float d_Y = cir_center_Y-rec_center_Y;\r\n \r\n //\r\n float p_X =Support_Lib.clamp(d_X,-extent_X,extent_X);\r\n float p_Y =Support_Lib.clamp(d_Y,-extent_Y,extent_Y);\r\n \r\n\r\n \r\n float closest_point_X = rec_center_X +p_X;\r\n float closest_point_Y = rec_center_Y +p_Y; \r\n \r\n \r\n d_X = closest_point_X -cir_center_X;\r\n d_Y = closest_point_Y -cir_center_Y;\r\n \r\n \r\n \r\n float length = (float)Math.sqrt((d_X*d_X)+(d_Y*d_Y));\r\n \r\n if(length+0.001 <=b.getRadius()){\r\n\r\n \r\n float ratio =(closest_point_X-rec_center_X)/(extent_X*2);\r\n b.accelartion(ratio);\r\n b.updateVelocity(Support_Lib.direction(d_X,d_Y));\r\n \r\n }\r\n \r\n \r\n }", "Velocity hit(Ball hitter, Point collisionPoint,\r\n Velocity currentVelocity);", "@Override\n\tpublic void act(long now) {\n\n\t\tcheckIsFrogAtTheEdge();\n\t\t\tif (getIntersectingObjects(Car.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(Truck.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(LongTruck.class).size() >= 1)\n\t\t\t\t{\n\t\t\t\t\tintersectCar = true;\n\t\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Log.class).size() >= 1 && !death) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 6), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(LongLog.class).size() >= 1 && !death) {\n\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 8), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Turtle.class).size() >= 1) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t}\n\t\t\telse if (getIntersectingObjects(WetTurtle.class).size() >= 1){\n\t\t\t\tif (getIntersectingObjects(WetTurtle.class).get(0).isSunk()) {\n\t\t\t\t\tintersectWater = true;\n\t\t\t\t} else {\n\t\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t else if (getIntersectingObjects(End.class).size() >= 1) {\n\n\t\t\t\t\tIntersectEnd();\n\t\t\t\t}\n\n\t\t\telse if (getY() < waterPositionY) {\n\t\t\t\tintersectWater = true;\n\t\t\t}\n\t\t\tgetlives();\n\n\t\t\tCheckIntersect(intersectCar, intersectWater, now);\n\t\t}", "public void raycast(VrState state);", "public Ball(int x, int y, int radius, Color color, int xVelocity, int yVelocity, int xWall, int yWall){\n this.x=x;\n this.y=y;\n this.radius=radius;\n this.color=color;\n this.xVelocity=xVelocity;\n this.yVelocity=yVelocity;\n this.xWall=xWall;\n this.yWall=yWall;\n\n}", "public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }", "@Override\n public void run() {\n if (player.canKickBall(fsmAI.ball)) {\n player.stateMachine.changeState(new KickBall(player, fsmAI));\n return;\n }\n \n Player nearestToBall = fsmAI.myTeam.getNearestPlayerToBall();\n if (player != nearestToBall && !(nearestToBall instanceof GoalKeeper)) {\n player.stateMachine.changeState(new MoveToHomeRegion(player, fsmAI));\n MessageDispatcher.getInstance().sendMessage(new PursueBallMessage(), nearestToBall);\n }\n }", "private void update(Ball currBall){\n currBall.ovalX += currBall.speedX * TIME_STEP;\n currBall.ovalY += currBall.speedY * TIME_STEP;\n\n if (currBall.ovalX >= screenW - currBall.ovalD) { // Right penetration\n currBall.speedX = -currBall.speedX;\n currBall.ovalX = currBall.ovalX - 2 * ((currBall.ovalX + currBall.ovalD) - screenW);\n } else if (currBall.ovalX <= 0) { // Left penetration\n currBall.speedX = -currBall.speedX;\n currBall.ovalX = -currBall.ovalX;\n }\n if (currBall.ovalY >= screenH - currBall.ovalD) { // Bottom penetration\n currBall.speedY = -currBall.speedY;\n currBall.ovalY = currBall.ovalY - 2 * ((currBall.ovalY + currBall.ovalD) - screenH);\n } else if (currBall.ovalY <= 0) { // Top penetration\n currBall.speedY = -currBall.speedY;\n currBall.ovalY = -currBall.ovalY;\n }\n }", "public void interact(final GlobalObject object) {\r\n\t\tswitch(object.defs().getOptions()[0]) {\r\n\t\t\tcase \"Challenge\": // TODO\r\n\t\t\t\tplayer.sm(\"<col=ff0000>WARNING: \"+object.getName()+\" is much stronger than the last time you fought it.\");\r\n\t\t\t\tplayer.sm(\"<col=ff0000>It will take all of your skills to defeat it. Are you ready?\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Pass\": // Barriers\r\n\t\t\t\tString bossName = object.getName().replace(\"Barrier (\", \"\").replace(\")\", \"\");\r\n\t\t\t\tif(!hasKills(bossName))\r\n\t\t\t\t\tplayer.sm(\"You need to kill \"+getFormattedName(bossName)+\" \"\r\n\t\t\t\t\t\t+ \"\"+C_O_R_Data.getKillsNeeded(bossName)+\" times in order to pass this barrier.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tpassBarrier(object, isWalkingBack(object));\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void update() {\r\n\t\tdiffuse();\r\n\t\tdecay();\r\n\t}", "public Ball(Point c)\n\t{\n\t\tcenter = c;\n\t\t// Random velocity\n\t\tvelocity = new Point((int)(Math.random()*20-10), (int)(Math.random()*20-10));\n\t\tradius = 20;\n\t\t//\n\t\trepaint();\n\t}", "public void act()\n {\n // Make sure fish is alive and well in the environment -- fish\n // that have been removed from the environment shouldn't act.\n if ( isInEnv() ) \n move();\n }", "@Override\n\tpublic void interact(float x, float y, float t) {}", "public Ball()\n {\n Random randomSpeed = new Random ();\n xSpeed = randomSpeed.nextInt(7);\n if (xSpeed == 0)\n { xSpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n ySpeed = randomSpeed.nextInt(7);\n if (ySpeed == 0)\n { ySpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n colors = new ArrayList <String>();\n colors.add(new String (\"red\"));\n colors.add(new String (\"blue\"));\n colors.add(new String (\"green\"));\n colors.add(new String (\"cyan\"));\n colors.add(new String (\"magenta\"));\n colors.add(new String (\"yellow\"));\n colors.add(new String (\"pink\"));\n colors.add(new String (\"orange\"));\n Random randomColor = new Random();\n\n int index = randomColor.nextInt(8);\n color = colors.get(index);\n diameter = 35;\n xPosition = leftBound;\n yPosition = upBound;\n ballTouched = null;\n\n draw(); //draws the ball on the screen\n }", "public void ride(Bicycle bicycle){\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.brake();\n\n }", "@Override\n\tpublic void collision(Ball ball) {\n PhysicsComponent gadgetPartToCollideWith = this.physicsComponentList.get(0);\n double minTimeUntilCollision = Double.MAX_VALUE;\n for(PhysicsComponent gadgetPart: physicsComponentList){\n double timeUntilCollisionPart = gadgetPart.timeUntilCollision(ball.getBallCircle(), ball.getVelocity());\n if (timeUntilCollisionPart < minTimeUntilCollision){ \n minTimeUntilCollision = timeUntilCollisionPart;\n gadgetPartToCollideWith = gadgetPart;\n }\n }\n Vect newVelocity = gadgetPartToCollideWith.reflect(ball.getBallCircle(), ball.getVelocity(), ball.getCoefficentOfReflection()); \n ball.setVelocity(newVelocity);\n trigger();\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n float width = displayArea.xMax / 2;\n float height = displayArea.yMax / 2;\n float x = e.getX(); // convert piel coordinates to canvas coordinates\n float y = e.getY();\n switch (e.getAction()) {\n case MotionEvent.ACTION_MOVE:\n\n float dx = x - width;\n float dy = y - height;\n centralBall.setSpeed(10, dx, dy);\n if (dx > 0 && dy > 0) {\n if (centralBall.ballSpeedX < 0) {\n centralBall.ballSpeedX = -centralBall.ballSpeedX;\n }\n if (centralBall.ballSpeedY < 0) {\n centralBall.ballSpeedY = -centralBall.ballSpeedY;\n }\n }\n if (dx > 0 && dy < 0) {\n if (centralBall.ballSpeedX < 0) {\n centralBall.ballSpeedX = -centralBall.ballSpeedX;\n }\n if (centralBall.ballSpeedY > 0) {\n centralBall.ballSpeedY = -centralBall.ballSpeedY;\n }\n }\n if (dx < 0 && dy > 0) {\n if (centralBall.ballSpeedX > 0) {\n centralBall.ballSpeedX = -centralBall.ballSpeedX;\n }\n if (centralBall.ballSpeedY < 0) {\n centralBall.ballSpeedY = -centralBall.ballSpeedY;\n }\n }\n if (dx < 0 && dy < 0) {\n if (centralBall.ballSpeedX > 0) {\n centralBall.ballSpeedX = -centralBall.ballSpeedX;\n }\n if (centralBall.ballSpeedY > 0) {\n centralBall.ballSpeedY = -centralBall.ballSpeedY;\n }\n }\n }\n return true;\n }", "protected void execute() {\n \tif (isIntaking) {\n \t\tRobot.conveyor.forward();\n \t} else {\n \t\tRobot.conveyor.backward();\n \t}\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t\ttarget = pointEntity(caster,50);\r\n\t\tif (target == null) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trefund = true;\r\n\t\t\tdead = true;\r\n\t\t\tif (refined)\r\n\t\t\t\tsteprange = 240;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_ACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tdist = target.getLocation().distance(caster.getLocation());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void basicMotion() {\r\n\t\tPVector v = behavior.behavior(obj.getMotion());\r\n\t\tobj.getMotion().setVelocity(v);\r\n\t\t\r\n\t\tobj.getMotion().kinematicUpdate();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfloat x = obj.getMotion().getPosition().x;\r\n\t\tfloat y = obj.getMotion().getPosition().y;\r\n\t\tif(y <= turnCornerMin ) {\r\n\t\t\tbehavior.setDest(turnCornerMax,turnCornerMin);\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(x >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMax, turnCornerMax);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(y >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMin, turnCornerMax);\r\n\t\t}\r\n\t\t\r\n\t\tif(x < turnCornerMin) {\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tobj.updateObjKinematics(x, y, obj.getMotion().getOrientation());\r\n\t}", "Cone orderCone(Flavor[]balls) {\n\t \n }", "public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }", "protected void callCarryAgent(ISpaceObject target)\r\n\t{\r\n\t\tAGRSpace agrs = (AGRSpace)((IApplicationExternalAccess)getScope().getParent()).getSpace(\"myagrspace\");\r\n\t\tGroup group = agrs.getGroup(\"mymarsteam\");\r\n\t\tIComponentIdentifier[]\tcarriers\t= group.getAgentsForRole(\"carrier\");\r\n\t\t\r\n\t\tif(carriers!=null && carriers.length>0)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Carry Agent: Found Carry Agents: \"+carriers.length);\r\n\r\n\t\t\tRequestCarry rc = new RequestCarry();\r\n\t\t\trc.setTarget(target);\r\n\t\t\t//Action action = new Action();\r\n\t\t\t//action.setAction(rc);\r\n\t\t\t//action.setActor(new AID(\"dummy\", true)); // Hack!! What to do with more than one receiver?\r\n\t\t\tIMessageEvent mevent = createMessageEvent(\"request_carries\");\r\n\t\t\tmevent.getParameterSet(SFipa.RECEIVERS).addValues(carriers);\r\n\t\t\tmevent.getParameter(SFipa.CONTENT).setValue(rc);\r\n\t\t\tsendMessage(mevent);\r\n\t\t\t//System.out.println(\"Production Agent sent target to: \"+carriers.length);\r\n\t\t}\r\n\t}", "public boolean ballDetected()\n\t{\n\t\tusSampleProvider.fetchSample(usData, 0);\n\t\tusDistance = (double)(usData[0]*100.0);\n\t\t\n\t\t//while the robot isn't seeing an object\n\t\twhile (usDistance>100)\n\t\t{\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.forward();\n\t\t\tmainRightMotor.forward();\n\t\t}\n\t\tmainLeftMotor.stop();\n\t\tmainRightMotor.stop();\n\t\t\n\t\treturn true;\n\t}", "public void move() { check for bounce and make the ball bounce if necessary\n\t\t//\n\t\tif (x < 0 && dx < 0) {\n\t\t\t// bounce off the left wall\n\t\t\tx = 0;\n\t\t\tdx = -dx;\n\t\t}\n\t\tif (y < 0 && dy < 0) {\n\t\t\t// bounce off the top wall\n\t\t\ty = 0;\n\t\t\tdy = -dy;\n\t\t}\n\t\tif (x > panel.getWidth() - SIZE && dx > 0) {\n\t\t\t// bounce off the right wall\n\t\t\tx = panel.getWidth() - SIZE;\n\t\t\tdx = -dx;\n\t\t}\n\t\tif (y > panel.getHeight() - SIZE && dy > 0) {\n\t\t\t// bounce off the bottom wall\n\t\t\ty = panel.getHeight() - SIZE;\n\t\t\tdy = -dy;\n\t\t}\n\n\t\t// make the ball move\n\t\tx += dx;\n\t\ty += dy;\n\t}", "public ShootBall() {\n addRequirements(Robot.shooterBall);\n }", "public void run() {\n while (canPlay) {\n // Get ball position and speed\n double ballX = myBall.getX();\n double ballY = myBall.getY();\n double ballVx = myBall.getVx();\n double ballVy = myBall.getVy();\n // Track the ball if it is on the agent's side coming towards him\n if (ballVx < 0 && ballX < (ppPaddleXinit + ppAgentXinit) / 2) {\n // Find linear approximation of ball's Y position when it reaches the paddle's X position\n double predictedY = ballVy / ballVx * (getX() - ballX) + ballY;\n myTable.getDisplay().pause(AGENTLAG);\n setY(predictedY);\n }\n // Update paddle parameters\n updateParams();\n // Time has to be translated to ms\n myTable.getDisplay().pause(TICK * TIMESCALE);\n }\n }" ]
[ "0.57056206", "0.54540634", "0.5420621", "0.5374382", "0.5368115", "0.5354126", "0.5326418", "0.53199047", "0.53039706", "0.52938974", "0.5284259", "0.5239341", "0.52116144", "0.5196926", "0.5175614", "0.51747173", "0.51698875", "0.5163356", "0.51232606", "0.5113915", "0.51114726", "0.51093775", "0.5099213", "0.5077534", "0.50744796", "0.50744176", "0.5052337", "0.5036749", "0.5036195", "0.50300586", "0.5011599", "0.5003931", "0.49999762", "0.49979824", "0.4976805", "0.49687457", "0.49641815", "0.49585012", "0.4955512", "0.49469796", "0.49456617", "0.49333954", "0.49311945", "0.4919985", "0.48898423", "0.48751548", "0.48723522", "0.48721847", "0.48714697", "0.48615822", "0.484792", "0.48450416", "0.483857", "0.48306537", "0.48304465", "0.4827048", "0.48149246", "0.47973526", "0.47940445", "0.47933424", "0.4781714", "0.47769138", "0.47747394", "0.47718942", "0.47705534", "0.47690827", "0.4768793", "0.47585818", "0.47520575", "0.47519168", "0.47510046", "0.4749787", "0.47489575", "0.47416508", "0.47345185", "0.47276187", "0.47256976", "0.47224727", "0.47214726", "0.4719222", "0.4713387", "0.47113347", "0.47059563", "0.4702683", "0.4700717", "0.46991032", "0.46972102", "0.46887556", "0.46865943", "0.4686194", "0.46818852", "0.46608487", "0.46603462", "0.4658478", "0.46563226", "0.46555945", "0.46518517", "0.4646875", "0.46408546", "0.46376517" ]
0.7029757
0
================================================================= Dialog specific stuff =================================================================
public abstract void onSuccess(String code);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDialog() {\n }", "public abstract void initDialog();", "private Dialogs () {\r\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public StandardDialog() {\n super();\n init();\n }", "@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "protected abstract JDialog createDialog();", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n }", "DialogResult show();", "void generar_dialog_preguntas();", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if ((id == VM_RESPONSE_ERROR) || (id == VM_NOCHANGE_ERROR) ||\n (id == VOICEMAIL_DIALOG_CONFIRM)) {\n \n AlertDialog.Builder b = new AlertDialog.Builder(this);\n \n int msgId;\n int titleId = R.string.error_updating_title;\n switch (id) {\n case VOICEMAIL_DIALOG_CONFIRM:\n msgId = R.string.vm_changed;\n titleId = R.string.voicemail;\n // Set Button 2\n b.setNegativeButton(R.string.close_dialog, this);\n break;\n case VM_NOCHANGE_ERROR:\n // even though this is technically an error,\n // keep the title friendly.\n msgId = R.string.no_change;\n titleId = R.string.voicemail;\n // Set Button 2\n b.setNegativeButton(R.string.close_dialog, this);\n break;\n case VM_RESPONSE_ERROR:\n msgId = R.string.vm_change_failed;\n // Set Button 1\n b.setPositiveButton(R.string.close_dialog, this);\n break;\n default:\n msgId = R.string.exception_error;\n // Set Button 3, tells the activity that the error is\n // not recoverable on dialog exit.\n b.setNeutralButton(R.string.close_dialog, this);\n break;\n }\n \n b.setTitle(getText(titleId));\n b.setMessage(getText(msgId));\n b.setCancelable(false);\n AlertDialog dialog = b.create();\n \n // make the dialog more obvious by bluring the background.\n dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);\n \n return dialog;\n }\n \n return null;\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "public ReorganizeDialog() { }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n \n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public void onClick(DialogInterface dialog, int id)\n {\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "@Override \n public void onClick(DialogInterface dialog, int which) {\n \n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "public void showDialog(Context context) {\n \n }", "@Override \n\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t \t\n\t\t\t }", "protected void createDialogSize ()\n {\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Job Details\");\r\n\t \tButton myButton = new Button(this);\r\n\t \tmyButton.setText(\"Cancel\");\r\n\t \tmyButton.setBackgroundColor(Color.parseColor(\"#ff4c67\"));\r\n\t \tmyButton.setTextColor(Color.parseColor(\"#ffffff\"));\r\n\t \tRelativeLayout datlis = (RelativeLayout)screenDialog.findViewById(R.id.datalist01);\r\n\t \tLayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\r\n\t \tlp.addRule(RelativeLayout.BELOW, list.getId());\r\n\t \tdatlis.addView(myButton, lp);\r\n\t \tmyButton.setOnClickListener(dismissscreen);\r\n\t \t\r\n\t break;\r\n\t }\r\n\t }", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n }", "public CommonDialog(@NonNull Context context) {\n super(context,R.style.EditDialong);\n// this.listener = listener;\n// View contentView = LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);\n// setContentView(contentView);\n// Window dialongWindow = getWindow();\n// WindowManager.LayoutParams lp = dialongWindow.getAttributes();\n// DisplayMetrics d = context.getResources().getDisplayMetrics();\n// lp.width = (int) (d.widthPixels*0.8);\n// dialongWindow.setAttributes(lp);\n// initView();\n// initListener();\n }", "@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }", "@Override \n\t\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t \t\n\t\t\t\t\t }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n }" ]
[ "0.7491656", "0.7242478", "0.72245073", "0.7176161", "0.71170336", "0.7079919", "0.7032821", "0.6919249", "0.6902801", "0.6859318", "0.68290854", "0.6827966", "0.6758207", "0.67430484", "0.6730157", "0.67182934", "0.6705337", "0.6702819", "0.6696978", "0.6672921", "0.66699296", "0.6669451", "0.666626", "0.6663629", "0.6663629", "0.6663629", "0.6663629", "0.66609585", "0.66609585", "0.6646247", "0.6637368", "0.66141987", "0.66008306", "0.6595899", "0.6591199", "0.6584513", "0.65795493", "0.65795493", "0.65795493", "0.6575362", "0.6575098", "0.6575098", "0.6575098", "0.6575098", "0.6575098", "0.6575098", "0.6575098", "0.6570256", "0.6567671", "0.6567671", "0.6562655", "0.6558515", "0.6558515", "0.6553421", "0.6553034", "0.6551126", "0.6551126", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.65498793", "0.6542847", "0.6542847", "0.65421647", "0.65357924", "0.653234", "0.652498", "0.6520408", "0.6517061", "0.6514628", "0.6514628", "0.65073097", "0.65059733", "0.6494107", "0.64919126", "0.64919126", "0.64919126", "0.64919126", "0.64919126", "0.64917105", "0.64856434", "0.6481484", "0.6481484", "0.6481484", "0.6481484", "0.6481484", "0.6474272", "0.6474255", "0.6472253", "0.6472253", "0.64721256", "0.6468409", "0.6468409", "0.6468409" ]
0.0
-1
Creates a list that defines the order of the transformation of blocks.
public List<SimulinkBlock> generateBlockOrder(UnmodifiableCollection<SimulinkBlock> unmodifiableCollection, Set<SimulinkBlock> unsortedBlocks) { Set<SimulinkBlock> unsorted = new HashSet<SimulinkBlock>(); Set<SimulinkBlock> unsortedRev = new HashSet<SimulinkBlock>(); List<SimulinkBlock> sorted = new LinkedList<SimulinkBlock>(); // start with source blocks without input for (SimulinkBlock block : unmodifiableCollection) { if (block.getInPorts().isEmpty()) { sorted.add(block); } else { unsorted.add(block); } } int sizeBefore = 0; int sizeAfter = 0; do { sizeBefore = unsorted.size(); for (SimulinkBlock myBlock : unsorted) { unsortedRev.add(myBlock); } unsorted.clear(); for (SimulinkBlock block : unsortedRev) { boolean allPredeccesorsAvailable = specialBlockChecking(block, sorted); if (allPredeccesorsAvailable) { sorted.add(block); } else { unsorted.add(block); } } sizeAfter = unsorted.size(); unsortedRev.clear(); } while ((!(unsorted.isEmpty())) && (!(sizeBefore == sizeAfter))); for (SimulinkBlock block : unsorted) { // TODO sort the last unsorted blocks PluginLogger .info("Currently unsorted after sorting : " + block.getName() + " of type " + block.getType()); sorted.add(block); unsortedBlocks.add(block); } return sorted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void orderList() {\n Iterator<PlanarShape> sort = unorderedList.iterator();\n\n while(sort.hasNext()) {\n orderedList.insertInOrder(sort.next());\n }\n }", "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16))){\n\t\t\t\t\t\ttemp = blocks[j];\n\t\t\t\t\t\tblocks[j] = blocks[i];\n\t\t\t\t\t\tblocks[i] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "private List<TrackElement> getRenderOrder(Timeline timeline) {\n List<Track> tracks = new ArrayList<>(timeline.getTracks());\n Collections.reverse(tracks);\n return tracks.stream().flatMap(t -> t.getAllElements().stream()).collect(Collectors.toList());\n }", "List<Block> blocks();", "@Override\n public int getOrder() {\n return 4;\n }", "private static List<PruningRule<EOrderBlockType, OrderBlock>> getOrderPruningRules()\n\t{\n\t\tPruningRule<EOrderBlockType, OrderBlock> r1 =\n\t\t\tnew TwoComparatorPruningRule(new CompositeComparatorPruningAction());\n\n\t\t/*\n\t\t * property, [property | comparator | endOfStack] ==> comparator, [property | comparator | endOfStack]\n\t\t */\n\t\tPruningRule<EOrderBlockType, OrderBlock> r21 = new PropertyOrderPruningRule(EOrderBlockType.property, //\n\t\t\tnew PropertyOrderPruningAction());\n\t\tPruningRule<EOrderBlockType, OrderBlock> r22 =\n\t\t\tnew PropertyOrderPruningRule(EOrderBlockType.comparator, new PropertyOrderPruningAction());\n\t\tPruningRule<EOrderBlockType, OrderBlock> r24 =\n\t\t\tnew PropertyOrderPruningRule(EOrderBlockType.endOfStack, new PropertyOrderPruningAction());\n\t\t/*\n\t\t * property, ascDesc ==> comparator\n\t\t */\n\t\tPruningRule<EOrderBlockType, OrderBlock> r3 = new AscDescPruningRule(new AscDescPruningAction());\n\n\t\t/*\n\t\t * comparator, nullability ==> comparator with nullability\n\t\t */\n\t\t//\t\tPruningRule<EOrderChainType, OrderBlock> r4 = new NullFirstLastPruningRule(new NullFirstLastPruningAction());\n\n\t\treturn Arrays.asList(r1, r21, r22, r24, r3/*, r4*/);\n\t}", "private List<T> transform(List<T> nodes) {\n List<T> transformed = new ArrayList<>();\n for (T node : nodes) {\n transformed.add(node);\n }\n return transformed;\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public ArrayList<Integer> getOrdering() {\n return T.getRoot().getOrder();\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "protected List topologicalSort() {\r\n LinkedList order = new LinkedList();\r\n HashSet knownNodes = new HashSet();\r\n LinkedList nextNodes = new LinkedList();\r\n\r\n for (Iterator i = graph.getNodes().iterator(); i.hasNext(); ) {\r\n BBNNode node = (BBNNode) i.next();\r\n if (node.getChildren().size() == 0) {\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n order.addFirst(node);\r\n }\r\n }\r\n\r\n while (nextNodes.size() > 0) {\r\n BBNNode node = (BBNNode) nextNodes.removeFirst();\r\n if (knownNodes.contains(node)) continue;\r\n\r\n List children = node.getChildren();\r\n if (knownNodes.containsAll(children)) {\r\n order.addFirst(node);\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n }\r\n }\r\n return order;\r\n }", "private void organizeTiles(){\n\t\tfor(int i = 1; i <= size * size; i++){\n\t\t\tif(i % size == 0){\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t\trow();\n\t\t\t}else{\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t}\n\t\t}\n\t}", "public List<BlockEle> toBlockEles() {\n List<BlockEle> blockEles = new ArrayList<BlockEle>();\n\n for(Block block : blocks) {\n blockEles.add(block.toBlockEle());\n }\n\n return blockEles;\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "private void addBlocksVertices() {\n\n for (Block block :game.getBlocks()) {\n Point3D[] points = block.getPoints();\n for (int i = 0; i < points.length; i++) {\n GraphNode blockNode = new GraphNode(points[i]);\n vertices.add(blockNode);\n }\n }\n }", "public void generatePositionGroups(){\n for (int i = 0; i < Input.length()+1; i++){\n PositionGroup pg = generatePositionGroupAt(i);\n PositionGroupList.add(pg);\n }\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder.set(i, order.get(j));\n\t\t\torder.set(j, pi);\n\t\t}\n\t}", "public abstract List<TreeNode> orderNodes(List<? extends TreeNode> nodes);", "@Override\r\n\tpublic int getOrder() {\r\n\t\treturn vertices.size();\r\n\t}", "int[] orderBands(int orig[], int step) {\n int map[] = new int[orig.length];\n int ret[] = new int[orig.length];\n\n for (int i = 0; i < map.length; i++)\n map[i] = i;\n\n for (int i = 0; i < ret.length; i++) {\n int index = i;\n for (int j = i + 1; j < ret.length; j++) {\n if (orig[map[index]] > orig[map[j]]) {\n index = j;\n }\n }\n ret[map[index]] = i * step;\n map[index] = map[i];\n }\n return ret;\n }", "java.util.List<java.lang.Integer> getBlockNumsList();", "java.util.List<java.lang.Integer> getBlockNumsList();", "Ordering<Part> getOrdering();", "private static List<Point> reorder(List<Point> points) {\n Point tl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tl.x + tl.y) > (points.get(i).x + points.get(i).y)) {\n tl = points.get(i);\n }\n }\n\n // find bottom right => max sum\n Point br = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((br.x + br.y) < (points.get(i).x + points.get(i).y)) {\n br = points.get(i);\n }\n }\n\n // find top right => max x - y\n Point tr = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tr.x - tr.y) < (points.get(i).x - points.get(i).y)) {\n tr = points.get(i);\n }\n }\n\n // find bottom left => min x - y\n Point bl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((bl.x - bl.y) > (points.get(i).x - points.get(i).y)) {\n bl = points.get(i);\n }\n }\n\n List<Point> reorderList = new ArrayList<>();\n reorderList.add(tl);\n reorderList.add(tr);\n reorderList.add(br);\n reorderList.add(bl);\n\n return reorderList;\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "public List<Label> getLabelOrder() {\n return Collections.unmodifiableList(labels);\n }", "private ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}", "public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }", "public List<V> getTopologicalOrdering() {\n var result = new ArrayList<V>();\n var noIncomingEdgeVertices = getVerticesWithoutIncomingEdge();\n\n while (!noIncomingEdgeVertices.isEmpty()) {\n V next = noIncomingEdgeVertices.iterator().next();\n noIncomingEdgeVertices.remove(next);\n result.add(next);\n for (V neighbourVertex : new HashSet<>(getOutgoingAdjacentVertices(next))) {\n removeEdge(next, neighbourVertex);\n if (getIncomingAdjacentVertices(neighbourVertex).isEmpty()) {\n noIncomingEdgeVertices.add(neighbourVertex);\n }\n }\n }\n\n if (edges.values().stream().mapToLong(Collection::size).sum() != 0L) {\n throw new IllegalStateException(\"Cyclic dependency!\"); // TODO: Error message to state what is causing cyclic dependency\n } else {\n return result;\n }\n }", "public ArrayList<Integer> preOrderPrint () {\n\t\tArrayList<Integer> preOrder = new ArrayList<Integer>();\n\t\tpreOrderPrint(root, preOrder);\n\t\treturn preOrder;\n\t}", "public void sortIntermediateNodes() {\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tdeclareBeforeUse(intermediateNode);\n\t\t}\n\t}", "@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }", "public List<Integer> getBlockAsList(int b){\n\t\tList<Integer> block = new ArrayList<Integer>(size*size);\n\t\tfor (int i = size*(b/size); i < size*(b/size+1); i++){\n\t\t\tfor (int j = size*(b%size); j < size*(b%size+1); j++){\n\t\t\t\tblock.add(numbers[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}", "public List<T> sort() {\n final ArrayList<Node<T>> L = new ArrayList<>();\n\n // S <- Set of all nodes with no incoming edges\n final HashSet<Node<T>> S = new HashSet<>();\n nodes.stream().filter(n -> n.inEdges.isEmpty()).forEach(S::add);\n\n // while S is non-empty do\n while (!S.isEmpty()) {\n // remove a node n from S\n final Node<T> n = S.iterator().next();\n S.remove(n);\n\n // insert n into L\n L.add(n);\n\n // for each node m with an edge e from n to m do\n for (Iterator<Edge<T>> it = n.outEdges.iterator(); it.hasNext();) {\n // remove edge e from the graph\n final Edge<T> e = it.next();\n final Node<T> m = e.to;\n it.remove(); // Remove edge from n\n m.inEdges.remove(e); // Remove edge from m\n\n // if m has no other incoming edges then insert m into S\n if (m.inEdges.isEmpty()) S.add(m);\n }\n }\n // Check to see if all edges are removed\n for (Node<T> n : nodes) {\n if (!n.inEdges.isEmpty()) {\n return die(\"Cycle present, topological sort not possible: \"+n.thing.toString()+\" <- [\"+n.inEdges.stream().map(e->e.from.thing.toString()).collect(Collectors.joining(\", \"))+\"]\");\n }\n }\n return L.stream().map(n -> n.thing).collect(Collectors.toList());\n }", "List<Vertex> assignBumpOrdering(Tree t) throws FactorException {\n\t\treturn assignBumpOrdering(t, t._vertices.values().iterator().next());\n\t}", "public List<SpriteGraphNodeInstance> getZOrderedFlatList(Comparator<SpriteGraphNodeInstance> comparator) {\r\n\t\tif (!mOrdered) {\r\n\t\t\tmFlatNodes.sort(comparator);\r\n\t\t\tmOrdered = true;\r\n\t\t}\r\n\t\treturn mFlatNodes;\r\n\t}", "private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }", "public void genLists() {\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "ArrayList<Node> BFTIter(final Graph graph)\n {\n ArrayList<Node> BFT_Order = new ArrayList<Node>();\n int numNodes = graph.numNodes;\n boolean visited[] = new boolean[numNodes];\n Queue<Node> queue = new LinkedList<Node>();\n\n // Loop through all nodes in graph to find unconnected nodes\n for ( int i = 0; i < numNodes; i++ )\n {\n Node currNode = graph.nodeList.get(i);\n\n if ( !visited[currNode.id] )\n {\n visited[i] = true;\n queue.add(currNode);\n }\n else\n continue;\n\n while ( !queue.isEmpty() )\n {\n currNode = queue.remove();\n BFT_Order.add(currNode);\n\n int numEdges = currNode.connectedNodes.size();\n\n for ( int j = 0; j < numEdges; j++ )\n {\n Node edgeNode = currNode.connectedNodes.get(j);\n\n if ( !visited[edgeNode.id] )\n {\n visited[edgeNode.id] = true;\n queue.add(edgeNode);\n }\n }\n\n } \n\n } \n\n return BFT_Order;\n \n }", "public List<T> preorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n list.add(root.getData());\n preorderHelper(list, root);\n }\n return list;\n }", "public void changeSortOrder();", "public void reorganizeNote() {\n note = Position.orderList(note);\n }", "void order() {\n for (int i = 0; i < numVertices; i++) {\n if (simp[i][numParams] < simp[best][numParams]) {\n best = i;\n }\n if (simp[i][numParams] > simp[worst][numParams]) {\n worst = i;\n }\n }\n nextWorst = best;\n for (int i = 0; i < numVertices; i++) {\n if (i != worst) {\n if (simp[i][numParams] > simp[nextWorst][numParams]) {\n nextWorst = i;\n }\n }\n }\n }", "public myList<T> my_preorder();", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "java.util.List<java.lang.Integer> getBlockNumbersList();", "void orderNodes(Comparator<N> comparator);", "public List getOrderedInterceptorContributions()\n {\n if (!_interceptorsOrdered)\n {\n _interceptorContributions = orderInterceptors();\n _interceptorsOrdered = true;\n }\n\n return _interceptorContributions;\n }", "private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }", "private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }", "public List<VeinBlock> getAliasedBlocks() {\n\t\treturn new ArrayList<>(blocks);\n\t}", "private static int[][] defGenesOrder(int size) {\r\n int[][] order = new int[1][size];\r\n for (int i=0; i<order[0].length; i++) {\r\n order[0][i] = i;\r\n }\r\n return order;\r\n }", "public void arrange(Order order){\n for(int i=0; i<26; ++i){\n // arrange list of list; list by list\n ArrayList<Integer> list = check_list.get(i);\n for(int j=0; j<list.size(); ++j ){\n if(order == Order.ASCENDING){\n // ascending order\n for(int k=i; k<list.size()-1; ++k){\n int num1= list.get(k);\n int num2= list.get(k+1);\n // ascending order\n if(num2<num1){\n // swap\n list.set(k, num2);\n list.set(k+1, num1);\n }\n }\n }else if(order == Order.DESCENDING){\n // descending order\n for(int k=i; k<list.size()-1; ++k){\n int num1= list.get(k);\n int num2= list.get(k+1);\n // descending order\n if(num2>num1){\n // swap\n list.set(j, num2);\n list.set(k, num1);\n }\n }\n }\n }\n // put arranged list, back in its place\n check_list.set(i, list);\n }\n }", "default int getOrder() {\n\treturn 0;\n }", "public ArrayList<Component> getFocusOrderList() {\n\t\tArrayList<Component> loginOrder = new ArrayList<Component>();\r\n\t\tloginOrder.add(userName);\r\n\t\tloginOrder.add(password);\r\n\t\tloginOrder.add(groupList);\r\n\t\tloginOrder.add(loginButton);\r\n\t\tloginOrder.add(cancelButton);\r\n//\t\tfOrder.add(out.jTextField2);\r\n//\t\tfOrder.add(out.outRightDate);\r\n\t\treturn loginOrder;\r\n\t\t \r\n\t}", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "int order();", "private List<Integer> getSortedFileIds() {\n Set<Integer> fileIds = new HashSet<Integer>();\n BlockStoreMeta storeMeta = mBlockDataManager.getStoreMeta();\n for (List<Long> blockIds : storeMeta.getBlockList().values()) {\n for (long blockId : blockIds) {\n int fileId = BlockInfo.computeInodeId(blockId);\n fileIds.add(fileId);\n }\n }\n List<Integer> sortedFileIds = new ArrayList<Integer>(fileIds);\n Collections.sort(sortedFileIds);\n return sortedFileIds;\n }", "private void computeFlowOrders(List<Flow> flows) {\n Map<Type, Integer> typedCounters = new HashMap<>();\n for (Flow flow : flows) {\n Integer order = typedCounters.get(flow.getType());\n if (order == null) {\n order = 0;\n } else {\n order++;\n }\n typedCounters.put(flow.getType(), order);\n flow.setOrder(order);\n }\n }", "private static List<Integer> reorganize(List<Integer> result){\n List<Integer> outcome=new ArrayList<>();\n result.sort(Comparator.comparingInt(o -> o));\n if(!result.isEmpty()){\n outcome.add(result.get(0));\n for(int i=1;i<result.size();i++){\n if(!result.get(i).equals(result.get(i-1)))\n outcome.add(result.get(i));\n }\n }\n return outcome;\n }", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void sortRequiredVertices() {\n\t\tIterator<Integer> it = instance.getGraph().getVerticesIterator();\n\t\twhile (it.hasNext())\n\t\t\tsortRequiredVertices(it.next());\n\t}", "public List<Pattern> getPatternsNameSorted() {\n List<Pattern> copy = new LinkedList<Pattern>(patterns);\r\n Collections.sort(copy, byName);\r\n return copy;\r\n }", "public int getOrder() {\n\t\treturn 0;\n\t}", "Order(int t, int l) {\n this.t = t;\n this.l = l;\n }", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "private void constructTransitionTransposeMatrix() {\r\n\t\tfor(int i=0; i<getNodeCnt(); i++) {\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\tmTransitionTranspose.add( transitionList );\r\n\t\t}\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint fromId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(fromId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\t\r\n\t\t\t\tArrayList<NodeTransition> transitionList = mTransitionTranspose.get(toId);\r\n\t\t\t\ttransitionList.add( new NodeTransition(fromId, pTransition) );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "static void addNewPieces() {\n ArrayList<Block> news = new ArrayList<>();\n news.add(new Block(new int[]{2, 3}, Tetrominos.I));\n news.add(new Block(new int[]{2, 3}, Tetrominos.J));\n news.add(new Block(new int[]{2, 3}, Tetrominos.L));\n news.add(new Block(new int[]{2, 3}, Tetrominos.O));\n news.add(new Block(new int[]{2, 3}, Tetrominos.S));\n news.add(new Block(new int[]{2, 3}, Tetrominos.T));\n news.add(new Block(new int[]{2, 3}, Tetrominos.Z));\n\n\n Collections.shuffle(news);\n newPiece.addAll(news);\n }", "private List<T> getCompList(){\n\t\tList<T> l = new ArrayList<T>();\n\t\tfor(int i=0; i<list.size(); i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tl.add(list.get(i));\n\t\t\t}\n\t\t}\n\t\treturn l;\n\t}", "private List<Order> sortReadyOrders() throws SQLException {\n\t\tList<Order> nonFastFoodOrders = new LinkedList<Order>();\n\t\tList<Order> fastFoodOrders = new LinkedList<Order>();\n\t\tList<Order> sortedOrders = new LinkedList<Order>();\n\n\t\tfor (int i = 0; i < getReadyOrders().size(); i++) {\n\t\t\tfor (int j = 0; j < getReadyOrders().get(i).getOrderL().size(); j++) {\n\t\t\t\tif (getReadyOrders().get(i).getOrderL().get(j).getFood().getType().equalsIgnoreCase(\"fast food\")) {\n\t\t\t\t\tfastFoodOrders.add(getReadyOrders().get(i));\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tnonFastFoodOrders.add(getReadyOrders().get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsortedOrders.addAll(fastFoodOrders);\n\t\tsortedOrders.addAll(nonFastFoodOrders);\n\t\treturn sortedOrders;\n\t}", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "public static void main(String[] args) {\n\t\tList<List<Integer>> res = new ArrayList<List<Integer>>();\n\t\t\n\t\tList<Integer> list = new ArrayList<>();\n\t\tlist.add(2);\n\t\tlist.add(3);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(4);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(5);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(6);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(7);\n\t\tlist.add(8);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(9);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(10);\n\t\tlist.add(11);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tSystem.out.println(res);\n\t\tSystem.out.println(Inorder(res));\n\t\tList<Integer> queries = new ArrayList<>();\n\t\tqueries.add(2);\n\t\tqueries.add(4);\n\t\tswapNodes(res, queries);\n\n\t}", "public int order()\n {\n return numVertices;\n }", "List<Vertex> assignBumpOrdering(Tree t, Vertex root) throws FactorException {\n\t\t_bumpOnUpwardPass = false;\n\t\tif(DEBUG) System.out.println(\"\\n\\nassigning ordering!\\n\\n\");\n\t\tnextOrderID = UNMARKED; // begin again at 0\n\t\tList<Vertex> ordering = new ArrayList<Vertex>();\n//\t\tif(t._vertices.size() == 0) return ordering;\n//\t\t// mark all vertices unmarked\n//\t\tfor(Vertex v : t._vertices.values()) {\n//\t\t\tv.setUnmarked();\n//\t\t}\n//\t\tQueue<Vertex> toProcess = new LinkedList<Vertex>();\n//\t\ttoProcess.add(root);\n//\t\tif(DEBUG) System.out.println(\"root is \"+root.getVariableNames());\n//\t\t\n//\t\t// giving a number is equivalent to adding to ordering, giving index\n//\t\t// while all vertices don't have a number\n//\t\twhile(ordering.size() != t._vertices.size()) {\n//\t\t\tif(toProcess.size() == 0) {\n//\t\t\t\t// find an unmarked node... expensive\n//\t\t\t\tfor(Vertex v : t._vertices.values()) {\n//\t\t\t\t\tif(v._orderID == UNMARKED) {\n//\t\t\t\t\t\ttoProcess.add(v); // add to queue when find unmarked\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tVertex curr = toProcess.remove();\n//\t\t\tif(DEBUG) System.out.printf(\"curr VertexMax:%s\\n\",curr);\n//\t\t\t// mark\n//\t\t\tcurr.setOrderID();\n//\t\t\tordering.add(curr); // and add to our ordered list\n//\t\t\tif(curr._orderID != ordering.size()) {// verify\n//\t\t\t\tSystem.err.println(\"oops! order id incorrect\");\n//\t\t\t}\n//\t\t\t// and then for each downstream child...\n//\t\t\tfor(Edge e : curr._neighborEdges.keySet()) {\n//\t\t\t\tVertex k = e.getOtherVertex(curr);\n//\t\t\t\tif(DEBUG) System.out.println(\"check neighbor:\"+k);\n//\t\t\t\tif(k._orderID == UNMARKED) {\n//\t\t\t\t\tif(DEBUG) System.out.println(k+\" is unmarked - it's downstream\");\n//\t\t\t\t\t// downstream if we haven't marked it yet\n////\t\t\t\t\t// send belief update message to the child\n////\t\t\t\t\tcurr.sendMessage(e);\n//\t\t\t\t\t// and add the child to our list to process\n//\t\t\t\t\tif(DEBUG) System.out.printf(\"adding %s to be processed\\n\",root.getVariableNames());\n//\t\t\t\t\ttoProcess.add(k);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n//\t\treturn ordering;\n\t\tVertex v = findVertexInTree(t, 3,2);\n\t\tv.setOrderID();\n\t\tordering.add(v);\n\t\tv = findVertexInTree(t, 2,0);\n\t\tv.setOrderID();\n\t\tordering.add(v);\n\t\tv = findVertexInTree(t, 1,0);\n\t\tv.setOrderID();\n\t\tordering.add(v);\n\t\treturn ordering;\n//\t\t[[G, I], [I, J], [G, H]]\n\t}", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "List gen() {\n\tList ret = new ArrayList();\n\n\tlong emptySlots = ~(pieceBits[LIGHT] | pieceBits[DARK]);\n\tif (side == LIGHT) {\n\tlong moves = (pawnBits[LIGHT] >> 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {////// bouger le pion d'une case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 8, theMove, 16);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((keep & 0x0000ff0000000000L) >> 8) & emptySlots;// bouge le pion\n\t\twhile (moves != 0) {//bouger le pion de deux case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 16, theMove, 24);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {//pion qui mange un autre pion\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 9, theMove, 17);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {// manger a droite\n\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = (pawnBits[DARK] << 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 8, theMove, 16);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((keep & 0xff0000L) << 8) & emptySlots;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 16, theMove, 24);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint i = getLBit(pieces);\n\tint p = piece[i];\n\tfor (int j = 0; j < offsets[p]; ++j)\n\tfor (int n = i;;) {\n\tn = mailbox[mailbox64[n] + offset[p][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, i, n, 1);\n\tbreak;\n\t}\n\tgenPush(ret, i, n, 0);\n\tif (!slide[p])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\n\t/* petit rock */\n\tif (side == LIGHT) {\n\tif (((castle & 1) != 0) && (piece[F1] == EMPTY)\n\t&& (piece[G1] == EMPTY))\n\tgenPush(ret, E1, G1, 2);\n\tif (((castle & 2) != 0) && (piece[D1] == EMPTY)\n\t&& (piece[C1] == EMPTY) && (piece[B1] == EMPTY))\n\tgenPush(ret, E1, C1, 2);\n\t} else {\n\tif (((castle & 4) != 0) && (piece[F8] == EMPTY)\n\t&& (piece[G8] == EMPTY))\n\tgenPush(ret, E8, G8, 2);\n\tif (((castle & 8) != 0) && (piece[D8] == EMPTY)\n\t&& (piece[C8] == EMPTY) && (piece[B8] == EMPTY))\n\tgenPush(ret, E8, C8, 2);\n\t}\n\n\t/* generate en passant moves */\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "private static void createSlideTransitions() {\n\t\tif (slideList.size() < SLIDES_REGIONS_LIMIT) {\n\t\t\tint length = (slideList.size() / 2) - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\ttransitionList.add(slideList.get(i));\n\t\t\t\ttransitionList.add(slideList.get(length - i - 1));\n\t\t\t}\n\t\t} else {\n\t\t\tint length = slideList.size() / NUMBER_REGIONS / 2 - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < NUMBER_REGIONS; i++) {\n\t\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\t\ttransitionList.add(slideList.get(j + i * length));\n\t\t\t\t\t//System.out.println(i * length - j - 1);\n\t\t\t\t\ttransitionList.add(slideList.get((i + 1) * length - j - 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (slideList.size() % 2 != 0) {\n\t\t\t\ttransitionList.add(slideList.get(slideList.size() - 1));\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<Order> ListOrder() {\n\t\treturn null;\r\n\t}", "void orderEdges(Comparator<E> comparator);", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "private Vector<Node> sortCodes()\n\t{\n\t\tVector<Node> nodes = new Vector<Node>();\n\t\tfor(int i = 0; i < prioQ.size(); i++)\n\t\t{\n\t\t\tNode n = new Node(prioQ.get(i).getData(),\n\t\t\t\t\tprioQ.get(i).getCount());\n\t\t\tnodes.add(n);\n\t\t}\n\t\n\t\tCollections.sort(nodes, new Comparator() {\n\t public int compare(Object o1, Object o2) {\n\t Integer x1 = ((Node) o1).getCount();\n\t Integer x2 = ((Node) o2).getCount();\n\t int sComp = x1.compareTo(x2);\n\n\t if (sComp != 0) {\n\t return sComp;\n\t } else {\n\t Integer a1 = ((Node) o1).getData();\n\t Integer a2 = ((Node) o2).getData();\n\t return a1.compareTo(a2);\n\t }\n\t }\n\t });\n\t\t\n\t\treturn nodes;\n\t}", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}", "public ArrayList genStates2(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(String s : notes){\n for(String d : beat){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += s;\n state += d;\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix transpose () { throw new RuntimeException(); }", "@Override\n public ImmutableList<Id> topsortIdList() {\n return idDag.topsortIdList();\n }", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "protected abstract List<LayoutHelper> reverse();", "private void sortParents() {\n String[] MonthsArray = getResources().getStringArray(R.array.months);//gets an array that contains all the months\n Calendar cal = Calendar.getInstance();\n int monthPosition = cal.get(Calendar.MONTH);//gets the current month as an integer to be used as a position (ie. November would be 10)\n int i = monthPosition;//will be used to iterate, starting at the current month\n\n //After i reaches 11 (December) it's next loop will cause it to reset to 0 (January) and fill in the months before the current one\n do {\n if (i <= 11)\n ParentList.add(MonthsArray[i++]);\n else\n i = 0;\n } while (i != monthPosition); // will stop once it reaches the current month\n }", "private int[] getRandOrder(int count){\n\t\tint[][] orderContainer = new int[count][2];\n\t\tRandom randomGenerator = new Random();\n\t\tfor(int i = 0; i < count; i++){\n\t\t\torderContainer[i][0] = i;\n\t\t\torderContainer[i][1] = randomGenerator.nextInt(count * 2);\n\t\t}\n\n\n\t\tfor(int i = 0; i < count - 1; i++){\n\t\t\tfor(int j = i + 1; j < count; j++){\n\t\t\t\tif(orderContainer[i][1] > orderContainer[j][1]){\n\t\t\t\t\tint tmp = orderContainer[i][1];\n\t\t\t\t\torderContainer[i][1] = orderContainer[j][1];\n\t\t\t\t\torderContainer[j][1] = tmp;\n\n\t\t\t\t\ttmp = orderContainer[i][0];\n\t\t\t\t\torderContainer[i][0] = orderContainer[j][0];\n\t\t\t\t\torderContainer[j][0] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint []order = new int[count];\n\t\tfor(int i = 0; i < count; i++){\n\t\t\torder[i] = orderContainer[i][0];\n\t\t}\n\t\treturn order;\n\t}", "public List<T> levelorder() {\n ArrayList<T> list = new ArrayList<T>();\n Queue<BSTNode<T>> queue = new LinkedList<>();\n if (root != null) {\n queue.add(root);\n levelorderHelper(list, queue);\n }\n return list;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Sequential Array List Provided Sort\";\n\t}" ]
[ "0.57923573", "0.578506", "0.5651079", "0.55876964", "0.5580568", "0.5511755", "0.5419834", "0.5386745", "0.5382847", "0.53510445", "0.53318197", "0.53213036", "0.5316372", "0.52938277", "0.52745223", "0.51855844", "0.51852113", "0.51598114", "0.51186985", "0.5090462", "0.50783116", "0.5069215", "0.50665265", "0.506232", "0.50609577", "0.5058917", "0.5058917", "0.5028736", "0.5027288", "0.5008004", "0.5006145", "0.5005695", "0.49977142", "0.49944064", "0.49889463", "0.49716213", "0.49593836", "0.49528858", "0.49509367", "0.4949803", "0.49474844", "0.49471557", "0.4945581", "0.49135908", "0.4911066", "0.4904239", "0.48988026", "0.48887572", "0.48544168", "0.4845756", "0.48442647", "0.48092607", "0.48080465", "0.48073462", "0.48067683", "0.4802817", "0.48016417", "0.48009476", "0.4800473", "0.47934395", "0.47776416", "0.47762033", "0.47711614", "0.47652295", "0.4765026", "0.4749844", "0.4745638", "0.47404793", "0.47357658", "0.47345003", "0.47334495", "0.4726208", "0.4719476", "0.47048363", "0.47004133", "0.47002518", "0.46953443", "0.46763954", "0.46686992", "0.46648782", "0.46644717", "0.46620384", "0.4657487", "0.46512464", "0.46492568", "0.46480894", "0.46474734", "0.46468905", "0.4645383", "0.464456", "0.46348095", "0.4633817", "0.46250015", "0.4620054", "0.46191502", "0.46149564", "0.46120587", "0.46039274", "0.46030256", "0.4592582" ]
0.545221
6
Checks whether all stateful predecessors of this block are already handled
private boolean specialBlockChecking(SimulinkBlock block, List<SimulinkBlock> processedBlocks) { boolean allPredeccesorsAvailable = true; // every predecessor has to be checked for (int i = 0; i < block.getInPorts().size(); i++) { SimulinkBlock srcBlock = block.getInLines().get(i).getSrcPort().getBlock(); // if srcblock is not in sorted AND is no "last Block" if (!(processedBlocks.contains(srcBlock))) { if (!lastBlocks.contains(srcBlock.getType())) { allPredeccesorsAvailable = false; } } } return allPredeccesorsAvailable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected final void processWhenNotUpdated(Node node) {\n\t\tboolean propagateFurther = false;\n\t\tNodeInfo nodeInfo = node.getInfo();\n\t\tCollection<Node> predecessors = nodeInfo.getCFGInfo().getInterProceduralLeafPredecessors();\n\t\tF newIN = (F) nodeInfo.getIN(analysisName);\n\t\tif (newIN == null) {\n\t\t\t/*\n\t\t\t * In this scenario, we must set the propagation flag, so that\n\t\t\t * all successors are processed at least once.\n\t\t\t */\n\t\t\tpropagateFurther = true;\n\t\t\tif (predecessors.isEmpty()) {\n\t\t\t\tnewIN = this.getEntryFact();\n\t\t\t} else {\n\t\t\t\tnewIN = this.getTop();\n\t\t\t}\n\t\t}\n\n\t\tboolean inChanged = false;\n\t\tif (this.analysisName == AnalysisName.CROSSCALL_PREDICATE_ANALYSIS && node instanceof PostCallNode) {\n\t\t\t// A small hack here.\n\t\t\tPostCallNode postNode = (PostCallNode) node;\n\t\t\tList<FunctionDefinition> funcDef = postNode.getParent().getInfo().getCalledDefinitions();\n\t\t\tif (funcDef.isEmpty() || funcDef.stream().noneMatch(f -> this.functionWithBarrier.contains(f))) {\n\t\t\t\tpredecessors = new HashSet<>();\n\t\t\t\tpredecessors.add(postNode.getParent().getPreCallNode());\n\t\t\t}\n\t\t}\n\t\tfor (Node predNode : predecessors) {\n\t\t\tF predOUT = (F) predNode.getInfo().getOUT(analysisName);\n\t\t\tif (predOUT == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tF edgeOUT = this.edgeTransferFunction(predOUT, predNode, node);\n\t\t\tinChanged |= newIN.merge(edgeOUT, null);\n\t\t}\n\n\t\tif (node instanceof PostCallNode) {\n\t\t\tinChanged |= processPostCallNodesIN((PostCallNode) node, newIN);\n\t\t}\n\n\t\tnodeInfo.setIN(analysisName, newIN);\n\n\t\t// Step 2: Apply the flow-function on IN, to obtain the OUT.\n\t\tF newOUT = node.accept(this, newIN);\n\t\tnodeInfo.setOUT(analysisName, newOUT);\n\n\t\t// Step 3: Process the successors, if needed.\n\t\tpropagateFurther |= inChanged;\n\t\tif (propagateFurther) {\n\t\t\tglobalWorkList.addAll(nodeInfo.getCFGInfo().getInterProceduralLeafSuccessors());\n\t\t\tif (node instanceof PreCallNode) {\n\t\t\t\tPreCallNode pre = (PreCallNode) node;\n\t\t\t\tthis.globalWorkList.add(pre.getParent().getPostCallNode());\n\t\t\t}\n\t\t\t// If we are adding successors of a BeginNode of a FunctionDefinition, we should\n\t\t\t// add all the ParameterDeclarations.\n\t\t\tif (node instanceof BeginNode && node.getParent() instanceof FunctionDefinition) {\n\t\t\t\tFunctionDefinition func = (FunctionDefinition) node.getParent();\n\t\t\t\tfor (ParameterDeclaration paramDecl : func.getInfo().getCFGInfo().getParameterDeclarationList()) {\n\t\t\t\t\tthis.globalWorkList.add(paramDecl);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t@SuppressWarnings(\"unchecked\")\n\tprotected final void processWhenUpdated(Node node) {\n\t\tboolean first = false;\n\t\tif (!this.safeCurrentSCCNodes.contains(node)) {\n\t\t\tfirst = true;\n\t\t\t// Don't add the node to this set unless its OUT has been populated.\n\t\t}\n\t\tNodeInfo nodeInfo = node.getInfo();\n\t\tCollection<Node> predecessors;\n\t\tpredecessors = nodeInfo.getCFGInfo().getInterProceduralLeafPredecessors();\n\t\tF oldIN = (F) nodeInfo.getIN(analysisName);\n\t\tboolean propagateFurther = false;\n\t\tF newIN;\n\t\tif (oldIN == null) {\n\t\t\t// First processing ever of this node!\n\t\t\tpropagateFurther = true;\n\t\t\tnewIN = (predecessors.isEmpty()) ? newIN = this.getEntryFact() : this.getTop();\n\t\t} else if (first) {\n\t\t\t// First processing in the first round of update.\n\t\t\tnewIN = (predecessors.isEmpty()) ? newIN = this.getEntryFact() : this.getTop();\n\t\t} else {\n\t\t\tnewIN = oldIN; // Use the same object.\n\t\t}\n\n\t\tboolean inChanged = false;\n\t\tif (this.analysisName == AnalysisName.CROSSCALL_PREDICATE_ANALYSIS && node instanceof PostCallNode) {\n\t\t\t// A small hack here.\n\t\t\tPostCallNode postNode = (PostCallNode) node;\n\t\t\tList<FunctionDefinition> funcDef = postNode.getParent().getInfo().getCalledDefinitions();\n\t\t\tif (funcDef.isEmpty() || funcDef.stream().noneMatch(f -> this.functionWithBarrier.contains(f))) {\n\t\t\t\tpredecessors = new HashSet<>();\n\t\t\t\tpredecessors.add(postNode.getParent().getPreCallNode());\n\t\t\t}\n\t\t}\n\t\tboolean anyPredMissed = false;\n\t\tfor (Node predNode : predecessors) {\n\t\t\t/*\n\t\t\t * Ignore a predecessor if:\n\t\t\t * (i) it lies within the SCC, AND\n\t\t\t * (ii) it has not been processed yet.\n\t\t\t */\n\t\t\tSCC predSCC = predNode.getInfo().getCFGInfo().getSCC();\n\t\t\tif (predSCC != null) {\n\t\t\t\t// If null, then pred clearly belongs to some other SCC.\n\t\t\t\tif (node.getInfo().getCFGInfo().getSCC() == predSCC) {\n\t\t\t\t\t// Predecessor lies within the SCC.\n\t\t\t\t\tif (!this.safeCurrentSCCNodes.contains(predNode)) {\n\t\t\t\t\t\tanyPredMissed = true;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tF predOUT = (F) predNode.getInfo().getOUT(analysisName);\n\t\t\tif (predOUT == null) {\n\t\t\t\t/*\n\t\t\t\t * Here, we do not mark anyPredMissed, as this node would be\n\t\t\t\t * marked for processing whenever the predecessor has been\n\t\t\t\t * processed for the first time. Check the setting of\n\t\t\t\t * propagateFurther above.\n\t\t\t\t */\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tF edgeOUT = this.edgeTransferFunction(predOUT, predNode, node);\n\t\t\tinChanged |= newIN.merge(edgeOUT, null);\n\t\t}\n\n\t\tif (node instanceof PostCallNode) {\n\t\t\tPreCallNode preNode = ((CallStatement) node.getParent()).getPreCallNode();\n\t\t\tSCC preSCC = preNode.getInfo().getCFGInfo().getSCC();\n\t\t\tboolean doNotProcess = false;\n\t\t\tif (preSCC != null) {\n\t\t\t\t// If null, then pred clearly belongs to some other SCC.\n\t\t\t\tif (node.getInfo().getCFGInfo().getSCC() == preSCC) {\n\t\t\t\t\t// Predecessor lies within the SCC.\n\t\t\t\t\tif (!this.safeCurrentSCCNodes.contains(preNode)) {\n\t\t\t\t\t\tanyPredMissed = true;\n\t\t\t\t\t\tdoNotProcess = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!doNotProcess) {\n\t\t\t\tinChanged |= processPostCallNodesIN((PostCallNode) node, newIN);\n\t\t\t}\n\n\t\t}\n\t\tif (anyPredMissed) {\n\t\t\tthis.underApproximated.add(node);\n\t\t} else {\n\t\t\tthis.underApproximated.remove(node);\n\t\t}\n\t\tnodeInfo.setIN(analysisName, newIN);\n\n\t\t// Step 2: Apply the flow-function on IN, to obtain the OUT.\n\t\tF newOUT;\n\t\tnewOUT = node.accept(this, newIN);\n\t\tnodeInfo.setOUT(analysisName, newOUT);\n\t\tthis.safeCurrentSCCNodes.add(node); // Mark a node as processed only after its OUT has been \"purified\".\n\n\t\t// Step 3: Process the successors.\n\t\tpropagateFurther |= inChanged;\n\t\tif (propagateFurther) {\n\t\t\tthis.globalWorkList.addAll(nodeInfo.getCFGInfo().getInterProceduralLeafSuccessors());\n\t\t\tif (node instanceof PreCallNode) {\n\t\t\t\tPreCallNode pre = (PreCallNode) node;\n\t\t\t\tthis.globalWorkList.add(pre.getParent().getPostCallNode());\n\t\t\t}\n\t\t\t// If we are adding successors of a BeginNode of a FunctionDefinition, we should\n\t\t\t// add all the ParameterDeclarations.\n\t\t\tif (node instanceof BeginNode && node.getParent() instanceof FunctionDefinition) {\n\t\t\t\tFunctionDefinition func = (FunctionDefinition) node.getParent();\n\t\t\t\tfor (ParameterDeclaration paramDecl : func.getInfo().getCFGInfo().getParameterDeclarationList()) {\n\t\t\t\t\tthis.globalWorkList.add(paramDecl);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void checkState() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tcheckHostGraphAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tcheckStopGraphAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tcheckPairsAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tcheckIfReadyToParse();\r\n\t\t\tquitDialog();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private boolean noImpedingPredecessors(\r\n\t\t\tfinal List<Rule> sequence) {\r\n\t\t\r\n\t\tboolean result = true;\r\n\t\tfor (int i=1; i<sequence.size(); i++) {\r\n\t\t\tRule ri = sequence.get(i);\r\n\t\t\tboolean localResult = true;\r\n\t\t\tfinal Pair<Boolean, List<String>> \r\n\t\t\truleRes = this.ruleSequence.getRuleResult(i, ri.getName(), ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t\tif (ruleRes != null) {\r\n\t\t\t\tlocalResult = ruleRes.first.booleanValue();\r\n\t\t\t} \r\n\t\t\telse {\r\n\t\t\t\tfor (int j=0; j<i; j++) {\r\n\t\t\t\t\tRule rj = sequence.get(j);\r\n\t\t\t\t\tfinal SimpleExcludePair excludePair = makeExcludePair();\r\n\t\t\t\t\tif(!asymParallelIndependentByCPA(excludePair, rj, j, ri, i)) {\t\t\t\t\t\r\n\t\t\t\t\t\tlocalResult = false;\r\n\t\t\t\t\t\tsetRuleResult(i, ri.getName(), false, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS, rj.getName());\t\r\n\t\t\t\t\t\tbreak; // evntl. weiter machen!\r\n\t\t\t\t\t} \r\n\t\t\t\t\texcludePair.dispose();\r\n\t\t\t\t}\r\n\t\t\t\tif (localResult) {\r\n\t\t\t\t\tsetRuleResult(i, ri.getName(), true, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS, \"\");\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\t// rewrite result only if localResult is FALSE\r\n\t\t\tif (!localResult) {\r\n\t\t\t\tresult = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!result) {\r\n\t\t\tsetApplicabilityResult(false, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }", "protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getPredecessorEdges(this.getNext()).isEmpty();\n }", "private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }", "protected void checkState()\n {\n if (getParentNode() != null)\n {\n throw new IllegalStateException(\n \"Node cannot be modified when added to a parent!\");\n }\n }", "private boolean partialEnablingPredecessor(\r\n\t\t\tfinal Rule ri,\r\n\t\t\tfinal int i,\r\n\t\t\tfinal List<Rule> sequence, \r\n\t\t\tfinal Graph g) {\r\n//\t\tSystem.out.println(\"\\n=== >>> ApplicabilityChecker.partialEnablingPredecessor ... of \"+ri.getName());\r\n\t\t\r\n\t\tboolean result = false;\r\n\t\t\r\n\t\tfor (int j=i-1; j>=0; j--) {\r\n\t\t\tRule rj = sequence.get(j);\r\n\t\t\tthis.info = rj.getName();\t\r\n\t\t\t\t\r\n\t\t\tPair<Boolean, List<String>> pair = this.ruleSequence.getRuleResult(j, rj.getName(), ApplicabilityConstants.PREDECESSOR_NOT_NEEDED);\r\n\t\t\tif (pair == null)\r\n\t\t\t\tpair = this.ruleSequence.getRuleResult(j, rj.getName(), ApplicabilityConstants.INITIALIZATION);\r\n\t\t\t\r\n\t\t\tif (pair != null && pair.first.booleanValue()) {\r\n//\t\t\t\tSystem.out.println(\"=== >>> ApplicabilityChecker.partialEnablingPredecessor :: applicable: \"+rj.getName());\r\n\t\t\t\t// rule rj is applicable to graph g\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t// get new list of concurrent rules of the current rule ri\r\n\t\t\t\tList<List<ConcurrentRule>> concurRuleLists = this.ruleSequence.getListsOfConcurrentRules(ri, i);\r\n\t\t\t\tif (concurRuleLists == null) {\r\n\t\t\t\t\tconcurRuleLists = new Vector<List<ConcurrentRule>> ();\r\n\t\t\t\t\tthis.ruleSequence.putListsOfConcurrentRules(ri, i, concurRuleLists);\r\n\t\t\t\t}\r\n\t\t\t\t// make concurrent rule(s) due to dependency pair overlapping\r\n\t\t\t\tList<ConcurrentRule> list = this.makeJointlyConcurrentRule(rj, j, ri, i);\r\n\t\t\t\t\r\n\t\t \t\tif (list != null && !list.isEmpty()) {\r\n\t\t \t\t\tconcurRuleLists.add(list);\r\n\t\t \t\t\tint d = 1;\r\n\t\t \t\t\t\r\n\t\t \t\t\t// set match of concurrent rule, (check due to ObjectFlow?)\r\n\t\t\t\t\tfinal Hashtable<GraphObject, GraphObject> \r\n\t\t\t\t\trjMatch = this.ruleSequence.getMatchSequence().getDirectMatch(j, rj);\r\n\t\t\t\t\tif (rjMatch != null) {\t\t\t\t\t\t\r\n\t\t \t\t\t\tfor (int c=0; c<list.size(); c++) {\r\n\t\t \t\t\t\t\tfinal ConcurrentRule cr = list.get(c);\r\n\t\t \t\t\t\t\tif (!rjMatch.isEmpty() &&\r\n\t\t \t\t\t\t\t\t\t!cr.forwardMatchMappingOfFirstSourceRule(rjMatch, this.ruleSequence.getGraph())) {\r\n\t\t \t\t\t\t\t\tlist.remove(c);\r\n\t\t \t\t\t\t\t\tc--;\r\n\t\t \t\t\t\t\t} \r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\tfor (int k = 0; k<list.size(); k++) {\r\n\t\t \t\t\t\t\tConcurrentRule cr = list.get(k);\t\t\t\t\r\n\t\t \t\t\t\t\tif (isConcurrentRuleApplicable(i, ri, \r\n\t\t \t\t\t\t\t\t\tthis.ruleSequence.getRules(), g, \r\n\t\t \t\t\t\t\t\t\tcr, d, ApplicabilityConstants.PARTIAL_ENABLING_PREDECESSOR)) {\r\n\t\t \t\t\t\t\t\tresult = true;\r\n\t\t \t\t\t\t\t\tSystem.out.println(\"=== >>> ApplicabilityChecker.partialEnablingPredecessor: of rule: \"+ri.getName()+\" is rule: \"+rj.getName());\r\n\t\t \t\t\t\t\t\tbreak;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t}\t\t\t\r\n\t\t \t\t\t\tif (result)\r\n\t\t \t\t\t\t\tbreak;\t\t \t\t\t\t\r\n\t\t \t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result) {\r\n\t\t\tsetRuleResult(i, ri.getName(), true, ApplicabilityConstants.PARTIAL_ENABLING_PREDECESSOR, this.info);\r\n//\t\t\tsetRuleResult(i, ri.getName(), true, ApplicabilityConstants.DIRECT_ENABLING_PREDECESSOR, \"\");\r\n\t\t\tsetRuleResult(i, ri.getName(), false, ApplicabilityConstants.NO_ENABLING_PREDECESSOR, \"(partial)\");\t\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getSuccessorEdges(this.getNext()).isEmpty();\n }", "boolean hasFenced();", "public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}", "public void clearPredecessors() {\n this.resourcePredecessors.clear();\n }", "public boolean needsProcessing() {\r\n return !INTL_NODE.getOutMarbles().isEmpty();\r\n }", "public boolean IsCyclic() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }", "private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }", "public boolean isPredecessor(long sid) {\n return sid == predecessorSid.get();\n }", "private boolean scanPreconditions()\n\t\t{\n\t\t\tboolean statusChanged = false;\n\t\t\t\n\t\t\t//Conditional activity\n\t\t\tif(TravelToCustomer.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTravelToCustomer act = new TravelToCustomer(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Travel to Customer. \");\n\t\t\t}\n\t\t\t\n\t\t\tif(TakingLunch.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTakingLunch act = new TakingLunch(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Take Lunch. \");\n\t\t\t}\n\t\t\t\n\t\t\t// Do not change the status if already true\n\t\t\tif(statusChanged) scanInterruptPreconditions();\n\t\t\telse statusChanged = scanInterruptPreconditions();\n\t\t\treturn(statusChanged);\n\t\t}", "public void checkAndSetStart() {\r\n\t\tSystem.out.println(\"\t\tcheckAndSetStart \"+this.id +\" size:\"+this.components.size());\r\n\t\tif(hasNoStart()) {\t\t\r\n\t\t\tList<ComponentConfig> longestVisitedComps = new ArrayList<ComponentConfig>();\r\n\t\t\tComponentConfig longestVisitedComp = null;\r\n\t\t\tint longestVisited = 0;\r\n\t\t\tfor(ComponentConfig comp: components) {\r\n\t\t\t\tint visited = traverseModel(0,comp);\r\n\t\t\t\tSystem.out.println(\"\t\t\ttraverse\"+comp.getId()+\" v:\"+visited);\r\n\t\t\t\tif(visited > longestVisited) {\r\n\t\t\t\t\tlongestVisited = visited;\r\n\t\t\t\t\tlongestVisitedComps.clear();\r\n\t\t\t\t\tlongestVisitedComps.add(comp);\r\n\t\t\t\t} else if(visited == longestVisited) {\r\n\t\t\t\t\tlongestVisitedComps.add(comp);\r\n\t\t\t\t}\r\n\t\t\t\t// catch deadloop, if all component are visisted\r\n\t\t\t\tif(longestVisited == components.size())\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(ComponentConfig st: longestVisitedComps) {\r\n\t\t\t\tst.setIsstartcaller(true);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t// find other component that call to the same component that start component calls within model\r\n\t\tList<ComponentConfig> startComps = new ArrayList<ComponentConfig>();\r\n\t\tfor(ComponentConfig st: components) {\r\n\t\t\tif(st.isIsstartcaller())\r\n\t\t\t\tstartComps.add(st);\r\n\t\t}\r\n\t\tList<Integer> calls = new ArrayList<Integer>();\r\n\t\tfor(ComponentConfig st: startComps) {\r\n\t\t\tif(st.isIsstartcaller() && st.getCalls()!=null) {\r\n\t\t\t\tfor(int i: st.getCalls())\r\n\t\t\t\t\tfor(ComponentConfig eachComp: components) {\r\n\t\t\t\t\t\tSystem.out.println(\"\tfind comp that call \"+i+\" \"+eachComp.getCalls());\r\n\t\t\t\t\t\tif(eachComp.getCalls()!=null)\r\n\t\t\t\t\t\t\tfor(int callee: eachComp.getCalls()) {\r\n\t\t\t\t\t\t\t\t// found component that call to the same target\r\n\t\t\t\t\t\t\t\tif(callee == i)\r\n\t\t\t\t\t\t\t\t\teachComp.setIsstartcaller(true);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "protected boolean process() {\n BooleanSupplier step = _steps.peek();\n if (step == null) {\n return false;\n }\n if (step.getAsBoolean()) {\n return true;\n } else {\n _steps.remove();\n return !isFinished();\n }\n }", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "public boolean hasIntermediary() { return true; }", "private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "boolean isCyclic() {\n\n // if we are processing the course currently that is a cyclic graph and we can't\n // do all the courses\n if (processed) {\n return false;\n }\n\n // if we already visited the course and no cycle was found then we can return\n if (visited) {\n return true;\n }\n //else we set the course and visited\n visited = true;\n\n //we then loop through all the prerequisites performing the same check\n for (Course preCourse : pre) {\n if (preCourse.isCyclic()) {\n return true;\n }\n }\n\n //if we arrive here then we have gone through all the combinations and there is no cyclic graph\n visited = false;\n processed = true;\n return false;\n }", "private static void postProcess() {\n Set<Transition> ts = petrinet.getTransitions();\n for(Transition t : ts) {\n List<Flow> outEdges = new ArrayList<Flow>(t.getPostsetEdges());\n List<Flow> inEdges = new ArrayList<Flow>(t.getPresetEdges());\n try {\n Flow f = petrinet.getFlow(t.getId(), \"void\");\n System.out.println(\"contain void!\");\n assert(f.getWeight() == 1);\n //if (outEdges.size() == 1) { // Delete the transition.\n f.setWeight(0);\n //}\n } catch (NoSuchEdgeException e) {}\n }\n }", "@Override\n\tpublic boolean isStartingState(State state, MaxNode maxNode) {\n\t\treturn false;\n\t}", "private void checkAndUpdate() {\n if (csProposeEnter.get()) {\n if (numRepliesReceived.get() == (config.getNumNodes() - 1)\n && requestQueue.peek().getFromID().equals(nodeID)) {\n csProposeEnter.set(false);\n csAllowEnter.set(true);\n }\n }\n }", "public boolean isConversing ( ) {\n\t\treturn extract ( handle -> handle.isConversing ( ) );\n\t}", "public boolean removeDeadTransitions() throws Exception{\n \tArrayList<Integer> st=new ArrayList<Integer>(getStates());//st fixes some arbitrary order of states\n \tboolean [][] canReach=buildConnectionMatrix(st);\n\n \t//collect reachable states\n \tStack<Integer> worklist=new Stack<Integer>();\n \tHashSet<Integer> reachableStates=new HashSet<Integer> ();\n \tfor(String var:pointers.keySet())\n \t\tworklist.push(st.indexOf(pointers.get(var)));\n \twhile(!worklist.empty()){\n \t\tint cur=worklist.pop();\n \t\treachableStates.add(st.get(cur));\n \t\tfor(int i=0;i<st.size();i++)\n \t\t\tif(canReach[cur][i]&&!worklist.contains(i)&&!reachableStates.contains(st.get(i)))\n \t\t\t\tworklist.push(i);\n \t}\n \t//remove unreachable states\n \tboolean hasUnreachableNonReferenceStates=false;//might still be a useless state\n \tfor(TreeAutomaton ta:lt){\n \tHashSet<Integer> toRemove=new HashSet<Integer>();\n \t\tfor(int s:ta.getStates())\n \t\t\tif(!reachableStates.contains(s)){\n \t\t\t\ttoRemove.add(s);\n \t\t\t}\n \tfor(int s:toRemove){\n\t\t\t\tif(!ta.isReferenceTo(s, NULL)&&!ta.isReferenceTo(s, UNDEF)&&ta.referenceTo(s)==-1)\n\t\t\t\t\thasUnreachableNonReferenceStates=true;\n \t\t\tta.removeState(s);\n \t}\n \t}\n \treturn hasUnreachableNonReferenceStates;\n }", "public boolean isFullyCovered() {\n for (boolean i:mCovered) {\n if (!i) return false;\n }\n return true;\n }", "@Override\r\n\tpublic boolean isAllHit() {\r\n\t\treturn priorityElements.isEmpty();\r\n\t}", "protected void handleInitialVertex() {\r\n\t\tVertex v = nextUnvisited();\r\n\t\tif(v != null){\r\n\t\t\tsetHasBeenVisited(v);\r\n\t\t\tprocessVertex(v);\r\n\t\t\tstack.push(v);\r\n\t\t}\r\n\t}", "public boolean shouldContinue() {\n return !shouldBreak;\n }", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "public boolean canIterateAllTransitions () { return false; }", "public boolean continueExecuting()\n\t{\n\t\treturn this.entity.posX != this.xPosition && this.yPosition != this.entity.posY && this.entity.posZ != this.zPosition;\n\t}", "public boolean reducible() {\n if (dfsTree.back.isEmpty()) {\n return true;\n }\n int size = controlFlow.transitions.length;\n boolean[] loopEnters = dfsTree.loopEnters;\n TIntHashSet[] cycleIncomings = new TIntHashSet[size];\n // really this may be array, since dfs already ensures no duplicates\n TIntArrayList[] nonCycleIncomings = new TIntArrayList[size];\n int[] collapsedTo = new int[size];\n int[] queue = new int[size];\n int top;\n for (int i = 0; i < size; i++) {\n if (loopEnters[i]) {\n cycleIncomings[i] = new TIntHashSet();\n }\n nonCycleIncomings[i] = new TIntArrayList();\n collapsedTo[i] = i;\n }\n\n // from whom back connections\n for (Edge edge : dfsTree.back) {\n cycleIncomings[edge.to].add(edge.from);\n }\n // from whom ordinary connections\n for (Edge edge : dfsTree.nonBack) {\n nonCycleIncomings[edge.to].add(edge.from);\n }\n\n for (int w = size - 1; w >= 0 ; w--) {\n top = 0;\n // NB - it is modified later!\n TIntHashSet p = cycleIncomings[w];\n if (p == null) {\n continue;\n }\n TIntIterator iter = p.iterator();\n while (iter.hasNext()) {\n queue[top++] = iter.next();\n }\n\n while (top > 0) {\n int x = queue[--top];\n TIntArrayList incoming = nonCycleIncomings[x];\n for (int i = 0; i < incoming.size(); i++) {\n int y1 = collapsedTo[incoming.getQuick(i)];\n if (!dfsTree.isDescendant(y1, w)) {\n return false;\n }\n if (y1 != w && p.add(y1)) {\n queue[top++] = y1;\n }\n }\n }\n\n iter = p.iterator();\n while (iter.hasNext()) {\n collapsedTo[iter.next()] = w;\n }\n }\n\n return true;\n }", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "protected boolean anyMovesLeft() {\r\n return super.anyMovesLeft();\r\n }", "public boolean has_unprocessed_rules();", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }", "public void solveGame4() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "protected final void checkGC() {\n if (appliedState.relativeClip != currentState.relativeClip) {\n appliedState.relativeClip = currentState.relativeClip;\n currentState.relativeClip.setOn(gc, translateX, translateY);\n }\n\n if (appliedState.graphicHints != currentState.graphicHints) {\n reconcileHints(gc, appliedState.graphicHints,\n currentState.graphicHints);\n appliedState.graphicHints = currentState.graphicHints;\n }\n }", "public boolean hasNext()\n {\n if (curr_ci == null)\n return false;\n\n if (ready_for_fetch)\n // the last sibling is still waiting to be retrieved via next()\n return true;\n\n // Prefetch the next sibling object to make sure it isn't the\n // same as the original source object or a sibling we've already seen.\n do\n {\n sibling = advance();\n } while ((sibling != null) && prevobjs.contains(sibling));\n\n if (sibling == null)\n return false;\n else\n {\n ready_for_fetch = true;\n prevobjs.add(sibling);\n \n return true;\n }\n }", "private void handleStepChange()\n {\n boolean processorsChanged = false;\n myProcessorsLock.writeLock().lock();\n try\n {\n final Iterator<Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>>> procIter = myGeometryProcessorsMap\n .entrySet().iterator();\n final ActiveTimeSpans activeTimeSpans = myActiveTimeSpans;\n while (procIter.hasNext())\n {\n final Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>> entry = procIter.next();\n if (!inProcessRange(entry.getKey(), activeTimeSpans))\n {\n processorsChanged = true;\n procIter.remove();\n myInactiveGeometries.put(entry.getKey(), New.set(entry.getValue().getGeometries()));\n entry.getValue().close();\n }\n }\n\n final Iterator<Entry<ProcessorDistributionKey, Set<Geometry>>> inactiveIter = myInactiveGeometries.entrySet()\n .iterator();\n while (inactiveIter.hasNext())\n {\n final Entry<ProcessorDistributionKey, Set<Geometry>> entry = inactiveIter.next();\n if (inProcessRange(entry.getKey(), activeTimeSpans) && !entry.getValue().isEmpty())\n {\n processorsChanged = true;\n inactiveIter.remove();\n setProcessorConstraints(entry.getKey());\n final GeometryProcessor<? extends Geometry> processor = myProcessorBuilder\n .createProcessorForClass(entry.getKey().getGeometryType());\n processor.receiveObjects(this, entry.getValue(), Collections.<Geometry>emptyList());\n myGeometryProcessorsMap.put(entry.getKey(), processor);\n }\n }\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n if (processorsChanged)\n {\n populateRenderableProcessors();\n }\n }", "private boolean valid(Cell[] siblings, Point p)\n\t{\n\t\tint c = 0;\n\t\tfor (int i = 0; i < siblings.length; i++) {\n\t\t\tif (siblings[i] == Cell.EMPTY)\n\t\t\t\tc++;\n\t\t\tif (siblings[i] == null && crossPoint != null)\n\t\t\t{\n\t\t\t\tcrossPoint = p;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn c == 3;\n\t}", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "public boolean sanity()\n {\n A1List p1 = this.getFirst();\n A1List p2 = this.getFirst();\n while(true){\n p1 = p1.getNext();\n p2 = p2.getNext();\n if (p2 == null) break;\n p2 = p2.getNext();\n if (p2==null) break;\n if (p1 ==p2) return false;\n }\n\n // Checkign whether the sentinel nodes are correct or not.\n A1List curr = this.getFirst();\n if (curr ==null){\n if (this.next ==null){\n if (this.prev.prev != null) return false;\n }\n else if (this.prev ==null){\n if (this.next.next !=null) return false;\n }\n }\n else {\n curr = curr.prev;\n // curr shouldd become the head sentinel;\n if (curr.prev !=null ) return false;\n while (curr.getNext() !=null ){\n curr = curr.next;\n }\n // Now curr becomes the node before tail sentinel\n if (curr.next.next !=null) return false;\n }\n\n // Checking whether the prev of the next of a node points back to that node oe not.\n curr = this.getFirst();\n while(curr!=null){\n if (curr.next.prev != curr) return false;\n curr = curr.getNext();\n }\n\n\n return true;\n }", "public boolean updateState(Landscape scape) {\n\t\tboolean[] emptyElevators = new boolean[this.elevators.length];\n\t\tint emptyCount = 0;\n\t\t\n\t\t\n\t\t\t\t\n\t\t// this finds out which elevators are in which state and what direction they are traveling in so that\n\t\t// we can only act on ones that are in similar situations\n\t\tfor( int i = 0 ; i < this.elevators.length ; i++){\n\t\t\t// empty and has no target floor\n\t\t\tif( this.elevators[i].isEmpty() ){\n\t\t\t\temptyElevators[i] = true;\n\t\t\t\temptyCount++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\temptyElevators[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( ElevatorBank.strategy == ElevatorBank.STRATEGY.GROUP_3){\n\t\t\temptyRule2(emptyElevators, emptyCount);\n\t\t}\n\t\telse{\n\t\t\temptyRule(emptyElevators, emptyCount);\n\t\t}\n\t\t// never dies\n\t\treturn true;\n\t}", "@Override\n protected Collection<BDDState> preCheck(BDDState pState, VariableTrackingPrecision pPrecision) {\n if (pPrecision.isEmpty()) {\n return Collections.singleton(pState);\n }\n // the path is not fulfilled\n if (pState.getRegion().isFalse()) {\n return ImmutableList.of();\n }\n return null;\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "public boolean inPlace() {\n\t\treturn false;\n\t}", "public boolean isStartState() {\r\n\t\treturn flow.getStartState() == this;\r\n\t}", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "public boolean removePredecessor(jq_Field m, Node n) {\n if (predecessors == null) return false;\n Object o = predecessors.get(m);\n if (o instanceof Set) return ((Set)o).remove(n);\n else if (o == n) { predecessors.remove(m); return true; }\n else return false;\n }", "@Override\n public boolean continueExecuting()\n {\n return !this.entity.getNavigator().noPath();\n }", "private boolean weAreTooBrokenToWaitUntilWeAreAbleToCarryThisOut() {\n return (isLineWrappingInvalid() || isShowing() == false);\n }", "public boolean nextState() {\n\t\treturn false;\n\t}", "@Override\n boolean shouldBranch(StatusRegister sr) {\n return !sr.getFlag(7);\n }", "public boolean continueExecuting()\n {\n if (!closestEntity.isEntityAlive())\n {\n return false;\n }\n\n if (field_46105_a.getDistanceSqToEntity(closestEntity) > (double)(field_46101_d * field_46101_d))\n {\n return false;\n }\n else\n {\n return field_46102_e > 0;\n }\n }", "@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }", "public boolean isCyclic() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\treturn true;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void preCalculateCollisions(){\n for(int i = 0; i < ALL_POSSIBLE_STATES.length; i++){\n collisions[i] = new StateMapEntry();\n collisions[i].incomingState = ALL_POSSIBLE_STATES[i];\n collisions[i].resultingState = calculateAllPossibleOutboundStates(ALL_POSSIBLE_STATES[i], ALL_POSSIBLE_STATES);\n //collisions[i].print();\n }\n }", "public boolean shouldContinueExecuting() {\n return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();\n }", "public boolean func_149662_c(IBlockState state) { return false; }", "public void prepareNextPhase() {\n if (evaluatedCells != null) {\n log.info(\"Preparing Next Phase \" + evaluatedCells.size());\n for (Cell cell : evaluatedCells) {\n cell.prepareNextPhase();\n }\n evaluatedCells.clear();\n }\n }", "boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }", "public boolean isTerminatingToSource() {\n return getFlow().getSignificanceToSource() == Flow.Significance.Terminates;\n }", "public boolean isPreFreeze() {\r\n return preFreezeCheck;\r\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}", "public void solveGame() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\n\t\t\tif(!relaxAllControllables){\n\t\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\n\t\t\t\t\t\tcurrentSet.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "public boolean checkNotDone() {\n boolean notDone = false;\n blocksPut = 0;\n \n for(int y = 0; y < buildHeight+1; y++) {\n for(int z = 0; z < buildSize; z++) {\n for(int x = 0; x < buildSize; x++) {\n if(myIal.lookBlock(x, y, z).equals(\"air\")) {\n notDone = true;\n } else {\n blocksPut++;\n }\n }\n }\n }\n\n return notDone;\n }", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }", "private void checkCrossThreads() {\t\r\n\t\t\tisJumppingBetweenThreads = (currentThread != Thread.currentThread());\r\n\t\t}", "protected boolean checkSelfInclusion(Vector mbrs) {\n Object mbr;\n if(mbrs == null)\n return false;\n for(int i=0; i < mbrs.size(); i++) {\n mbr=mbrs.elementAt(i);\n if(mbr != null && local_addr.equals(mbr))\n return true;\n }\n return false;\n }", "public void checkState() {\r\n\t\tout.println(state);\r\n\t\tif(getEnergy() < 80 && getOthers() > 5) {\r\n\t\t\tstate = 1;\r\n\t\t\tturnLeft(getHeading() % 90);\r\n\t\t\tahead(moveAmount);\r\n\t\t}\r\n\t\telse if(getEnergy() < 80 && getOthers() < 5) {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean nextConditionMet() {\n return true;\n }", "@Override\n\tpublic boolean isCovered() {\n\t\treturn (falseCount > 0) && (trueCount > 0);\n\t}", "public void checkPending(@Nonnull final Instruction instruction) {\n final PsiElement element = instruction.getElement();\n if (element == null) {\n // if element is null (fake element, we just process all pending)\n for (Pair<PsiElement, Instruction> pair : pending) {\n addEdge(pair.getSecond(), instruction);\n }\n pending.clear();\n }\n else {\n // else we just process all the pending with scope containing in element\n // reverse order is just an optimization\n for (int i = pending.size() - 1; i >= 0; i--) {\n final Pair<PsiElement, Instruction> pair = pending.get(i);\n final PsiElement scopeWhenToAdd = pair.getFirst();\n if (scopeWhenToAdd == null) {\n continue;\n }\n if (!PsiTreeUtil.isAncestor(scopeWhenToAdd, element, false)) {\n addEdge(pair.getSecond(), instruction);\n pending.remove(i);\n }\n else {\n break;\n }\n }\n }\n }", "public boolean isConsequenceReady() {\r\n\t\treturn ((this.newConsequence != null) &&\r\n\t\t\t\t(this.newConsequence.getRelatedRule() != null));\r\n\t}", "private boolean check() {\n if (!isBST()) System.out.println(\"Not in symmetric order\");\n if (!isSizeConsistent()) System.out.println(\"Subtree counts not consistent\");\n if (!isRankConsistent()) System.out.println(\"Ranks not consistent\");\n return isBST() && isSizeConsistent() && isRankConsistent();\n }", "private static boolean findCyclesInSCC(\n ARGState pStartState,\n ARGState pCurrentState,\n Set<ARGState> pBlockedSet,\n SetMultimap<ARGState, ARGState> pBlockedMap,\n Deque<ARGState> pStack,\n List<List<ARGState>> pAllCycles,\n Set<ARGState> pExcludeSet) {\n\n if (pExcludeSet.contains(pCurrentState)) {\n // Do not regard nodes which were deliberately put into a set of excluded states\n return false;\n }\n\n boolean foundCycle = false;\n pStack.push(pCurrentState);\n pBlockedSet.add(pCurrentState);\n\n for (ARGState successor : pCurrentState.getChildren()) {\n // If the successor is equal to the startState, a cycle has been found.\n // Store contents of stack in the final result.\n if (successor.equals(pStartState)) {\n List<ARGState> cycle = new ArrayList<>();\n pStack.push(pStartState);\n cycle.addAll(pStack);\n Collections.reverse(cycle);\n pStack.pop();\n pAllCycles.add(cycle);\n foundCycle = true;\n } else if (!pBlockedSet.contains(successor)) {\n // Explore this successor only if it is not already in the blocked set.\n boolean gotCycle =\n findCyclesInSCC(\n pStartState, successor, pBlockedSet, pBlockedMap, pStack, pAllCycles, pExcludeSet);\n foundCycle = foundCycle || gotCycle;\n }\n }\n\n if (foundCycle) {\n unblock(pCurrentState, pBlockedSet, pBlockedMap);\n } else {\n for (ARGState s : pCurrentState.getChildren()) {\n pBlockedMap.put(s, pCurrentState);\n }\n }\n pStack.pop();\n\n return foundCycle;\n }", "public void checkInside() {\n checkInsideDone = false;\n }", "private boolean checkUnreachedClassesForContainersAndSubclasses() {\n Iterator<EClass> iterator = unreachedClasses.iterator();\n while (iterator.hasNext()) {\n EClass eClass = iterator.next();\n\n if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) {\n iterator.remove();\n return true;\n }\n }\n return false;\n }", "public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }", "public default boolean needsReagents()\r\n\t{\r\n\t\tfor(ItemStack stack : getReagents()) if(!stack.isEmpty()) return true;\r\n\t\treturn true;\r\n\t}", "public boolean partOfInterruptible() {\r\n\t\tif (parent != null)\r\n\t\t\tif (parent instanceof ActivityFlow)\r\n\t\t\t\treturn ((ActivityFlow)parent).isInterruptible();\r\n\t\treturn false;\r\n\t}", "public boolean validateState(SupplierOrderCacheState state) {\n\t\treturn true;\n\t}", "protected boolean hasEscapeMoves() {\n\t\t\n\t\tfor(final Move move : this.legalMoves) {\n\t\t\tfinal MoveTransition transition = makeMove(move);\n\t\t\t\n\t\t\tif(transition.getMoveStatus().isDone()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "boolean hasNarratorChain();", "public void solveGame3() {\n\t\tlosingStates = new HashSet<S>();\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tint[] uncontrollableCount = new int[game.getStates().size()+1];\n\t\tint[] uncontrollableLosingCount = new int[game.getStates().size()+1];\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> uncontrollableSuccesors;\n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\t uncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\n\t\t\t uncontrollableCount[indexCount] = uncontrollableSuccesors.size();\n\t\t\t uncontrollableLosingCount[indexCount] = 0;\n\t\t\t isUncontrollable[indexCount] = game.isUncontrollable(state);\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableLosingCount[i]++;\n\t\t\t\t\tif (uncontrollableLosingCount[i] == uncontrollableCount[i])\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "@Override\n public boolean preconditionsSatisfied() {\n return true;\n }", "private void optimizeEdgePropFlag() {\n TreeNode currentTreeNode = treeLeaf;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof EdgeTreeNode) {\n EdgeTreeNode edgeTreeNode = EdgeTreeNode.class.cast(currentTreeNode);\n TreeNode nextTreeNode = edgeTreeNode.getOutputNode();\n if (null != nextTreeNode &&\n edgeTreeNode.beforeRequirementList.isEmpty() &&\n edgeTreeNode.afterRequirementList.isEmpty()) {\n if (nextTreeNode instanceof EdgeVertexTreeNode ||\n (nextTreeNode.getNodeType() == NodeType.AGGREGATE &&\n !(nextTreeNode instanceof GroupTreeNode))) {\n edgeTreeNode.setFetchPropFlag(true);\n }\n\n }\n }\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }", "private boolean isAllChildCompleted() {\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() != BlockType.DISCUSSION && !iBlock.isCompleted()) {\n return false;\n }\n }\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() == BlockType.DISCUSSION) {\n iBlock.setCompleted(1);\n }\n }\n return getChildren().size() > 0;\n }" ]
[ "0.66880727", "0.6261363", "0.62296027", "0.60823566", "0.60185647", "0.5981875", "0.5884663", "0.5729853", "0.57221234", "0.5706296", "0.56665236", "0.5598211", "0.55960566", "0.552327", "0.5491908", "0.5464304", "0.5449929", "0.54424", "0.5421142", "0.54077244", "0.5368084", "0.53649634", "0.53425956", "0.5322926", "0.5302775", "0.5286742", "0.52782553", "0.52742153", "0.52670217", "0.5255799", "0.5235678", "0.5230611", "0.52206206", "0.5208276", "0.5205371", "0.5192776", "0.519277", "0.519199", "0.5183363", "0.5178498", "0.5175198", "0.5174772", "0.5150898", "0.51486367", "0.5127551", "0.51155055", "0.510246", "0.50955975", "0.50947577", "0.5091899", "0.50909656", "0.50840676", "0.5083677", "0.5074995", "0.5073373", "0.5072228", "0.50611645", "0.5042222", "0.5032131", "0.5022679", "0.5014299", "0.50103295", "0.500961", "0.50045687", "0.50044304", "0.500372", "0.5000639", "0.5000117", "0.49998802", "0.49945024", "0.4994055", "0.49885204", "0.4982723", "0.49797314", "0.4964472", "0.49637634", "0.49636972", "0.49607906", "0.49531403", "0.49513644", "0.49512166", "0.49511826", "0.4948835", "0.49474847", "0.49461564", "0.49431798", "0.49335888", "0.49334365", "0.4932804", "0.49296382", "0.49264327", "0.49185833", "0.49160707", "0.4914364", "0.4914214", "0.4913871", "0.49003947", "0.4896744", "0.48961604", "0.48854116" ]
0.62704766
1
Description:Initially All 7 Elevators are Located in Different Floors. Elevator will change its currentFloor depending on each requests fulfilling later.
public void initialStatus() { System.out.println("--------- The Current Status of Each Elevator ------"); for(int i =0;i<numberOfElevators; i++) { Elevator temp = new Elevator(); temp.setElevatorNumber(i); initialElevatorFloor = (int)(Math.random()*((55-0)+1)); temp.setCurrentFloor(initialElevatorFloor); availableElevadors.add(temp); System.out.println(" Elevator no." + temp.getElevatorNumber()+" The current Floor " + temp.getCurrentFloor()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\tElevator(){\t\t\t\t\t\t\n\t\tcurrentFloor = 1;\n\t\tcurrentDirection = \"UP\";\n\t\ttotalPassengers = 0;\n\t\ttotalPassDestFloor = new int[8];\n\t\tdestRequest = new char[8];\n\t\t \n\t}", "public Elevator() {\n currentFloor = 1;\n elevatorState = IDLE;\n request = null;\n }", "Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }", "public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }", "public interface Elevator {\n public static final int UP = 1, LEVEL = 0, DOWN = -1, ERROR = -2;\n /** Returns the minimal floor number to which this Elevator can reach(often a negative value).\n * This is the same value as the lowest floor in the building - this elevator belongs to. */\n public int getMinFloor();\n /** Returns the maximal floor number to which this Elevator can reach.\n * This is the same value as the highest floor in the building - this elevator belongs to. */\n public int getMaxFloor();\n /** Returns the time (in seconds it takes the Elevator to open its doors. */\n public double getTimeForOpen();\n /** Returns the time (in seconds it takes the Elevator to close its doors */\n public double getTimeForClose();\n /** Returns the Elavator's current state: {UP, DOWN, LEVEL, ERROR} the state \"LEVEL\" mark that the elevator has reached the floor -\n * and is now ready to load / unload and get new orders. */\n public int getState(); // UP, DOWN, LEVEL, ERROR\n /** Returns the Elevator's current position (floor) as an Integer. */\n public int getPos();\n /** Moves the elevator form the current position to the destination floor. */\n public boolean goTo(int floor);\n /** Allows the elevator to stop in an intermidiate floor between src and dest, assumeing the elevator has not yer pass the desired floor in which it needs to stop. */\n public boolean stop(int floor);\n /** Returns the speed (in floor per second), e.g. if the Elevator speed is 0.4 - it takes it 2.5 seconds to pass a single floor. */\n public double getSpeed();\n /** Return the time in seconds that it takes the elevator to start moving in full speed (assumed to be a fixed value). */\n public double getStartTime();\n /** Return the time in seconds that it takes the elevator to stop moving in full speed (assumed to be a fixed value).*/\n public double getStopTime();\n /**\n * @return the id of this elevator (simple index as in the building).\n * Note: this index should be the same as in the elevator allocation algorithm.\n */\n public int getID();\n}", "public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }", "public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }", "public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}", "public Elevator(ElevatorSpecs spec, int[] floors, int zonedFloors[], float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n this.zonedFloors = zonedFloors;\n }", "public void Elevator() {\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \t\n }", "public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}", "public Elevator() {\n\t\t\n \tsuper(\"Elevator\", RobotConstants.ELEVATOR_P, RobotConstants.ELEVATOR_I, RobotConstants.ELEVATOR_D);\n \t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void update(IFloorModel floor, IElevatorModel elevator) {\n\t\tif(floor == null || elevator == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() NullPointerException\");\n\t\t}\n\t\t\n\t\t//if there are no elevators, do nothing on update. Nothing should or can be updated\n\t\tif(listview_elevators.getItems().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//get current selected elevator\n\t\t//getSelectedIndex() returned -1 if no line is selected\n\t\tif(selectedElevator < 0) {\n\t\t\tthrow new IllegalStateException(\"MainGuiController.update() listview_elevators no line selected!\");\n\t\t}\n\t\t//check if the selected elevator is in manual or automatic mode -> set checkbox and button to right state.\n\t\tif(autoModeAlgo.checkIfInAutoMode(selectedElevator)) {\n\t\t\tcheckbox_manual_mode.setSelected(false);\n\t\t\tbutton_send_to_floor.setDisable(true);\n\t\t}\n\t\telse {\n\t\t\tcheckbox_manual_mode.setSelected(true);\n\t\t\tbutton_send_to_floor.setDisable(false);\n\t\t}\n\t\t\n\t\t//update gui with new values from the given elevator\n\t\t//elevator data\n\t\tPlatform.runLater(() -> {\n\t\t\tInteger targetReranged = elevator.getTarget() + 1;\n\t\t\tlabel_target_text.setText(targetReranged.toString());\n\t\t\tInteger positionReranged = elevator.getPosition() + 1;\n\t\t\tlabel_position_text.setText(positionReranged.toString());\n\t\t\t\n\t\t\tString direction = elevator.getDirection().toString();\n\t\t\tdirection = direction.substring(direction.lastIndexOf('_') + 1);\n\t\t\tdirection = direction.substring(0,1).toUpperCase() + direction.substring(1).toLowerCase();\n\t\t\tlabel_direction_text.setText(direction);\n\t\t\t\n\t\t\tlabel_payload_text.setText(elevator.getPayload().toString());\n\t\t\tInteger speedAbs = Math.abs(elevator.getSpeed());\n\t\t\tlabel_speed_text.setText(speedAbs.toString());\n\t\t\t\n\t\t\tString doorsState = elevator.getDoors().toString();\n\t\t\tdoorsState = doorsState.substring(doorsState.lastIndexOf('_') + 1); \t//get the last part of the enum, this contains the state.\n\t\t\tdoorsState = doorsState.substring(0,1).toUpperCase() + doorsState.substring(1).toLowerCase();\t//all to lower, except the first character\n\t\t\tlabel_doors_text.setText(doorsState);\n\t\t});\n\t\t\n\t\tString floorListViewPrefix = \"Floor \";\n\t\t//stops\n\t\tList<Integer> stops = elevator.getStopsList();\n\t\tif (stops == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() stops\");\n\t\t}\n\t\tObservableList<String> stopsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : stops) {\n\t\t\tstopsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_stops.getItems().setAll(stopsOl));\n\t\t\n\t\t//not serviced floors\n\t\tList<Integer> ignoredFloors = elevator.getIgnoredFloorsList();\n\t\tif (ignoredFloors == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.register() ignoredFloors\");\n\t\t}\n\t\tObservableList<String> ignoredFloorsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : ignoredFloors) {\n\t\t\tignoredFloorsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_no_service.getItems().setAll(ignoredFloorsOl));\n\t\t\n\t\t//calls\n\t\tList<Integer> callsUp = floor.getUpButtonsList();\n\t\tif (callsUp == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsUp\");\n\t\t}\n\t\tObservableList<String> callsUpOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsUp) {\n\t\t\tcallsUpOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_up.getItems().setAll(callsUpOl));\n\t\t\n\t\tList<Integer> callsDown = floor.getDownButtonsList();\n\t\tif (callsDown == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsDown\");\n\t\t}\n\t\tObservableList<String> callsDownOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsDown) {\n\t\t\tcallsDownOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_down.getItems().setAll(callsDownOl));\n\t}", "@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }", "public Elevator(int floorCnt) {\n\t\tthis.floorCnt = floorCnt;\n\t\tinitialize();\n\t}", "public synchronized Elevator requestElevator(int currentWorkerFloor, boolean goingUp) {\n\t\twhile (true) {\n\t\t\tfor (int liftNum = 0; liftNum < NUM_OF_ELEVATORS; liftNum++) {\n\t\t\t\tif (lift[liftNum].getCurrentFloor() == currentWorkerFloor && lift[liftNum].isDirectionUp() == goingUp) {\n\t\t\t\t\treturn lift[liftNum];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Elevator() {\n boolean elevatorInvert = false;\n boolean elevatorPhase = false;\n spx = new SpectrumVictorSPX(Constants.ELEVATOR_SPX);\n srx = new LeaderTalonSRX(Constants.ELEVATOR_SRX, spx);\n srx.setNeutralMode(NeutralMode.Brake);\n srx.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);\n srx.setSensorPhase(elevatorPhase);\n srx.setInverted(elevatorInvert);\n\n // Enable Soft Limits\n srx.configForwardSoftLimitEnable(false);\n srx.configForwardSoftLimitThreshold(posUpLimit);\n srx.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n \n srx.configReverseSoftLimitEnable(false);\n srx.configReverseSoftLimitThreshold(posDownLimit);\n srx.configReverseLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_13_Base_PIDF0, 10);\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_10_MotionMagic, 10);\n\n // Set Ramp Rate and voltage compensation\n srx.configClosedloopRamp(0.25);\n srx.configVoltageCompSaturation(11.5);\n srx.enableVoltageCompensation(true);\n setMotionMagicParams();\n }", "private void initializeElevatorMotor()\n {\n Rectangle base = new Rectangle(shaftWidth*.3, location, shaftWidth*.4, floorHeight*.8);\n Rectangle latch = new Rectangle(shaftWidth*.45, location-5, shaftWidth*.1, floorHeight*.2);\n\n elevator = Shape.union(base, latch);\n elevator.setFill(Color.valueOf(\"#C0C0C0\"));\n\n elevatorTranslate = 0;\n elevatorOffset = 0;\n elevatorSpeed = 20;\n\n motorTimeline = new Timeline(new KeyFrame(Duration.millis(elevatorSpeed), e -> {\n if(location+elevatorOffset <= shaftHeight-60 && location+elevatorOffset >= 10) {\n if(location <= destination && location >= destination-10)\n {\n// System.out.println(location + \" OF \" + (destination) + \" / \" + (destination-10) + \" \" + (10 - destination/floorHeight));\n// System.out.println(\"EARLY STOP\");\n motorTimeline.pause();\n }\n\n elevatorTranslate += elevatorOffset;\n location += elevatorOffset;\n\n elevator.setTranslateY(elevatorTranslate);\n frame.setTranslateY(elevatorTranslate);\n leftDoor.setTranslateY(elevatorTranslate);\n rightDoor.setTranslateY(elevatorTranslate);\n }\n else motorTimeline.pause();\n }));\n motorTimeline.setCycleCount(Animation.INDEFINITE);\n }", "public void processRequest(Request currentRequest)\r\n\t{\r\n\t\tint nearestFloor=55;\r\n\t\tElevator nearestElevatorAvailable = new Elevator();\r\n\t\t\r\n\tfor(int i=0 ; i < availableElevadors.size();i++)\r\n\t{\r\n\t\t\r\n\t\tif (nearestFloor >= Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour()))\r\n\t\t{\r\n\t\t\tnearestFloor = Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour());\r\n\t\t\tnearestElevatorAvailable= availableElevadors.get(i);\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t}\r\n\tSystem.out.println(\" Enjoy your ride with Elevator no\" + nearestElevatorAvailable.getElevatorNumber());\r\n\r\n\tnearestElevatorAvailable.setCurrentFloor(currentRequest.getDestinationflour());\r\n\tavailableElevadors.remove(nearestElevatorAvailable);\r\n\toccupiedElevadors.add(nearestElevatorAvailable);\r\n\t\t\r\n\t}", "public void updateState() {\n //check if arrived\n if (destinations.contains(currentFloor)) {\n destinations.removeIf(n -> (n == currentFloor));\n System.out.println(\"\\t\\tElevator #\" + id + \": Arrived at floor #\" + currentFloor + \".\");\n }\n\n // take stock of assigned stops and change direction if required\n if (destinations.isEmpty()) {\n currentDirection = Direction.STOP;\n } else if ((currentDirection == Direction.UP && Collections.max(destinations) < currentFloor)) {\n currentDirection = Direction.DOWN;\n Collections.sort(destinations);\n Collections.reverse(destinations);\n } else if (currentDirection == Direction.DOWN && Collections.min(destinations) > currentFloor){\n currentDirection = Direction.UP;\n Collections.sort(destinations);\n }\n\n //Decide which way to go if the elevator is stopped and has gained a destination\n if (currentDirection == Direction.STOP && destinations.size() != 0) {\n int destinationFloor = Integer.MAX_VALUE;\n for (final Integer d : destinations) {\n if (Math.abs(currentFloor - d) < Math.abs(currentFloor - destinationFloor)) {\n destinationFloor = d;\n }\n }\n\n currentDirection = (destinationFloor > currentFloor ? Direction.UP : Direction.DOWN);\n }\n\n // update current floor\n if (currentDirection == Direction.DOWN) {\n currentFloor--;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved down to floor #\" + currentFloor + \".\");\n } else if (currentDirection == Direction.UP) {\n currentFloor++;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved up to floor #\" + currentFloor + \".\");\n }\n }", "public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}", "@Override\r\n\tpublic int user_request(Floor current_floor, Elevator elevator) \r\n\t{\n\t\tif(current_floor.floor_door.state==0 && elevator.elevator_door.state==0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public void run() {\n\t\ttry {\n\t\t\tif (floorId >= elevator.getCurrentFloorId()) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.UP);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going up from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId > elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.DOWN);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going down from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId < elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t\televator.isBusy = false;\n\t\t\t}\n\t\t\tif(elevator.shouldBeStopped) {\n\t\t\t\televator.shouldBeStopped=false;\n\t\t\t\tSystem.out.println(\"Elevator is stopped\");\n\t\t\t} else {\n\t\t\t\televator.notifyObservers();\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public Elevator(int id, int maximumLoad, int currentFloorId) {\n\t\tthis.id = id;\n\t\tthis.currentFloorId = currentFloorId;\n\t\tthis.doorStatus = ElevatorDoorStatus.CLOSED;\n\t\tthis.currentDirection = ElevatorStatus.STATIONARY;\n\t}", "public boolean updateElevator() { \n \t//If no people are waiting, do nothing\n if (queue.isEmpty()){\n \t\treturn true;\n \t}\n \n //Update total wait time\n for (int i = 0; i < queue.size(); i++) {\n if (queue.get(i).getActionType() == ElevatorAction.PICKUP) {\n totalWaitTime = totalWaitTime.add(BigInteger.ONE);\n queue.get(i).getPassenger().tempwT += 1;\n }\n }\n \n //Update total travel time\n totalTravelTime = totalTravelTime.add(BigInteger.valueOf((long)currentPassengers.size()));\n for (int i = 0; i < currentPassengers.size(); i++) {\n currentPassengers.get(i).temptT += 1;\n }\n \n //Passengers boarding, no movement\n if (waitingTime > 0) {\n waitingTime -= 1;\n return true;\n }\n \n ElevatorQueueObject q = queue.getFirst();\n \n //If the elevator is full, fetch the next passenger who can disembark successfully\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch next destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Check destination is valid\n if (!containsFloor(floors, dest)) {\n return false;\n }\n \n //Update Elevator Position\n float tempFloor = currentFloor;\n float newFloor = currentFloor;\n \n if (dest > currentFloor) { //Going up\n newFloor += (specs.getCarSpeed() / distancePerFloor);\n if (dest <= newFloor) { //Reached destination\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n } else if (dest < currentFloor) { //Going down\n newFloor -= (specs.getCarSpeed() / distancePerFloor);\n if (dest >= newFloor) { //Reached destination?\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n }\n\n //Update travel distance \n totalTravelDistance = totalTravelDistance.add(\n BigDecimal.valueOf(Math.abs(tempFloor - currentFloor) * distancePerFloor)\n );\n \n //Everything okay\n return true;\n }", "public int chooseElevator() {\n\t\tPair<Integer,Direction> eleLoc;\n\t\tHashMap<Integer, Pair<Integer, Direction>> mapClone = map.getElevatorsData(); //get map of up to date elevator locations\n\t\tint distance;\n\t\tint minDist=9999;\n\t\tint choice = -1;\n\t\t//iterate over all elevators in the system\n\t\tfor(int i = 1;i<=Constants.elevator;i++) {\n\t\t\teleLoc = mapClone.get(i);//get elevators current system\n\t\t\tdistance =calculateDistance(eleLoc);\n\t\t\t//System.out.println(\"Elevator \" + i + \" is \" + distance + \" away from next job\");\n\t\t\t//if distance is optimal\n\t\t\tif(distance >=0 && distance <minDist) {\n\t\t\t\tchoice = i;\n\t\t\t\tminDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn choice;\n\t}", "private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }", "public void update (Elevator e, int name) {\n elevator = e;\n // Update the numerical information\n getInfo ();\n // Create a label for its current condition\n buildStrings (name, currCap, maxCap, currFloor, state);\n slider.setValue (currFloor);\n }", "public int getElevatorState() {\n return elevatorState;\n }", "private void openDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door opened at floor \"+ floor);\r\n\t}", "public void unloadPassengers(Elevator ev1) throws ElevatorFullException\n { \n // Unload passengers from elevator\n\t//---------------------------------- \n int unloading= ev1.passengersForFloor(floorNum);\n ev1.unloadPassenger(unloading);\n System.out.println(\"unloaded \" + unloading + \" passenger(s).\");\n\n\n\t// If the passengers are unloading onto floor #1, we assume that\n\t// they'll leave the building once they exit the elevator.\n\t//--------------------------------------------------------------- \n\tif(floorNum != 1)\n\t{ occupants+= unloading;\n\t}\n\n\n\t// With the exception of passengers that were just unloaded, load\n\t// current floor occupants onto the elevator. According to the spec,\n\t// every occupant on a floor will be boarded with a destination of\n\t// baseFloor.\n\t//---------------------------------------------------------------------- \n\tint boarding= occupants - unloading;\n\tif(boarding > 0)\n\t{ for(int i=1; i<=boarding; i++)\n\t { try\n\t { ev1.boardPassenger(ev1.baseFloor);\n\t occupants--;\n }\n\t\tcatch (ElevatorFullException e)\n\t\t{ System.out.print(\"ElevatorFullException Caught:\");\n\t\t System.out.print(\" leaving \" + occupants + \" occupants on the floor; \");\n\t\t System.out.print(\" will return later.\\n\");\n\t\t i=boarding+1; //break out of boarding loop. \n\t\t}\n\t }\n }\n\n\n\t// For this simulation, we assume that all unloaded passengers will\n\t// be ready to leave the building on the next elevator run. Thus we\n\t// will signal the elevator to return for them.\n\t//--------------------------------------------------------------------- \n\tif(occupants >= 1)\n\t{ ev1.registerRequest(floorNum);\n\t}\n\n\n // show status of floor before proceeding.\n System.out.println(this);\n System.out.println(ev1 + \"\\n\");\n }", "private Elevator(ElevatorSpecs s, int[] f, int[] z, LinkedList<ElevatorQueueObject> q, \n LinkedList<Passenger> c, int w, float cf, BigInteger twt, BigInteger ttt,\n BigDecimal ttd, BigInteger ps) {\n specs = s;\n floors = f;\n queue = q;\n currentPassengers = c;\n waitingTime = w;\n currentFloor = cf;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = twt;\n totalTravelTime = ttt;\n totalTravelDistance = ttd;\n passengersServed = ps;\n zonedFloors = z;\n }", "public static void main(String[] args) {\n Elevator theElevator = new Elevator();\n\n theElevator.boardPassenger(2);\n theElevator.boardPassenger(2);\n theElevator.boardPassenger(3);\n\n System.out.println(theElevator);\n\n for(int i=1;i<21;i++){\n theElevator.move();\n }\n \n\n \n\n }", "public boolean isElevatorOpen(int elevator) {\r\n\r\n return isButtonPushedAtFloor(getCurrentFloorForElevator(elevator));\r\n }", "public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }", "public void ascend() {\n \t\n elevator1.set(0.9);\n elevator2.set(0.9); \n }", "public void setElevatorState(int elevatorState) {\n this.elevatorState = elevatorState;\n }", "public void transport(int startFloor, int endFloor, boolean up){\r\n\t\t\r\n\t\tisIntransit = true;\r\n\t\tdirectionUp = up;\r\n\t\topenDoor(startFloor);\r\n\t\tcloseDoor(startFloor);\r\n\t\t\r\n\t\t//Traverse floor and report.\r\n\t\tint trip = endFloor-startFloor; \r\n\t\tint finalCount = trip*1000;\r\n\t\tint j = 0 ;\r\n\t\televatorAt = startFloor ;\r\n\t\tfor(int i=0; i<finalCount; i++){\t\t\t\r\n\t\t\tj++;\r\n\t\t\tif(j==1000){\r\n\t\t\t\tif(up){\r\n\t\t\t\t\televatorAt++;\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\televatorAt--;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Elevator no. \" + id + \" at \"+ elevatorAt);\r\n\t\t\t\tj=0;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\tfloorsTraversed += endFloor - startFloor; \r\n\t\ttrips++;\r\n\t\tif(trips==100){\r\n\t\t\tserviccerequired = true; \r\n\t\t}\r\n\t\t\r\n\t\topenDoor(endFloor);\r\n\t\tcloseDoor(endFloor);\r\n\t\t\r\n\t\tisIntransit = false;\r\n\t}", "@Override\n public void requestPickup(int floor, int direction) {\n // Pick an elevator at rest\n for (Elevator elevator : elevators) {\n if (elevator.getDirection() == 0) {\n elevator.getRequests().offer(floor);\n return;\n }\n }\n\n // Pick an elevator with least load\n Elevator minElevator = elevators.get(0);\n for (Elevator elevator : elevators) {\n if (elevator.getRequests().size() < minElevator.getRequests().size()) {\n minElevator = elevator;\n }\n }\n // add request\n minElevator.getRequests().offer(floor);\n }", "@Override\n public void moveElevator(final int toFloor, final int elevatorId) {\n log.debug(\"moving {} to {}\", elevatorId, toFloor);\n\n Elevator elevator = elevatorRepository.getElevator(elevatorId);\n elevator.setAddressedFloor(toFloor);\n elevator.setBusy(true);\n elevator.setDirection(calculateDirection(toFloor, elevator.getCurrentFloor()));\n\n elevatorRepository.updateElevator(elevator);\n }", "public int getElevatorCount() { return this.elevators == null ? 0 : this.elevators.length; }", "public void goToFloor(int floorId, ElevatorRequestType type) {\n\t\tisBusy = true;\n\t\tif(currentFloorId == floorId) {\n\t\t\tSystem.out.print(\"\\nElevator \" + id + \" is already at floor \" + floorId + \"\\n\");\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t}\n\t\t\tisBusy = false;\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tElevatorTask task = new ElevatorTask(this, floorId, type);\n\t\ttask.start();\n\t}", "public void advanceFloor(){\n //TODO: write method to move onto next floor\n }", "public boolean hasElevatorFloorUnlocked(int floor) {\n return ((floor/5) <= this.elevatorLevelsUnlocked);\n }", "void enterElevator(final ElevatorCar ec){\n elevatorX=ec.xPos;\r\n Double speed= Math.random()*3+1.5;\r\n riderAni.setImage(image);\r\n TranslateTransition tt = new TranslateTransition();\r\n tt.setNode(riderAni);\r\n //tt.setFromX(boundsInScene.getMaxX());\r\n tt.setToX(ec.xPos-ec.getStandingRoom());\r\n tt.setDuration(Duration.seconds(speed));\r\n TranslateTransition fl = new TranslateTransition();\r\n fl.setNode(floorLabel);\r\n fl.setToX(ec.xPos-ec.getStandingRoom()-5);\r\n fl.setDuration(Duration.seconds(speed));\r\n TranslateTransition tl = new TranslateTransition();\r\n tl.setNode(timerLabel);\r\n tl.setToX(ec.xPos-ec.getStandingRoom()-5);\r\n tl.setDuration(Duration.seconds(speed));\r\n ParallelTransition pt = new ParallelTransition(tt,fl,tl);\r\n pt.play();\r\n pt.onFinishedProperty().set(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent event) {\r\n riderAni.setOpacity(.5);\r\n riderAni.setImage(image3);\r\n }\r\n });\r\n\r\n }", "public void checkAvaliableElevators()\r\n\t{\r\n\t\tSystem.out.println(\"--------- Checking Elevators Current Status ------\");\t\r\n\t\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tfor(int i=0; i <numberOfElevators-3; i++) {\r\n\t\t\t\tavailableElevadors.add(occupiedElevadors.remove(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"--------- Elevators are available again ------\");\r\n\t\t\r\n\t\t}else {\r\n\t\t\tfor(int i=0;i<availableElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + availableElevadors.get(i).getElevatorNumber() +\" ready for Requests\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<occupiedElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + occupiedElevadors.get(i).getElevatorNumber() +\" is Occupied\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void updateElevatorStatus(Integer elevatorID, int currentFloor, int destinationFloor) {\n ElevatorController controller = elevatorControllers.get(elevatorID);\n if (controller == null) {\n System.err.println(\"Failed to update status of elevator with ID: \" + elevatorID.toString());\n return;\n }\n controller.setElevatorCurrentFloor(currentFloor);\n Request request = RequestFactory.createRestartRequest(elevatorID, destinationFloor);\n try {\n scheduler.enqueueInternalRequest(request, controller);\n } catch (ElevatorsSchedulerException e) {\n //unlikely to happen as created request is validated with use of factory design pattern\n System.err.println(e.getMessage());\n }\n }", "public interface ElevatorSelectionStrategy {\n\tElevator getElevatorFor(Passenger passenger, Floor departureFloor, Environment env);\n}", "public static void main(String args[]){\n\t\tElevator E1 = new Elevator();\n\t\tE1.F[3].setPassengersWaiting(4);\n\t\tE1.F[5].setPassengersWaiting(3);\n\t\tE1.F[6].setPassengersWaiting(4);\n\t\t\n\t\ttry {E1.boardPassengers(2,2,3);}\n\t\tcatch (ElevatorFullException exc){\n\t\t\tSystem.out.println(\"ELEVATOR IS AT ITS FULL CAPACITY\");\n\t\t\t}\n\t\tE1.registerRequest();\n\n\t\tE1.move();\n\t\tSystem.out.println(\"------------------------------------------------------------------------\");\n\t\tE1.move();\n\t\tSystem.out.println(\"------------------------------------------------------------------------\");\n\t\tE1.move();\n\t\tSystem.out.println(\"------------------------------------------------------------------------\");\n\t\tE1.move();\n\t}", "public Elevator(final int id) {\n this.id = id;\n }", "public int currentFloor(){\n return currentFloor;\n }", "public static void main(String[] args) {\n\n\t\tint floors[]= {0,1,2};\n\t\tint currentFloor = 0; //initialize my floor to 0\n\t\tint desiredFloor = 0; //initialize my floor to 0\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println (\"What floor are you on?\"); \n\t\tSystem.out.println (\"Press \\\"0\\\" for Basement\");\n\t\tSystem.out.println (\"Press \\\"1\\\" for for the First Floor\");\n\t\tSystem.out.println (\"Press \\\"2\\\" for the Second Floor\");\n\t\t\n\t\tcurrentFloor = scan.nextInt(); \n\n\t\tSystem.out.println(\"What floor are you going to?\");\n\t\t{\n\t\t\t desiredFloor = scan.nextInt();\n\t\t\t \n\t\t\t for (int i = 0; i<floors.length; i++)\n\t\t\t {\n\t\t\t if (currentFloor == floors[i]) {\n\t\t\t\t System.out.println (\"Elevator moves \" +currentFloor+ \" floors\");\n\t\t\t\t System.out.println (\"Elevator door opens\");\n\t\t\t\t System.out.println (\"*Person walks in*\");\n\t\t\t\t System.out.println (\"Elevator door closes\");\n\t\t\t\t System.out.println (\"Elevator moves \" +(desiredFloor-currentFloor)+ \" floors\");\n\t\t\t\t System.out.println (\"Elevator door opens\");\n\t\t\t\t System.out.println (\"*Person walks out*\");\n\t\t\t\t System.out.println (\"Elevator door closes\");\n\t\t\t\t System.out.println (\"Elevator moves \" +(0- desiredFloor)+ \" floors\");}\t \n\t\t\t }\n\t\t}\n\t}", "public Point getElevatorPosition() {\n return this.elevator.getOrigin();\n }", "private void changeState() {\n if (jobs.contains(this.currentFloor)){\n throw new AssertionError(\"Changing state of elevator no \" + ElevatorID + \" on destination floor\");\n }\n\n // empty job set -> going to IDLE state\n if (jobs.size() == 0) {\n this.currentState = IDLE;\n return;\n }\n\n Integer closestFloorDownwards = jobs.floor(this.currentFloor);\n Integer closestFloorUpwards = jobs.ceiling(this.currentFloor);\n\n switch (this.currentState) {\n // if elevator is in idle state then we need to go to the closest job possible\n case IDLE -> {\n Integer closestFloor =\n findClosestFloor(this.currentFloor, closestFloorUpwards, closestFloorDownwards);\n\n if (closestFloor < this.currentFloor) {\n this.currentState = DOWN;\n } else {\n this.currentState = UP;\n }\n }\n case DOWN -> {\n if (closestFloorDownwards != null) { // if there exists a predecessor in `jobs`\n this.currentState = DOWN; // let's continue going down\n } else {\n this.currentState = UP; // otherwise we need to go up\n }\n }\n case UP -> {\n if (closestFloorUpwards != null) { // if there exists a successor in `jobs`\n this.currentState = UP; // let's continue going up\n } else {\n this.currentState = DOWN; // otherwise we need to go down\n }\n }\n }\n }", "public ElevatorSimulation(){ \n for (int onFloor = 0; onFloor< 5; onFloor++){\n passengerArrivals.add(new ArrayList<PassengerArrival>());\n }\n \n parseFile();\n\n for (int i = 0; i < a; i++){\n elevatorArray[i] = new Elevator(i+1, aBuildingManager);\n threadArray[i] = new Thread(elevatorArray[i]);\n\n }\n writeToConsoleLock = new ReentrantLock();\n \n }", "private void createFloor2Connections(IndoorVertex stairs, IndoorVertex elevator)\n {\n armesConnectionNorth = new IndoorVertex(building, new XYPos(1000, 151.19), 2);\n armesConnectionSouth = new IndoorVertex(building, new XYPos(1000, 158.75), 2);\n IndoorVertex rm239_fac_science = new IndoorVertex(building, new XYPos(1030.24, 97.11), 2);\n IndoorVertex _30_151 = new IndoorVertex(building, new XYPos(1030.24, 151.19), 2);\n IndoorVertex _30_179 = new IndoorVertex(building, new XYPos(1030.24, 179.65), 2);\n exit = new IndoorVertex(building, new XYPos(1030.24, 188.41), 2);\n IndoorVertex rm211_library = new IndoorVertex(building, new XYPos(1080.25, 173.29), 2);\n IndoorVertex _44_160 = new IndoorVertex(building, new XYPos(1044.19, 160.49), 2);\n IndoorVertex _44_173 = new IndoorVertex(building, new XYPos(1044.19, 173.29), 2);\n IndoorVertex _30_173 = new IndoorVertex(building, new XYPos(1030.24, 173.29), 2);\n IndoorVertex _30_158 = new IndoorVertex(building, new XYPos(1030.24, 158.75), 2);\n IndoorVertex _44_154 = new IndoorVertex(building, new XYPos(1044.19, 154.1), 2);\n IndoorVertex _30_154 = new IndoorVertex(building, new XYPos(1030.24, 154.1), 2);\n\n //Rooms\n ArrayList<IndoorVertex> rm211 = new ArrayList<>();\n rm211.add(rm211_library);\n\n rooms.put(\"211\", rm211);\n\n ArrayList<IndoorVertex> rm239 = new ArrayList<>();\n rm239.add(rm239_fac_science);\n\n rooms.put(\"239\", rm239);\n\n //Connections to other points\n connectVertex(armesConnectionSouth, _30_158);\n connectVertex(armesConnectionNorth, _30_151);\n connectVertex(_30_151, rm239_fac_science);\n connectVertex(_30_151, _30_154);\n connectVertex(_30_154, _44_154);\n connectVertex(_30_154, _30_158);\n connectVertex(_30_158, _44_154);\n connectVertex(_30_158, _44_160);\n connectVertex(_30_158, _30_173);\n connectVertex(_30_173, _44_173);\n connectVertex(_30_173, _30_179);\n connectVertex(_30_179, exit);\n connectVertex(_44_154, elevator);\n connectVertex(_44_154, _44_160);\n connectVertex(_44_160, stairs);\n connectVertex(_44_160, _44_173);\n connectVertex(_44_173, rm211_library);\n\n }", "public final void addFloor(Floor floor) {\n/* 6453 */ if (this.floors == null)\n/* 6454 */ this.floors = new HashSet<>(); \n/* 6455 */ this.floors.add(floor);\n/* 6456 */ if (floor.isStair())\n/* */ {\n/* 6458 */ Stairs.addStair(hashCode(), floor.getFloorLevel());\n/* */ }\n/* 6460 */ if (this.vitems != null)\n/* */ {\n/* 6462 */ for (Item pile : this.vitems.getPileItems())\n/* */ {\n/* 6464 */ pile.updatePosZ(this);\n/* */ }\n/* */ }\n/* 6467 */ if (this.watchers != null)\n/* */ {\n/* 6469 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6473 */ vz.updateFloor(this.structure.getWurmId(), floor);\n/* */ }\n/* 6475 */ catch (Exception e) {\n/* */ \n/* 6477 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ }", "public void boardPassenger(int floor){\n _passengersOnboard +=1;\n switch(floor){\n case 1: Floor.FIRST.makeDestinationRequest();\n Floor.FIRST.addQueuedPassenger();\n break;\n case 2: Floor.SECOND.makeDestinationRequest();\n Floor.SECOND.addQueuedPassenger();\n break;\n case 3: Floor.THIRD.makeDestinationRequest();\n Floor.THIRD.addQueuedPassenger();\n break;\n case 4: Floor.FOURTH.makeDestinationRequest();\n Floor.FOURTH.addQueuedPassenger();\n break;\n case 5: Floor.FIFTH.makeDestinationRequest();\n Floor.FIFTH.addQueuedPassenger();\n break;\n case 6: Floor.SIXTH.makeDestinationRequest();\n Floor.SIXTH.addQueuedPassenger();\n break;\n case 7: Floor.SEVENTH.makeDestinationRequest();\n Floor.SEVENTH.addQueuedPassenger();\n break;\n }\n }", "public ElevatorScene() {\t\t\n\t\tif(exitedCount == null) {\n\t\t\texitedCount = new ArrayList<Integer>();\n\t\t} else {\n\t\t\texitedCount.clear();\n\t\t}\n\t\t\n\t\televators = new ArrayList<Elevator>();\n\t\tpersonCount = new ArrayList<Integer>();\n\t\t\n\t\texitedCountMutex = new Semaphore(1);\n\t\tsem = new Semaphore(6);\n\t\t\n\t\t\n\t\tnumberOfPeopleWaiting = 0;\n\t}", "public void registerElevator(Integer elevatorID, int startFloor) {\n if (elevatorControllers.size() == ELEVATORS_LIMIT || elevatorControllers.containsKey(elevatorID)) {\n System.err.println(\"Failed to register elevator with ID: \" + elevatorID.toString());\n return;\n }\n Elevator elevator = new Elevator(elevatorID, startFloor);\n ElevatorController controller = new ElevatorController(elevator);\n elevatorControllers.put(elevatorID, controller);\n }", "public Integer selectElevator(int floorId) {\n Integer elevatorId = null;\n for(Elevator elevator : elevatorList) {\n for(Button button : elevator.buttonList) {\n if(!button.isPressed()) {\n button.setPressed(true);\n elevatorId = elevator.getId();\n }\n }\n }\n return elevatorId;\n }", "@Test\n\tpublic void returnNullWhenNoneIdel() {\n\t\t\n\t\twhen(elevatorRepository.getElevators()).thenReturn(elevators);\n\t\tElevator elevator = elevatorAllocateService.requestElevator(task);\n\t\tassertNull(elevator);\n\t}", "public int getCurrentFloor();", "public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }", "public void setElevatorDestination(int level) {\n if (this.levels[level] == null) {\n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n this.elevator.setDestinationArea(this.levels[level]);\n this.elevator.setDestinationGateway(this.levels[level].getEntranceGateway());\n }", "public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }", "public int transferPeople(Elevator e)\n\t{\n\t\tint transfered = e.pList.size();\n\t\tfor(int i = 0; i < e.pList.size(); i++)\n\t\t{\n\t\t\tPerson p = e.pList.get(i);\n\t\t\tif(p.destination.floorNumber == this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"person leaving elevator \" + e.id + \" on floor \" + this.floorNumber);\n\t\t\t\te.pList.get(i).exit();\n\t\t\t\te.pList.remove(i);\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.NOTFULL;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\ttransfered-=e.pList.size();\n\t\ttransfered+=this.pList.size();\n\t\tint available = e.getTotalCapacity()-e.getCurrentCapacity();\n\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.IDLE)\n\t\t{\n\t\t\tif(pList.size()!=0&&pList.get(0).destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going up\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGUP;\n\t\t\t}\n\t\t\telse if(pList.size()!=0&&pList.get(0).destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going down\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGDOWN;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\t\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGUP)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber > this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGDOWN)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber < this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(available==0)\n\t\t\t{\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.FULL;\n\t\t\t\tSystem.out.println(\"Elevator \" + e.id + \" is now full\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttransfered-=this.pList.size();\n\t\tSystem.out.println(\"transfered \" + transfered + \" on floor \" + this.floorNumber + \" number of people still on floor is \" + pList.size());\n\t\treturn transfered;\n\t}", "public void update()\n\t{\n\t\tif(pList.size()==0)\n\t\t\treturn;\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(p.destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tup = true;\n\t\t\t}\n\t\t\telse if(p.destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tdown = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpList.remove(i);\n\t\t\t}\n\t\t}\n\t\tif(up)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.UPPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event,0);\n\t\t}\n\t\tif(down)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.DOWNPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event, 0);\n\t\t}\n\t}", "public void setFloor() {\n if (!onFloor.isEmpty()) {\n onFloor.clear();\n selectable.clear();\n boxScrollStart.getChildren().clear();\n boxScrollDestination.getChildren().clear();\n }\n\n selectable.clear();\n selectable.addAll(getNodesOnFloor());\n\n populateScrollPanes(selectable);\n filterStartMenuButton.setText(\"Current Floor\");\n }", "public void boardPassenger(int dstFloor) throws ElevatorFullException {\n \n if( floorVerfication(dstFloor)){\n //if we were to add one, would we be at or less @ capacity \n if( currentCapacity() <= ( Elevator.CAPACITY - 1 ) )\n destinedPassengers[dstFloor]++;\n else\n throw new ElevatorFullException();\n \n } else {\n System.out.println(\"WRONG FLOOR N00B\");\n }\n \n }", "void schedule(List<Queue<Integer>> requests, List<Elevator> elevators, int floors);", "public void setFloor(int floor) {\n this.floor = floor;\n }", "protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }", "public RegElevator(int _elevatorNum, int _maxFloors, int _doorOpenTime, int _speed, int _maxIdleTime, int _maxOccup) {\n\n\t\televatorNum = _elevatorNum + 1;\n\t\tcurrFloor = DEFAULT;\n\t\tthis.setState(IDLING);\n\t\t\n\t\t\tif (_doorOpenTime < 0) throw new IllegalArgumentException(\"doorOpenTime cannot be a negative value: \" + doorOpenTime);\n\t\t\telse\n\t\t\t\tthis.setdoorOpenTime(_doorOpenTime);\n\t\t\n\t\t\tif (_speed <= 0) throw new IllegalArgumentException(\"Speed requires a value greater than 0: \" + speed);\n\t\t\telse\n\t\t\t\tthis.setSpeed(_speed);\n\t\t\t\n\t\t\tif (maxIdleTime < 0) throw new IllegalArgumentException(\"maxIdleTime cannot be a negative value: \" + maxIdleTime);\n\t\t\telse\n\t\t\t\tthis.setMaxIdleTime(_maxIdleTime);\n\n\t\t\tif (_maxFloors < 0) throw new IllegalArgumentException(\"maxFloors cannot be a negative value: \" + maxFloors);\n\t\t\telse\n\t\t\t\tthis.setMaxFloors(_maxFloors);\n\n\t\t\tif (_maxOccup < 0) throw new IllegalArgumentException(\"maxFloors cannot be a negative value: \" + maxFloors);\n\t\t\telse\n\t\t\t\tthis.setMaxOccup(_maxOccup);\n\t}", "public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }", "public static void main(String args[])\n\t{\n\t\t// initialize an elevator bank\n\t\tElevatorBank bank = new ElevatorBank(0, 0, 3, 5, 8);\n\t\tSystem.out.println(\"Init => \" + bank);\n\t\t\n\t\t// fill the bank with some passengers\n\t\tfor (int i = 0; i < bank.getFloorCount(); i++)\n\t\t{\n\t\t\tif (i % 2 == 0)\n\t\t\t\tbank.addPassenger(new Passenger(i, i - 1));\n\t\t\telse\n\t\t\t\tbank.addPassenger(new Passenger(i, i + 1));\n\t\t}\n\t\tSystem.out.println(\"Adds => \" + bank);\n\t\t\n\t\t// get an elevator\n\t\tElevator lift = bank.elevators[0];\n\t\t\n\t\t// see who the elevator would get going up\n\t\tlift.setTargetDirection(Elevator.Direction.UP);\n\t\tfor (int i = 0; i < bank.getFloorCount(); i++)\n\t\t{\n\t\t\tlift.setCurrentFloor(i);\n\t\t\tSystem.out.println(lift + \" => \" + bank.getNearestPassenger(lift));\n\t\t\tSystem.out.println(\"\\tqueue => \" + bank.getFloorQueue(lift));\n\t\t}\n\t\t\n\t\t// see who the elevator would get going down\n\t\tlift.setTargetDirection(Elevator.Direction.DOWN);\n\t\tfor (int i = bank.getFloorCount()-1; i >= 0; i--)\n\t\t{\n\t\t\tlift.setCurrentFloor(i);\n\t\t\tSystem.out.println(lift + \" => \" + bank.getNearestPassenger(lift));\n\t\t\tSystem.out.println(\"\\tqueue => \" + bank.getFloorQueue(lift));\n\t\t}\n\t}", "public String getFloor() {\n return this.floor;\n }", "private void elevatorStop(int floor, Boolean unload){\n \n if(unload){\n destinedPassengers[ floor ] = 0;\n } else {\n \n while(building.floor(floor).passengersWaiting() > 0){\n try {\n boardPassenger(1);\n } catch (ElevatorFullException e) {\n break;\n }\n \n building.floor(floor).waitingPassengers--;\n }\n \n }\n }", "public void tick () {\r\n\r\n if(currentRequests.isEmpty()) return;\r\n\r\n if(!this.isPickUp() && this.getCurrentFloor() < this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() > this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() == this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.setPickUp(true);\r\n System.out.println(this.getId() + \" has arrived at pickup location\");\r\n return;\r\n }\r\n\r\n if (this.isPickUp() && currentRequests.peek().getDestinationFloor() == this.currentFloor) {\r\n System.out.println(this.getId() + \" has reached its destination \" + this.getCurrentRequests().peek().getDestinationFloor());\r\n this.currentRequests.poll();\r\n this.pickUp = false;\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"UP\") {\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up to Floor \" + this.currentFloor);\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"DOWN\"){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down to Floor \" + this.currentFloor);\r\n }\r\n\r\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "public Elevator getElevator(int index)\n\t{\n\t\tElevator lift = null;\n\t\tif (index >= 0 && index < this.getElevatorCount())\n\t\t\tlift = this.elevators[index];\n\t\treturn lift;\n\t}", "public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}", "public int getCurrentFloor() {\n return currentFloor;\n }", "public int getCurrentFloor() {\n return currentFloor;\n }", "private void clearAndFillElevatorListView() {\n\t\tObservableList<String> elevatorsOl = FXCollections.observableArrayList();\n\t\tfor(int i = 1; i < buildingModel.getNumElevators() + 1; ++i) {\n\t\t\televatorsOl.add(\"Elevator \" + i);\n\t\t}\n\t\tPlatform.runLater(() -> {\n\t\t\tlistview_elevators.getItems().setAll(elevatorsOl);\n\t\t\t//automatically select the first elevator. If the list is empty no item will be selected.\n\t\t\tlistview_elevators.getFocusModel().focus(0);\n\t\t\tlistview_elevators.getSelectionModel().select(0);\n\t\t\t//enable the default disabled checkbox if elevators are in the list/building\n\t\t\tif(!listview_elevators.getItems().isEmpty()) {\n\t\t\t\tcheckbox_manual_mode.setDisable(false);\n\t\t\t}\n\t\t});\n\t}", "public int getCurrentFloorId() {\n\t\treturn currentFloorId;\n\t}", "private void delayElevator() {\n try {\n Thread.sleep(MOVEMENT_DELAY);\n } catch (InterruptedException ex) {\n Logger.getLogger(Elevator.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public synchronized int setDestinationFloor(){\n\t\tint randomFloor = random.nextInt((10-1)+1)+0;\n\t\twhile(this.arrivalFloor == randomFloor){\n\t\t\trandomFloor = random.nextInt((10-1)+1)+0;\n\t\t}\n\t\t\n\t\treturn randomFloor; \n\t}", "public void elevatorLoop()\n{\n \n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n while((e > 9) || (e < 0))\n {\n JOptionPane.showMessageDialog(null, \"not in the range of floors\");\n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n }\n elevatorFloor();\n}", "public Iterable<Elevator> getElevators() {\n return mElevators;\n }", "public static Elevator getInstance() {\n if (mInstance == null) {\n mInstance = new Elevator();\n return mInstance;\n } else\n return mInstance;\n }", "public int getDestinationFloor(){\n return destinationFloor;\n }", "public ElevatorEvent(int elevatorId, int sourceFloor, int destiniationFloor, String time, UserPriority priority) {\n\t\tthis.elevatorId = elevatorId;\n\t\tthis.sourceFloor = sourceFloor;\n\t\tthis.destiniationFloor = destiniationFloor;\n\t\tthis.time = time;\n\t}", "public void setCurrentFloorId(int currentFloorId) {\n\t\tthis.currentFloorId = currentFloorId;\n\t}", "@Test\n public void testAllElevatorsOnLevel1() {\n final ElevatorUserCommand command = new ElevatorUserCommand(1, 5, 1);\n final ElevatorMovingCommand movingStrategy = calculator.getMovingStrategy(command);\n assertEquals(elevatorA.getId(), movingStrategy.getElevatorId());\n }", "protected String getElevatorDescription(int elevatorNumber) {\n return \"Elevator \" + (elevatorNumber + 1);\n }", "public int getGotoFloor();", "private void closeDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door closed at floor \"+ floor);\r\n\t}" ]
[ "0.7600543", "0.7361679", "0.7343336", "0.72090685", "0.71654016", "0.7165297", "0.695952", "0.6930434", "0.68499", "0.68455625", "0.68399787", "0.6715513", "0.6700655", "0.670005", "0.6665003", "0.66627914", "0.6647278", "0.66422665", "0.65403813", "0.65168566", "0.6511528", "0.64909685", "0.64277977", "0.6420587", "0.63499254", "0.6331436", "0.62670827", "0.62158096", "0.62104136", "0.6194659", "0.6189909", "0.60516334", "0.60427254", "0.60223985", "0.6000698", "0.5994889", "0.59867424", "0.59055656", "0.5899238", "0.58850586", "0.5863714", "0.5836539", "0.5832663", "0.5825849", "0.58180356", "0.5815087", "0.5814904", "0.5814448", "0.579286", "0.57734865", "0.5771248", "0.5723213", "0.57156014", "0.5712988", "0.5708476", "0.5684838", "0.56805336", "0.5678501", "0.5669627", "0.56624365", "0.5648332", "0.5644705", "0.5628336", "0.5601627", "0.5588527", "0.558528", "0.5562122", "0.55609137", "0.5556868", "0.55510515", "0.55489284", "0.55454904", "0.55429244", "0.5542425", "0.55208933", "0.5515979", "0.55095357", "0.550632", "0.5505768", "0.55040246", "0.5496301", "0.5465781", "0.5451327", "0.54343677", "0.542663", "0.542663", "0.5416452", "0.5408592", "0.54004085", "0.53958505", "0.5394067", "0.5391835", "0.5389838", "0.5389294", "0.5389196", "0.53844506", "0.5381115", "0.53691655", "0.5358276", "0.5335602" ]
0.6654964
16
processRequest method: gets the nearest Elevator available for a request by Calculating the difference between Elevator current floor and Request Current Floor, The nearest Elevator is assigned to the Request.
public void processRequest(Request currentRequest) { int nearestFloor=55; Elevator nearestElevatorAvailable = new Elevator(); for(int i=0 ; i < availableElevadors.size();i++) { if (nearestFloor >= Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour())) { nearestFloor = Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour()); nearestElevatorAvailable= availableElevadors.get(i); } } System.out.println(" Enjoy your ride with Elevator no" + nearestElevatorAvailable.getElevatorNumber()); nearestElevatorAvailable.setCurrentFloor(currentRequest.getDestinationflour()); availableElevadors.remove(nearestElevatorAvailable); occupiedElevadors.add(nearestElevatorAvailable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}", "public synchronized Elevator requestElevator(int currentWorkerFloor, boolean goingUp) {\n\t\twhile (true) {\n\t\t\tfor (int liftNum = 0; liftNum < NUM_OF_ELEVATORS; liftNum++) {\n\t\t\t\tif (lift[liftNum].getCurrentFloor() == currentWorkerFloor && lift[liftNum].isDirectionUp() == goingUp) {\n\t\t\t\t\treturn lift[liftNum];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void requestPickup(int floor, int direction) {\n // Pick an elevator at rest\n for (Elevator elevator : elevators) {\n if (elevator.getDirection() == 0) {\n elevator.getRequests().offer(floor);\n return;\n }\n }\n\n // Pick an elevator with least load\n Elevator minElevator = elevators.get(0);\n for (Elevator elevator : elevators) {\n if (elevator.getRequests().size() < minElevator.getRequests().size()) {\n minElevator = elevator;\n }\n }\n // add request\n minElevator.getRequests().offer(floor);\n }", "@Override\r\n\tpublic int user_request(Floor current_floor, Elevator elevator) \r\n\t{\n\t\tif(current_floor.floor_door.state==0 && elevator.elevator_door.state==0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }", "public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}", "public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }", "public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}", "@Override\r\n\tpublic Answer handle(Request request) throws Exception {\r\n\t\tGPS startPoint = request.getStartPos();\r\n\t\tGPS endPoint = request.getEndPos();\r\n\t\tCurrentDistribution curDis = CurrentDistribution.getInstance();\r\n\t\tArrayList<Station> givenTypeAvaStations = null;// whether this init is a correct choice in case that ArrayList can not be covered directly \r\n\t\tdouble ridingSpeed = 0.00001;//if not given proper bicycle type, time cost would be extremely large\r\n\t\tif(request.getBikeType().equalsIgnoreCase(\"E\")) {\r\n\t\t\tridingSpeed = Server.eleRidingSpeed;\r\n\t\t\tgivenTypeAvaStations = curDis.geteAvaStationList();\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getBikeType().equalsIgnoreCase(\"M\")) {\r\n\t\t\tridingSpeed = Server.mecRidingSpeed;\r\n\t\t\tgivenTypeAvaStations = curDis.getmAvaStationList();\r\n\t\t}\r\n\r\n\t\tif(givenTypeAvaStations.size() == 0) {\r\n\t\t\tServer.error(\"no available station containing given type of bicycle\");\r\n\t\t}\r\n\r\n\t\tStation minStartStation = givenTypeAvaStations.get(0);\r\n\t\tStation minEndStation = curDis.getReturnableStationList().get(0);\r\n\t\t\r\n\t\tdouble minEndDis = Math.sqrt((minEndStation.getPos().getX() - endPoint.getX()) * (minEndStation.getPos().getX() - endPoint.getX()) + \r\n\t\t\t\t(minEndStation.getPos().getY() - endPoint.getY())*(minEndStation.getPos().getY() - endPoint.getY()));\r\n\t\t\r\n\t\tfor(Station s: curDis.getReturnableStationList()) {\r\n\t\t\tdouble endDis = Math.sqrt((s.getPos().getX() - endPoint.getX())*(s.getPos().getX() - endPoint.getX()) + \r\n\t\t\t\t\t(s.getPos().getY() - endPoint.getY()) * (s.getPos().getY() - endPoint.getY()));\r\n\t\t\tif( endDis < minEndDis) {\r\n\t\t\t\tminEndStation = s;\r\n\t\t\t\tminEndDis = endDis; \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdouble minWalkRideTime = Math.sqrt((minStartStation.getPos().getX() - startPoint.getX()) * (minStartStation.getPos().getX() - startPoint.getX())+\r\n\t\t\t\t(minStartStation.getPos().getY() - startPoint.getY()) * (minStartStation.getPos().getY() - startPoint.getY()))/\r\n\t\t\t\tServer.walkingSpeed +\r\n\t\t\t\t(Math.abs(minStartStation.getPos().getX() - endPoint.getX())+ \r\n\t\t\t\t\t\tMath.abs(minStartStation.getPos().getY() - endPoint.getY()))/\r\n\t\t\t\tridingSpeed;\r\n\t\t\r\n\t\tfor(Station s: givenTypeAvaStations) {\r\n\t\t\tdouble walkRideTime = Math.sqrt((s.getPos().getX() - startPoint.getX()) * (s.getPos().getX() - startPoint.getX())+\r\n\t\t\t\t\t(s.getPos().getY() - startPoint.getY()) * (s.getPos().getY() - startPoint.getY()))/\r\n\t\t\t\t\tServer.walkingSpeed +\r\n\t\t\t\t\t(Math.abs(s.getPos().getX() - endPoint.getX())+ \r\n\t\t\t\t\t\t\tMath.abs(s.getPos().getY() - endPoint.getY()))/\r\n\t\t\t\t\tridingSpeed;\r\n\t\t\tif( walkRideTime < minWalkRideTime) {\r\n\t\t\t\tminStartStation = s;\r\n\t\t\t\tminWalkRideTime = walkRideTime; \r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\r\n\t\tdouble minStartDis = Math.sqrt((minStartStation.getPos().getX() - startPoint.getX())*(minStartStation.getPos().getX() - startPoint.getX())\r\n\t\t\t\t+ (minStartStation.getPos().getY() - startPoint.getY())*(minStartStation.getPos().getY() - startPoint.getY()));\r\n\t\tdouble minRideDis = (Math.abs(minStartStation.getPos().getX() - minEndStation.getPos().getX())+ \r\n\t\t\t\tMath.abs(minStartStation.getPos().getY() - minEndStation.getPos().getY()));\r\n\t\tdouble minTime = (minEndDis + minStartDis)/ Server.walkingSpeed + minRideDis/ridingSpeed;\r\n\t\tdouble minDis = minStartDis + minEndDis + minRideDis;\r\n\t\tif(minTime > 500) {\r\n\t\t\tthrow new Exception(\"BikeType input illegal.\");\r\n\t\t}\r\n\t\t\r\n\t\tAnswer ans = new Answer(minStartStation, minEndStation, minTime, minDis);\r\n\t\treturn ans;\r\n\t}", "public void makeRequest(int floor) {\n }", "public\tElevator(){\t\t\t\t\t\t\n\t\tcurrentFloor = 1;\n\t\tcurrentDirection = \"UP\";\n\t\ttotalPassengers = 0;\n\t\ttotalPassDestFloor = new int[8];\n\t\tdestRequest = new char[8];\n\t\t \n\t}", "public int chooseElevator() {\n\t\tPair<Integer,Direction> eleLoc;\n\t\tHashMap<Integer, Pair<Integer, Direction>> mapClone = map.getElevatorsData(); //get map of up to date elevator locations\n\t\tint distance;\n\t\tint minDist=9999;\n\t\tint choice = -1;\n\t\t//iterate over all elevators in the system\n\t\tfor(int i = 1;i<=Constants.elevator;i++) {\n\t\t\teleLoc = mapClone.get(i);//get elevators current system\n\t\t\tdistance =calculateDistance(eleLoc);\n\t\t\t//System.out.println(\"Elevator \" + i + \" is \" + distance + \" away from next job\");\n\t\t\t//if distance is optimal\n\t\t\tif(distance >=0 && distance <minDist) {\n\t\t\t\tchoice = i;\n\t\t\t\tminDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn choice;\n\t}", "public Request(int floorIn) throws InvalidParamException {\n if (floorIn < 1 || floorIn > Building.getInstance().getNumFloors()) {\n throw new InvalidParamException(\"Invalid floorIn in Request c'tor\");\n }\n floor = floorIn;\n direction = null;\n }", "public void tick () {\r\n\r\n if(currentRequests.isEmpty()) return;\r\n\r\n if(!this.isPickUp() && this.getCurrentFloor() < this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() > this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() == this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.setPickUp(true);\r\n System.out.println(this.getId() + \" has arrived at pickup location\");\r\n return;\r\n }\r\n\r\n if (this.isPickUp() && currentRequests.peek().getDestinationFloor() == this.currentFloor) {\r\n System.out.println(this.getId() + \" has reached its destination \" + this.getCurrentRequests().peek().getDestinationFloor());\r\n this.currentRequests.poll();\r\n this.pickUp = false;\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"UP\") {\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up to Floor \" + this.currentFloor);\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"DOWN\"){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down to Floor \" + this.currentFloor);\r\n }\r\n\r\n }", "public int getNextInstruction() {\n\t\t\n\t\tint nextFloor = -1;\n\t\tswitch (elevator.getCurrentDirection()) {\n\t\t\n\t\t//get first element of upQueue that is ABOVE the elevator's current floor\n\t\tcase UP:\n\t\t\tfor (int i = 0; i < upQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) >= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in upQueue is UNDER the elevator's current floor\n\t\t\tif (nextFloor < 0 && downQueue.size() > 0) {\n\t\t\t\tnextFloor = downQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t//get first element of downQueue that is UNDER the elevator's current floor\n\t\tcase DOWN:\n\t\t\tfor (int i = 0; i < downQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) <= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in downQueue is ABOVE the elevator's current floor\n\t\t\tif (nextFloor < 0 && upQueue.size() > 0) {\n\t\t\t\tnextFloor = upQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn nextFloor;\n\t}", "@Override\n public void addRequest(Address beforeNewPickup, Address newPickup, Address beforeNewDelivery, Address newDelivery) throws Exception {\n if(!intersectionList.contains(beforeNewPickup) || !intersectionList.contains(newPickup)\n || !intersectionList.contains(beforeNewDelivery) || !intersectionList.contains(newDelivery)){\n this.setChanged();\n this.notifyObservers(\"Address doesn't exist in the map.\");\n throw new Exception();\n }else{\n Request newRequest = new Request(newPickup, newDelivery);\n Path oldPath1 = tour.findPathOrigin(beforeNewPickup);\n Path oldPath2 = tour.findPathOrigin(beforeNewDelivery);\n Path newPath1;\n Path newPath2;\n Path newPath3;\n Path newPath4;\n try {\n newPath1 = findShortestPath(beforeNewPickup, newPickup);\n newPath2 = findShortestPath(newPickup, oldPath1.getArrival());\n }catch (Exception e){\n this.setChanged();\n this.notifyObservers(newPickup);\n throw new Exception(\"newPickup unreachable\");\n }\n try {\n newPath3 = findShortestPath(beforeNewDelivery, newDelivery);\n newPath4 = findShortestPath(newDelivery, oldPath2.getArrival());\n }catch (Exception e){\n this.setChanged();\n this.notifyObservers(newDelivery);\n throw new Exception(\"newDelivery unreachable\");\n }\n tour.replaceOldPath(oldPath1, newPath1, newPath2);\n tour.replaceOldPath(oldPath2, newPath3, newPath4);\n this.planningRequest.addRequest(newRequest);\n this.setChanged();\n this.notifyObservers();\n }\n }", "public Elevator() {\n currentFloor = 1;\n elevatorState = IDLE;\n request = null;\n }", "public interface Elevator {\n public static final int UP = 1, LEVEL = 0, DOWN = -1, ERROR = -2;\n /** Returns the minimal floor number to which this Elevator can reach(often a negative value).\n * This is the same value as the lowest floor in the building - this elevator belongs to. */\n public int getMinFloor();\n /** Returns the maximal floor number to which this Elevator can reach.\n * This is the same value as the highest floor in the building - this elevator belongs to. */\n public int getMaxFloor();\n /** Returns the time (in seconds it takes the Elevator to open its doors. */\n public double getTimeForOpen();\n /** Returns the time (in seconds it takes the Elevator to close its doors */\n public double getTimeForClose();\n /** Returns the Elavator's current state: {UP, DOWN, LEVEL, ERROR} the state \"LEVEL\" mark that the elevator has reached the floor -\n * and is now ready to load / unload and get new orders. */\n public int getState(); // UP, DOWN, LEVEL, ERROR\n /** Returns the Elevator's current position (floor) as an Integer. */\n public int getPos();\n /** Moves the elevator form the current position to the destination floor. */\n public boolean goTo(int floor);\n /** Allows the elevator to stop in an intermidiate floor between src and dest, assumeing the elevator has not yer pass the desired floor in which it needs to stop. */\n public boolean stop(int floor);\n /** Returns the speed (in floor per second), e.g. if the Elevator speed is 0.4 - it takes it 2.5 seconds to pass a single floor. */\n public double getSpeed();\n /** Return the time in seconds that it takes the elevator to start moving in full speed (assumed to be a fixed value). */\n public double getStartTime();\n /** Return the time in seconds that it takes the elevator to stop moving in full speed (assumed to be a fixed value).*/\n public double getStopTime();\n /**\n * @return the id of this elevator (simple index as in the building).\n * Note: this index should be the same as in the elevator allocation algorithm.\n */\n public int getID();\n}", "public int calculateDistance(Pair<Integer,Direction> eleLoc) {\n\t\tint start = request.getFloor();\n\t\tDirection dirReq = request.getDirection();\n\t\tDirection dirEle =(Direction) eleLoc.getV();\n\t\tint eleFloor =(int) eleLoc.getT();\n\t\t/*\n\t\t * Elevator can not handle multi job allotments yet\n\t\t */\n\t\tswitch(dirEle) {//calculate distance based on which way the elevator is moving\n\t\t\tcase UP: //if elevator is moving up or down, make sure it matches the direction of request\n\t\t\t\tif(dirReq==dirEle) {\n\t\t\t\t\treturn ((start-eleFloor)>=0)?(start-eleFloor+10):-1;\n\t\t\t\t}else {//if elevator movement != direction of request, do not chose elevator\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\tcase DOWN:\n\t\t\t\tif(dirReq==dirEle) {\n\t\t\t\t\treturn ((eleFloor-start)>=0)?(eleFloor-start+10):-1;\n\t\t\t\t}else {//if elevator movement != direction of request, do not chose elevator\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\tcase STATIONARY://if elevator is stationary get absolute value of distance\n\t\t\t\treturn 0;\n\t\t\tdefault:\n\t\t\t\treturn -1;\n\t\t}\n\t}", "@Override\n\tpublic void dispatch(Request request) {\n\t\tif(request instanceof ElevatorRequest){\n\t\t\tfor(RequestListener listener: listeners){\n\t\t\t\tlistener.handleRequest((ElevatorRequest)request);\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\ttry {\n\t\t\tif (floorId >= elevator.getCurrentFloorId()) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.UP);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going up from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId > elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.DOWN);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going down from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId < elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t\televator.isBusy = false;\n\t\t\t}\n\t\t\tif(elevator.shouldBeStopped) {\n\t\t\t\televator.shouldBeStopped=false;\n\t\t\t\tSystem.out.println(\"Elevator is stopped\");\n\t\t\t} else {\n\t\t\t\televator.notifyObservers();\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void processElevatorCall(Passenger p) {\n Elevator selectedElevator = getCheapestElevator(p.getElevatorCall());\n\n //Do nothing and add to pending calls queue if no elevators are available.\n if(selectedElevator == null) {\n pendingPassengers.add(p);\n return;\n }\n\n selectedElevator.ingestElevatorCall(p.getElevatorCall());\n p.assignElevator(selectedElevator);\n }", "public Passenger getNearestPassenger(Elevator lift)\n\t{\t\n\t\t// find all nearby passengers\n\t\tPassenger[] nearby = new Passenger[4];\n\t\t\n\t\t// find nearest passengers above\n\t\tfor (int i = lift.getCurrentFloor(); i < this.getFloorCount(); i++)\n\t\t{\n\t\t\tif (nearby[0] == null && this.upQueues[i].size() > 0)\n\t\t\t\tnearby[0] = (Passenger) this.upQueues[i].peek();\n\t\t\tif (nearby[1] == null && this.downQueues[i].size() > 0)\n\t\t\t\tnearby[1] = (Passenger) this.downQueues[i].peek();\n\t\t}\n\t\t\n\t\t// find nearest passengers below\n\t\tfor (int i = lift.getCurrentFloor(); i >= 0; i--)\n\t\t{\n\t\t\tif (nearby[2] == null && this.upQueues[i].size() > 0)\n\t\t\t\tnearby[2] = (Passenger) this.upQueues[i].peek();\n\t\t\tif (nearby[3] == null && this.downQueues[i].size() > 0)\n\t\t\t\tnearby[3] = (Passenger) this.downQueues[i].peek();\n\t\t}\n\t\t\n\t\t// if we're already moving, we only need to consider one passenger\n\t\tif (lift.getDirection() == Elevator.Direction.UP)\n\t\t\treturn nearby[0];\n\t\t\n\t\tif (lift.getDirection() == Elevator.Direction.DOWN)\n\t\t\treturn nearby[3];\n\t\t\n\t\t// Direction is IDLE...find any nearest passenger.\n\t\tPassenger best = null;\n\t\tint bestDist = 0;\n\t\tfor (int i = 0; i < nearby.length; i++)\n\t\t{\n\t\t\tif (nearby[i] != null && best == null)\n\t\t\t{\n\t\t\t\t// found first nearby passenger\n\t\t\t\tbest = nearby[i];\n\t\t\t\tbestDist = Math.abs(lift.getCurrentFloor() - best.getStartFloor());\n\t\t\t}\n\t\t\telse if (nearby[i] != null)\n\t\t\t{\n\t\t\t\t// found another nearby passenger; are they closer?\n\t\t\t\tint dist = Math.abs(lift.getCurrentFloor() - nearby[i].getStartFloor());\n\t\t\t\tif (dist < bestDist)\n\t\t\t\t{\n\t\t\t\t\tbest = nearby[i];\n\t\t\t\t\tbestDist = dist;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn best;\n\t}", "public void procRequest ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\tthis.request.setStartTime(simTime);\r\n\t\t//Debug/System.out.println(Fmt.time(simTime)\r\n\t\t//Debug/\t+ \": <procRequest> \" + request);\r\n\r\n\t\t//\tNeed to move from current cylinder to requested cylinder.\r\n\t\t//\tIf current == requested, no action.\r\n\t\tif (this.cylinder != this.request.getCylinder())\r\n\t\t\tthis.simTime += this.calcSeekTime(this.request.getCylinder());\r\n\t\tthis.sim.addEvent(new Event(Event.SEEK_SATISFIED, this.simTime));\r\n\t}", "public void goToFloor(int floorId, ElevatorRequestType type) {\n\t\tisBusy = true;\n\t\tif(currentFloorId == floorId) {\n\t\t\tSystem.out.print(\"\\nElevator \" + id + \" is already at floor \" + floorId + \"\\n\");\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t}\n\t\t\tisBusy = false;\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tElevatorTask task = new ElevatorTask(this, floorId, type);\n\t\ttask.start();\n\t}", "public void update(IFloorModel floor, IElevatorModel elevator) {\n\t\tif(floor == null || elevator == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() NullPointerException\");\n\t\t}\n\t\t\n\t\t//if there are no elevators, do nothing on update. Nothing should or can be updated\n\t\tif(listview_elevators.getItems().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//get current selected elevator\n\t\t//getSelectedIndex() returned -1 if no line is selected\n\t\tif(selectedElevator < 0) {\n\t\t\tthrow new IllegalStateException(\"MainGuiController.update() listview_elevators no line selected!\");\n\t\t}\n\t\t//check if the selected elevator is in manual or automatic mode -> set checkbox and button to right state.\n\t\tif(autoModeAlgo.checkIfInAutoMode(selectedElevator)) {\n\t\t\tcheckbox_manual_mode.setSelected(false);\n\t\t\tbutton_send_to_floor.setDisable(true);\n\t\t}\n\t\telse {\n\t\t\tcheckbox_manual_mode.setSelected(true);\n\t\t\tbutton_send_to_floor.setDisable(false);\n\t\t}\n\t\t\n\t\t//update gui with new values from the given elevator\n\t\t//elevator data\n\t\tPlatform.runLater(() -> {\n\t\t\tInteger targetReranged = elevator.getTarget() + 1;\n\t\t\tlabel_target_text.setText(targetReranged.toString());\n\t\t\tInteger positionReranged = elevator.getPosition() + 1;\n\t\t\tlabel_position_text.setText(positionReranged.toString());\n\t\t\t\n\t\t\tString direction = elevator.getDirection().toString();\n\t\t\tdirection = direction.substring(direction.lastIndexOf('_') + 1);\n\t\t\tdirection = direction.substring(0,1).toUpperCase() + direction.substring(1).toLowerCase();\n\t\t\tlabel_direction_text.setText(direction);\n\t\t\t\n\t\t\tlabel_payload_text.setText(elevator.getPayload().toString());\n\t\t\tInteger speedAbs = Math.abs(elevator.getSpeed());\n\t\t\tlabel_speed_text.setText(speedAbs.toString());\n\t\t\t\n\t\t\tString doorsState = elevator.getDoors().toString();\n\t\t\tdoorsState = doorsState.substring(doorsState.lastIndexOf('_') + 1); \t//get the last part of the enum, this contains the state.\n\t\t\tdoorsState = doorsState.substring(0,1).toUpperCase() + doorsState.substring(1).toLowerCase();\t//all to lower, except the first character\n\t\t\tlabel_doors_text.setText(doorsState);\n\t\t});\n\t\t\n\t\tString floorListViewPrefix = \"Floor \";\n\t\t//stops\n\t\tList<Integer> stops = elevator.getStopsList();\n\t\tif (stops == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() stops\");\n\t\t}\n\t\tObservableList<String> stopsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : stops) {\n\t\t\tstopsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_stops.getItems().setAll(stopsOl));\n\t\t\n\t\t//not serviced floors\n\t\tList<Integer> ignoredFloors = elevator.getIgnoredFloorsList();\n\t\tif (ignoredFloors == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.register() ignoredFloors\");\n\t\t}\n\t\tObservableList<String> ignoredFloorsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : ignoredFloors) {\n\t\t\tignoredFloorsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_no_service.getItems().setAll(ignoredFloorsOl));\n\t\t\n\t\t//calls\n\t\tList<Integer> callsUp = floor.getUpButtonsList();\n\t\tif (callsUp == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsUp\");\n\t\t}\n\t\tObservableList<String> callsUpOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsUp) {\n\t\t\tcallsUpOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_up.getItems().setAll(callsUpOl));\n\t\t\n\t\tList<Integer> callsDown = floor.getDownButtonsList();\n\t\tif (callsDown == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsDown\");\n\t\t}\n\t\tObservableList<String> callsDownOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsDown) {\n\t\t\tcallsDownOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_down.getItems().setAll(callsDownOl));\n\t}", "public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }", "public void setCurrentRequest(Request request) {\n if (request != null) {\n this.currentRequest = request;\n goingTo = currentRequest.getRequestToFloor();\n currentFloor = currentRequest.getRequestFromFloor();\n }\n }", "@Test\n\tpublic void returnNullWhenNoneIdel() {\n\t\t\n\t\twhen(elevatorRepository.getElevators()).thenReturn(elevators);\n\t\tElevator elevator = elevatorAllocateService.requestElevator(task);\n\t\tassertNull(elevator);\n\t}", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}", "@Override\n\tpublic Map<String, Object> getFloorInfo(Map<String, Object> requestMap) {\n\t\tMap<String,Object> responseMap = new HashMap<>();\n\t\tVoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample();\n\t\ttry {\n\t\t\tcom.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria();\n\t\t\tcriteria.andSectNameEqualTo((String)requestMap.get(\"sectName\"));\n\t\t\tcriteria.andBuildCodeEqualTo((String)requestMap.get(\"buildCode\"));\n\t\t\tcriteria.andUnitCodeEqualTo((String)requestMap.get(\"unitCode\"));\n\t\t\tvoteHouseInfoExample.setOrderByClause(\"build_code asc\");\n\t\t\tvoteHouseInfoExample.setDistinct(true);\n\t\t\tList<VoteHouseInfo> list = voteHouseInfoMapper.selectDistinctFloor(voteHouseInfoExample);\n\t\t\tresponseMap.put(\"listInfo\", list);\n\t\t\tresponseMap.put(\"status\", true);\n\t\t\treturn responseMap;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(\"加载文件数据错误:\"+ExceptionUtil.getErrorMsg(e));\n\t\t\tthrow new BusinessException(\"加载文件数据错误:\"+ExceptionUtil.getErrorMsg(e));\n\t\t}\n\t}", "@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}", "private synchronized void morphRequest (SearchHotelRequestDTO requestDTO) {\r\n\t\t\r\n\t\ttry {\r\n\t\tDate fromDateOld = new SimpleDateFormat(\"yyyy-MM-dd\").parse(requestDTO.getFromDate());\r\n\t\tDate toDateOld = new SimpleDateFormat(\"yyyy-MM-dd\").parse(requestDTO.getToDate());\r\n\t\t\r\n\t\tlong diff = toDateOld.getTime() - fromDateOld.getTime();\r\n\t\tlogger.trace(\"Number of Days: \" + TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS));\r\n\t\tint numOfDays = (int) TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);\r\n\t\trequestDTO.getAdditionalData().put(\"numberOfDays\", numOfDays);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public ElevatorStatusObject getStatus() {\n //Fetch destination\n \tif (queue.isEmpty()) {\n \t\treturn new ElevatorStatusObject(currentFloor, 0, -1);\n \t}\n \t\n //Fetch next call\n ElevatorQueueObject q = queue.getFirst();\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Calculate direction\n int dir = 0;\n if (dest > currentFloor) {\n dir = 1;\n } else if (dest < currentFloor) {\n dir = -1;\n }\n \n return new ElevatorStatusObject(currentFloor, dir, dest);\n }", "protected SNMPResponse processGetRequest(SNMPRequest request)\n {\n int value = -1;\n String OID = request.getMIBObject().getOID();\n if (PAT_TIMEOUT_COUNT_OID.equals(OID))\n {\n value = getPATTimeoutCount();\n }\n else if (PMT_TIMEOUT_COUNT_OID.equals(OID))\n {\n value = getPMTTimeoutCount();\n }\n else if (OOB_CAROUSEL_TIME_OUT_COUNT_OID.equals(OID))\n {\n value = getOOBTimeoutCount();\n }\n else if (IB_CAROUSEL_TIME_OUT_COUNT_OID.equals(OID))\n {\n value = getIBTimeoutCount();\n }\n else\n {\n if (log.isWarnEnabled())\n {\n log.warn(\"Unexpected OID: \" + OID);\n }\n }\n\n SNMPResponse response = null;\n if (value == -1)\n {\n response = new SNMPResponse(SNMPResponse.SNMP_REQUEST_GENERIC_ERROR, request.getMIBObject());\n }\n else\n {\n try\n {\n response = new SNMPResponseExt(OID, new SNMPValueInteger((long)value));\n }\n catch (SNMPBadValueException e)\n {\n if (log.isErrorEnabled())\n {\n log.error(\"Error while parsing the value\", new RuntimeException());\n }\n }\n }\n return response;\n }", "public Message handleRequest(Message request){\n\n Message error = new Message(Message.GENERIC_ERROR);\n\n switch (request.getId()){\n\n case Message.LOGIN:\n return handleLogin(request);\n case Message.CREATE_DOCUMENT:\n return handleCreate(request);\n case Message.REMOVE_INVITE:\n controlServer.removeInvite(request.getUserName(),request.getDocumentName());\n return request;\n case Message.PORTIONS:\n System.out.println(\"HANDLER pre-handle: \" +request.getDocumentName());\n request.setSectionNumbers(controlServer.getPortions(request.getDocumentName()));\n return request;\n case Message.ADMINS:\n Message response = new Message(Message.ADMINS);\n response.setStringVector(new Vector<>(controlServer.getAdmins(request.getDocumentName())));\n return response;\n case Message.USERS:\n request.setStringVector(controlServer.getUserNames());\n return request;\n case Message.INVITATION:\n controlServer.addAdmin(request.getDocumentName(),request.getReceiver());\n controlServer.addInvite(request.getReceiver(),request.getDocumentName());\n request.setId(Message.INVITE_SENT);\n return request;\n case Message.GET_INVITES:\n String owner = request.getUserName();\n request.setStringVector(controlServer.getUserData(owner).getInvites());\n return request;\n case Message.GET_USERDATA:\n return handleGetUserData(request);\n case Message.LOCK:\n if(!controlServer.lock(request.getDocumentName(),request.getSectionNumbers()))\n request.setId(Message.LOCK_NOK);\n else\n request.setId(Message.LOCK_OK);\n return request;\n case Message.UNLOCK:\n if(controlServer.unlock(request.getDocumentName(),request.getSectionNumbers()))\n request.setId(Message.UNLOCK_OK);\n return request;\n case Message.EDIT:\n String DocumentName = request.getDocumentName();\n int SectionNumbers = request.getSectionNumbers();\n request.setText(controlServer.getSection(DocumentName,SectionNumbers));\n return request;\n case Message.END_EDIT:\n controlServer.editDoc(request.getDocumentName(),request.getSectionNumbers(),request.getText());\n return request;\n case Message.PRINT:\n request.setText(controlServer.getDocumentString(request.getDocumentName()));\n return request;\n case Message.SHOW:\n String text = controlServer.getSection(request.getDocumentName(),request.getSectionNumbers());\n request.setText(text);\n return request;\n default:\n controlServer.showMessage(\"unknown request\");\n break;\n }return error;\n }", "public com.kcdataservices.partners.kcdebsrvlib_hotel.businessobjects.hotelspriceitineraryrequest.v1.HotelsPriceItineraryRequest getHotelsPriceItineraryRequestReq(Itinerary itinerary){\n\t\tcom.kcdataservices.partners.kcdebsrvlib_hotel.businessobjects.hotelspriceitineraryrequest.v1.\n\t\tHotelsPriceItineraryRequest hotelsPriceItineraryRequest = new \n\t\t\t\tcom.kcdataservices.partners.kcdebsrvlib_hotel.businessobjects.hotelspriceitineraryrequest.v1.HotelsPriceItineraryRequest();\n\t\t\n\t\tif( this.getItineraryReq(itinerary) != null ){\n\t\t\t\n\t\t\thotelsPriceItineraryRequest.setBookingNo( itinerary.getBookingNo() );\n\t\t\t\n\t\t\t\n\t\t\thotelsPriceItineraryRequest.setItinerary( this.getItineraryReq(itinerary) );\n\t\t\t\n\t\t\tif( itinerary.getSearchCriteria() != null ){\n\t\t\t\tif( itinerary.getSearchCriteria().getMultiDestPackageRequest() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setMultiDestinationRequest( \n\t\t\t\t\t\t\tnew Boolean( itinerary.getSearchCriteria().getMultiDestPackageRequest().isMultiDestinationRequest() ) );//Boolean\n\t\t\t\t}\n\t\t\t\tif( itinerary.getSearchCriteria().getOccupancy() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setOccupancy( this.getOccupancyReq(itinerary.getSearchCriteria().getOccupancy() ));\n\t\t\t\t}\n\t\t\t\tif( itinerary.getSearchCriteria().getPackagesRequest() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setPackageRequest( \n\t\t\t\t\t\tnew Boolean( itinerary.getSearchCriteria().getPackagesRequest().isPackageRequest() ) );\n\t\t\t\t}\n\t\t\t\thotelsPriceItineraryRequest.setPromoCode( itinerary.getSearchCriteria().getPromoCode() );\n\t\t\t\tif( itinerary.getSearchCriteria().getVehiclesRequest() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setVehicleRequested( \n\t\t\t\t\t\tnew Boolean( itinerary.getSearchCriteria().getVehiclesRequest().isVehicleRequested() ) );\n\t\t\t\t}\n\t\t\t\tif( itinerary.getSearchCriteria().getDepartureDate() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setDepartureDate( \n\t\t\t\t\t\tXMLGregorianCalendarConversionUtil.asXMLGregorianCalendar(itinerary.getSearchCriteria().getDepartureDate() ));\n\t\t\t\t}\n\t\t\t\tif( (itinerary.getSearchCriteria().getDestinationOptions() != null) &&\n\t\t\t\t\t(itinerary.getSearchCriteria().getDestinationOptions().size() > 0)){\n\t\t\t\t\thotelsPriceItineraryRequest.setDestination( \n\t\t\t\t\t\titinerary.getSearchCriteria().getDestinationOptions().get(0).getDestination() );\n\t\t\t\t\t\n\t\t\t\t\thotelsPriceItineraryRequest.setNoOfNights( \n\t\t\t\t\t\t\titinerary.getSearchCriteria().getDestinationOptions().get(0).getNoOfNights() );\n\t\t\t\t}\n\t\t\t\thotelsPriceItineraryRequest.setGateway( itinerary.getSearchCriteria().getGateway() );\n\t\t\t\tif( itinerary.getSearchCriteria().getHotelsRequest() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setHotelRequested( \n\t\t\t\t\t\tnew Boolean( itinerary.getSearchCriteria().getHotelsRequest().isHotelRequested() ));\n\t\t\t\t}\n\t\t\t\tif( itinerary.getSearchCriteria().getFlightRequest() != null ){\n\t\t\t\t\thotelsPriceItineraryRequest.setAirRequested( \n\t\t\t\t\t\tnew Boolean(itinerary.getSearchCriteria().getFlightRequest().isAirRequested()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hotelsPriceItineraryRequest;\n\t}", "public ElevatorTask(Elevator elevator, int floorId, ElevatorRequestType type) {\n\t\tthis.elevator = elevator;\n\t\tthis.floorId = floorId;\n\t\tthis.type = type;\n\t}", "public void getLift(Lift passengerLift, Lift serviceLift, int calledFloor, boolean inProcess) {\n\t\t inProcess=true;\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tint distFromPass = 0, distFromService = 0;\r\n\r\n\t\tdistFromPass = passengerLift.getCurrentfloor().value - calledFloor;\r\n\t\tdistFromService = serviceLift.getCurrentfloor().value - calledFloor;\r\n\r\n\t\tif (passengerLift.getCurrentfloor().value == calledFloor) {\r\n\r\n\t\t\tSystem.out.println(\"Passenger Lift is on same floor\");\r\n\t\t\tpassengerLift.setCurrentfloor(Floors.getEnumname(calledFloor));\r\n\t\t}\r\n\r\n\t\telse if (serviceLift.getCurrentfloor().value == calledFloor) {\r\n\t\t\tSystem.out.println(\"Service Lift is on same floor\");\r\n\t\t\tserviceLift.setCurrentfloor(Floors.getEnumname(calledFloor));\r\n\r\n\t\t}\r\n\r\n\t\telse {\r\n\r\n\t\t\tif (distFromPass == distFromService) {\r\n\t\t\t\tpassengerLift.setCurrentfloor(Floors.getEnumname(calledFloor));\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\r\n\t\t\t\tif (Math.abs(distFromPass) == Math.abs(distFromService))\r\n\r\n\t\t\t\t{\r\n\t\t\t\t\tif (distFromPass > 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"Sending passenger Lift as it is on top\");\r\n\t\t\t\t\t\tpassengerLift.setCurrentfloor(Floors\r\n\t\t\t\t\t\t\t\t.getEnumname(calledFloor));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (distFromService > 0) {\r\n\t\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t\t.println(\"Sending service Lift as it is on top\");\r\n\t\t\t\t\t\tserviceLift.setCurrentfloor(Floors\r\n\t\t\t\t\t\t\t\t.getEnumname(calledFloor));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Math.abs(distFromPass) < Math.abs(distFromService)) {\r\n\t\t\t\t\tSystem.out.println(\"Sending passenger Lift as it is near\");\r\n\t\t\t\t\tpassengerLift.setCurrentfloor(Floors\r\n\t\t\t\t\t\t\t.getEnumname(calledFloor));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Math.abs(distFromService) < Math.abs(distFromPass)) {\r\n\t\t\t\t\tSystem.out.println(\"Sending service Lift as it is near\");\r\n\t\t\t\t\tserviceLift\r\n\t\t\t\t\t\t\t.setCurrentfloor(Floors.getEnumname(calledFloor));\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"getLift called\");\r\n\t\tSystem.out.println(distFromPass);\r\n\t\t inProcess=false;\r\n\t}", "public Elevator(ElevatorSpecs spec, int[] floors, int zonedFloors[], float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n this.zonedFloors = zonedFloors;\n }", "public void requestElevatorToDestination(int floorId, UserPriority priority, Elevator elevator) {\n\t\televatorManager.requestDestination(new ElevatorManagerDestinationRequest(floorId, priority, elevator));\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel getHotelReq(Hotel hotel){com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel hotelReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel();\n\t\t\n\t\t//set the hotelGdsCode\n\t\thotelReq.setGdsHotelCode(hotel.getGdsHotelCode());\n\t\thotelReq.setVendorHotelCode(hotel.getVendorHotelCode());\n\t\thotelReq.setHotelId( new Integer( hotel.getHotelId() ) );\n\t\thotelReq.setHotelCode( hotel.getHotelCode() );\n\t\thotelReq.setHotelChain( hotel.getHotelChain() );\n\t\thotelReq.setHotelName( hotel.getHotelName() );\n\t\thotelReq.setNoOfRooms( new Integer( hotel.getNoOfRooms() ) );\n\t\thotelReq.setAppleRating( hotel.getAppleRating() );\n\t\thotelReq.setHbsiPNRNo(hotel.getHbsiPNR());\n\t\thotelReq.setIsHBSi(hotel.isHBSI());\n\t\tif( hotel.getCheckInDate() != null ){\n\t\t\thotelReq.setCheckInDate( this.getDate( hotel.getCheckInDate() ) );\n\t\t}\n\t\tif( hotel.getCheckOutDate() != null ){\n\t\t\thotelReq.setCheckOutDate( this.getDate( hotel.getCheckOutDate() ) );\n\t\t}\n\t\thotelReq.setMinRate( new Double(hotel.getMinRate()) );\n\t\thotelReq.setCurrency( hotel.getCurrency() );\n\t\thotelReq.setHotelCityCode( hotel.getHotelCityCode() );\n\t\thotelReq.setOriginLocation( hotel.getOriginLocation() );\n\t\thotelReq.setRiskHotel( new Boolean( hotel.isRiskHotel() ) );\n\t\thotelReq.setNoOfNights( hotel.getNoOfNights() );\n\t\thotelReq.setAppleSpecialsAndSavers( new Boolean( hotel.isAppleSpecialsAndSavers() ) ); \n\t\thotelReq.setNoOfRequestedRooms( new Integer( hotel.getNoOfRequestedRooms() ) );\n\t\tif( hotel.getOccupancy() != null ){\n\t\t\thotelReq.setOccupancy( this.getOccupancyReq( hotel.getOccupancy() ) );\n\t\t}\n\t\tif( hotel.getResortArea() != null ){\n\t\t\thotelReq.setResortArea( this.getResortAreaReq( hotel.getResortArea() ) );\n\t\t}\n\t\tif( hotel.getDisplayRoomCategory() != null ){\n\t\t\thotelReq.setDisplayRoomCategory( this.getRoomCategoryReq( hotel.getDisplayRoomCategory() ));\n\t\t}\n\t\tif( (hotel.getSelectedRooms() != null) && (hotel.getSelectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getSelectedRooms().size(); i++){\n\t\t\t\thotelReq.getSelectedRooms().add( this.getRoomPriceReq( hotel.getSelectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getPreselectedRooms() != null) && (hotel.getPreselectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getPreselectedRooms().size(); i++){\n\t\t\t\thotelReq.getPreselectedRooms().add( this.getRoomPriceReq( hotel.getPreselectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRoomCategories() != null) && (hotel.getRoomCategories().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRoomCategories().size(); i++){\n\t\t\t\thotelReq.getRoomCategories().add( this.getRoomCategoryReq( hotel.getRoomCategories().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getVendorServices() != null) && (hotel.getVendorServices().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getVendorServices().size(); i++){\n\t\t\t\thotelReq.getVendorServices().add( this.getVendorServiceReq( hotel.getVendorServices().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRequestedDatesForAvailabilities() != null) && (hotel.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\thotelReq.getRequestedDatesForAvailabilities().add( \n\t\t\t\t\t\tthis.getRequestedDatesForAvailabilityReq( hotel.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (hotel.getVendor() != null) {\n//\t\t\thotelReq.getVendor().setCity(hotel.getVendor().getCity()); \n\t\t\thotelReq.setVendor(this.getVendorReq(hotel.getVendor()));\n\t\t}\n\t\t\n\t\t//setting search criteria\n\t\t\n\t\tif(hotel.getSearchCriteria()!=null)\n\t\t{\n\t\t\thotelReq.setSearchCriteria(this.getSearchCriteriaReq(hotel.getSearchCriteria()));\n\t\t}\n\t\t\n\t\t//Set the Cancellation Policy\n\t\t\n\t\tif(hotel.getCancellationPolicy()!=null)\n\t\t{\n\t\t\thotelReq.getCancellationPolicy().addAll(hotel.getCancellationPolicy());\n\t\t}\n\t\t\n\t\treturn hotelReq;\n\t}", "public Queue getFloorQueue(Elevator lift)\n\t{\n\t\tQueue queue = null;\n\t\tif (this.isFloorValid(lift.getCurrentFloor()))\n\t\t{\n\t\t\t// prefer up queue\n\t\t\tqueue = this.upQueues[lift.getCurrentFloor()];\n\t\t\t\n\t\t\t// unless we're headed down or we're idling and the up queue is empty\n\t\t\tif (lift.getDirection() == Elevator.Direction.DOWN ||\n\t\t\t\t(lift.getDirection() == Elevator.Direction.IDLE &&\n\t\t\t\tqueue.size() == 0))\n\t\t\t{\n\t\t\t\tqueue = this.downQueues[lift.getCurrentFloor()];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.err.println(\"ElevatorBank.getFloorQueue got an elevator that found a new floor:\" + lift);\n\t\t}\n\t\t\n\t\treturn queue;\n\t}", "public boolean updateElevator() { \n \t//If no people are waiting, do nothing\n if (queue.isEmpty()){\n \t\treturn true;\n \t}\n \n //Update total wait time\n for (int i = 0; i < queue.size(); i++) {\n if (queue.get(i).getActionType() == ElevatorAction.PICKUP) {\n totalWaitTime = totalWaitTime.add(BigInteger.ONE);\n queue.get(i).getPassenger().tempwT += 1;\n }\n }\n \n //Update total travel time\n totalTravelTime = totalTravelTime.add(BigInteger.valueOf((long)currentPassengers.size()));\n for (int i = 0; i < currentPassengers.size(); i++) {\n currentPassengers.get(i).temptT += 1;\n }\n \n //Passengers boarding, no movement\n if (waitingTime > 0) {\n waitingTime -= 1;\n return true;\n }\n \n ElevatorQueueObject q = queue.getFirst();\n \n //If the elevator is full, fetch the next passenger who can disembark successfully\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch next destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Check destination is valid\n if (!containsFloor(floors, dest)) {\n return false;\n }\n \n //Update Elevator Position\n float tempFloor = currentFloor;\n float newFloor = currentFloor;\n \n if (dest > currentFloor) { //Going up\n newFloor += (specs.getCarSpeed() / distancePerFloor);\n if (dest <= newFloor) { //Reached destination\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n } else if (dest < currentFloor) { //Going down\n newFloor -= (specs.getCarSpeed() / distancePerFloor);\n if (dest >= newFloor) { //Reached destination?\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n }\n\n //Update travel distance \n totalTravelDistance = totalTravelDistance.add(\n BigDecimal.valueOf(Math.abs(tempFloor - currentFloor) * distancePerFloor)\n );\n \n //Everything okay\n return true;\n }", "@Override\n public OfferResponse process(Offer request) throws Exception {\n LOGGER.debug(\"TODO\");\n OfferResponse findAllOfferAPIResponse = OfferFactory.emptyResponse();\n\n try {\n findAllOfferAPIResponse = offerProcessor.findAllOffer();\n /* Catch runtime exception */\n } catch (RuntimeException e) {\n LOGGER.error(\"Error on finding offer\", e);\n throw e;\n } finally {\n /* Final log */\n }\n return findAllOfferAPIResponse;\n }", "public void transport(int startFloor, int endFloor, boolean up){\r\n\t\t\r\n\t\tisIntransit = true;\r\n\t\tdirectionUp = up;\r\n\t\topenDoor(startFloor);\r\n\t\tcloseDoor(startFloor);\r\n\t\t\r\n\t\t//Traverse floor and report.\r\n\t\tint trip = endFloor-startFloor; \r\n\t\tint finalCount = trip*1000;\r\n\t\tint j = 0 ;\r\n\t\televatorAt = startFloor ;\r\n\t\tfor(int i=0; i<finalCount; i++){\t\t\t\r\n\t\t\tj++;\r\n\t\t\tif(j==1000){\r\n\t\t\t\tif(up){\r\n\t\t\t\t\televatorAt++;\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\televatorAt--;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Elevator no. \" + id + \" at \"+ elevatorAt);\r\n\t\t\t\tj=0;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\tfloorsTraversed += endFloor - startFloor; \r\n\t\ttrips++;\r\n\t\tif(trips==100){\r\n\t\t\tserviccerequired = true; \r\n\t\t}\r\n\t\t\r\n\t\topenDoor(endFloor);\r\n\t\tcloseDoor(endFloor);\r\n\t\t\r\n\t\tisIntransit = false;\r\n\t}", "public int calcTravelTime(Request request) {\r\n\t\tNdPoint currentLocation = space.getLocation(this);\r\n\t\tNdPoint s1location = request.getOrigin();\r\n\t\tNdPoint s2location = request.getDestination();\r\n\r\n\t\t// Calc time between current position and first source\r\n\t\tdouble distance1 = this.space.getDistance(currentLocation, s1location);\r\n\t\t// Calc time between first source and second source\r\n\t\tdouble distance2 = this.space.getDistance(s1location, s2location);\r\n\t\t// Added times\r\n\t\tdouble totaldistance = distance1 + distance2;\r\n\t\tint totaltime = (int) (totaldistance / (this.speed * 0.5));\r\n\r\n\t\treturn totaltime;\r\n\t}", "void schedule(List<Queue<Integer>> requests, List<Elevator> elevators, int floors);", "public int transferPeople(Elevator e)\n\t{\n\t\tint transfered = e.pList.size();\n\t\tfor(int i = 0; i < e.pList.size(); i++)\n\t\t{\n\t\t\tPerson p = e.pList.get(i);\n\t\t\tif(p.destination.floorNumber == this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"person leaving elevator \" + e.id + \" on floor \" + this.floorNumber);\n\t\t\t\te.pList.get(i).exit();\n\t\t\t\te.pList.remove(i);\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.NOTFULL;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\ttransfered-=e.pList.size();\n\t\ttransfered+=this.pList.size();\n\t\tint available = e.getTotalCapacity()-e.getCurrentCapacity();\n\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.IDLE)\n\t\t{\n\t\t\tif(pList.size()!=0&&pList.get(0).destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going up\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGUP;\n\t\t\t}\n\t\t\telse if(pList.size()!=0&&pList.get(0).destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going down\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGDOWN;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\t\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGUP)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber > this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGDOWN)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber < this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(available==0)\n\t\t\t{\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.FULL;\n\t\t\t\tSystem.out.println(\"Elevator \" + e.id + \" is now full\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttransfered-=this.pList.size();\n\t\tSystem.out.println(\"transfered \" + transfered + \" on floor \" + this.floorNumber + \" number of people still on floor is \" + pList.size());\n\t\treturn transfered;\n\t}", "protected final Map<String, Object> buildModel(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tMap<String, Object> model = new HashMap<String, Object>();\n\t\t\n\t\t// Default from date is one week ago from last midnight\n\t\tDate lastMidnight = StatsUtils.getPreviousMidnight(null);\n\t\tDate weekAgo = StatsUtils.addDaysToDate(lastMidnight, -7);\n\t\t\n\t\t// Get from and until request parameters\n\t\tfrom = StatsUtils.getDateParameter(request, \"from\", weekAgo);\n\t\tuntil = StatsUtils.getDateParameter(request, \"until\", lastMidnight);\n maxResults = ServletRequestUtils.getIntParameter(request, \"maxResults\", 5);\n usageFilter = StatsUtils.getActionCriteriaParameter(request, \"usageFilter\", ActionCriteria.ANY);\n\t\t\n\t\t// Calculate inclusive until date by adding a day\n\t\tuntilInclusive = StatsUtils.addDaysToDate(until, 1);\n\n\t\t\n\t\t// Get paging info\n\t\tint offset = ServletRequestUtils.getIntParameter(request, \"offset\", 0);\n\t\tpaging = new PagingInfo(offset, Constants.RESULTS_PAGE_SIZE);\n\t\t\n\t\tmodel.put(\"from\", from);\n\t\tmodel.put(\"until\", until);\n model.put(\"maxResults\", maxResults);\n\t\tmodel.put(\"untilInclusive\", untilInclusive);\n\t\tmodel.put(\"usageFilter\", usageFilter);\n\t\tmodel.put(\"paging\", paging);\n\t\t\n\t\treturn model;\n\t}", "protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }", "public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\t//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "void getEstimationInsideBuilding( final Point userCPos, int travelMode, final int vehicleIcon )\n {\n mActivity.getNearestLocationToTheUser( false, ( locations, error ) -> {\n\n if( error != null ) {\n\n if(error.code == MIError.INVALID_API_KEY){\n MapsIndoorsUtils.showInvalidAPIKeyDialogue(getContext());\n }\n\n mRouteEstimation = mOriginPositionText = null;\n resetRouteInfoView();\n\n\n new Handler(mContext.getMainLooper()).post(() ->\n {\n noInternetBar.setState(NoInternetBar.MESSAGE_STATE);\n\n }\n );\n\n } else {\n new Handler( mContext.getMainLooper() ).post( () ->\n {\n if( (locations != null) && (locations.size() > 0) )\n {\n mLastRouteOriginLocation = locations.get( 0 );\n\n // get the route estimation after getting the closest POI\n getRouteEstimation( mLastRouteOriginLocation, mLastRouteDestinationLocation, travelMode, routeEstimationText ->\n {\n if( routeEstimationText != null )\n {\n mRouteEstimation = routeEstimationText.toString();\n } else\n {\n // ... if not, set this guy to null so the route estimation string will fall and align\n // with the walk/drive icon\n mRouteEstimation = null;\n mOriginPositionText = null;\n }\n\n mOriginPositionText = String.format( getString( R.string.from_param ), mLastRouteOriginLocation.getName() );\n\n if( mRouteEstimation != null )\n {\n updateRouteInfoView( mRouteEstimation, mOriginPositionText, vehicleIcon );\n }\n } );\n }\n else\n {\n getEstimationOutsideBuilding( userCPos, travelMode, vehicleIcon );\n }\n } );\n }\n } );\n }", "public static void validateGetLocationDetailsRequest(final InvLocationDetailRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t\t\r\n\t}", "public Move leastRoadMove(Building request, Land land) {\n\t\tArrayList<Move> moves = new ArrayList<Move>();\n\t\tif (request.type == Building.Type.FACTORY) {\n\t\t\t// searching top-down, left-right\n\t\t\tfor (int j = 0; j < land.side; j++) {\n\t\t\t\tfor (int i = 0; i < land.side; i++) {\n\t\t\t\t\tCell p = new Cell(i, j);\n\t\t\t\t\tBuilding[] rotations = request.rotations();\n\t\t\t\t\tfor (int ri = 0; ri < rotations.length; ri++) {\n\t\t\t\t\t\tBuilding b = rotations[ri];\n\t\t\t\t\t\tif (land.buildable(b, p))\n\t\t\t\t\t\t\tmoves.add(new Move(true, request, p, ri, new HashSet<Cell>(), new HashSet<Cell>(),\n\t\t\t\t\t\t\t\t\tnew HashSet<Cell>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (request.type == Building.Type.RESIDENCE) {\n\t\t\t// Searching top-down, right-left\n\t\t\tfor (int j = land.side; j >= 0; --j) {\n\t\t\t\tfor (int i = 0; i < land.side; ++i) {\n\t\t\t\t\tCell p = new Cell(i, j);\n\t\t\t\t\tBuilding[] rotations = request.rotations();\n\t\t\t\t\tfor (int ri = 0; ri < rotations.length; ri++) {\n\t\t\t\t\t\tBuilding b = rotations[ri];\n\t\t\t\t\t\tif (land.buildable(b, p))\n\t\t\t\t\t\t\tmoves.add(new Move(true, request, p, ri, new HashSet<Cell>(), new HashSet<Cell>(),\n\t\t\t\t\t\t\t\t\tnew HashSet<Cell>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Reject is no valid placements exist\n\t\tif (moves.isEmpty())\n\t\t\treturn new Move(false);\n\n\t\tArrayList<Move> moves2 = new ArrayList<Move>();\n\t\tboolean checkEmptyNeighborRoadAdj = true;\n\t\t\n\t\twhile(true){\n\t\t\t// Iterate through the moves and find their shortest roads for each\n\t\t\tfor (Move mc : moves) {\n\t\t\t\t// get coordinates of building placement \n\t\t\t\t// (position plus local building cell coordinates)\n\t\t\t\tSet<Cell> shiftedCells = new HashSet<Cell>();\n\t\t\t\tfor (Cell x : mc.request.rotations()[mc.rotation])\n\t\t\t\t\tshiftedCells.add(new Cell(x.i + mc.location.i, x.j + mc.location.j));\n\t\t\t\t// build a road to connect this building to perimeter\n\t\t\t\tSet<Cell> roadCells = findShortestRoad(shiftedCells, land);\n//\t\t\t\tif (roadCells.size()==0) {\n//\t\t\t\t\tif (!isNextToRoad(mc.location.i, mc.location.j, mc.request, land)) {\n//\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t\tif(roadCells == null){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(checkEmptyNeighborRoadAdj && !areNeighborsNextToRoad(mc.location.i, mc.location.j, mc.request.rotations()[mc.rotation], land, roadCells)){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmc.road = roadCells;\n\t\t\t\t\tmoves2.add(mc);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(checkEmptyNeighborRoadAdj && moves2.isEmpty()){\n\t\t\t\tcheckEmptyNeighborRoadAdj=false;\n\t\t\t\t//System.out.println(\"Failed using neighborsRoadChecking\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tmoves = moves2;\n\n\t\t// Reject if no valid placements exist\n\t\tif (moves.isEmpty())\n\t\t\treturn new Move(false);\n\n\t\t// Find minimum road length move\n\t\tint minimumIndex = 0;\n\t\tfor (int i = 0; i < moves.size(); i++) {\n\t\t\tif (moves.get(i).road.size() < moves.get(minimumIndex).road.size())\n\t\t\t\tminimumIndex = i;\n\t\t}\n\n\t\tMove chosenMove = moves.get(minimumIndex);\n\t\troad_cells.addAll(chosenMove.road); // Adding this road to the set of\n\t\t\t\t\t\t\t\t\t\t\t// roads\n\t\treturn chosenMove;\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setCharacterEncoding(\"UTF-8\");\n \n String desc = request.getParameter(\"desc\");\n String date = request.getParameter(\"date\");\n String time = request.getParameter(\"time\");\n String roomId = request.getParameter(\"roomId\");\n String st = request.getParameter(\"stuff\");\n String stAmt = request.getParameter(\"stuffAmt\");\n String type = request.getParameter(\"type\");\n String usName = request.getParameter(\"usName\");\n \n try{\n Moving m = new Moving();\n m.setDateMove(date+\" \"+time);\n m.setInOrOut(Boolean.parseBoolean(type));\n m.setRemark(desc);\n m.setUsName(usName);\n m.createRequest(Integer.parseInt(roomId));\n //add stuff\n stuff.addStuff(st, Integer.parseInt(stAmt), m.getId());\n //add more stuff\n for(int i=1;i<=10;i++){\n if(request.getParameter(\"stuff\"+i)!=null){\n stuff.addStuff(request.getParameter(\"stuff\"+i), Integer.parseInt(request.getParameter(\"stuffAmt\"+i)), m.getId());\n }\n }\n //Create Noti\n String app = null;\n if(desc.length()>10){ app = desc.substring(0,10)+\"...\";}else{ app = desc;};\n createNoti(usName,\"Moving Request\",\"request \"+app,\"admMgnReq\", Integer.parseInt(roomId));\n }catch(Exception e){\n System.err.println(e);\n }\n getServletContext().getRequestDispatcher(\"/userMovHistory?roomNo=\"+roomId).forward(request, response);\n }", "org.naru.park.ParkModel.UIParkRequest getRequest();", "public void handleRequest(ExtractionRequest request);", "private void processDialRequest(IQRequest request) throws Exception {\n\t\t\n\t\tif (getAdminService().isQuiesceMode()) {\n\t\t\tlog.warn(\"Gateway is on Quiesce mode. Discarding incoming dial request: [%s]\", request);\n\t\t\tsendIqError(request, Type.CANCEL, Condition.SERVICE_UNAVAILABLE, \"Gateway Server is on Quiesce Mode\");\n\t\t\treturn;\n\t\t}\n\t\t\t\t\t\t\n\t\tString platformId = gatewayStorageService.getPlatformForClient(request.getFrom());\n\t\tif (platformId != null) {\t\n\t\t\tsendDialRequest(request, platformId, new ArrayList<RayoNode>(), 0);\n\t\t} else {\n\t\t\tsendIqError(request, Type.CANCEL, Condition.SERVICE_UNAVAILABLE, \n\t\t\t\t\tString.format(\"Could not find associated platform for client JID %s\",request.getFrom()));\n\t\t}\n\t}", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "public void FetchOutfit(double clo_value_request) {\n mCloRequest = clo_value_request;\n mHasCloRequest = true;\n if (mTasksLeft==0){\n onAllTasksCompleted();\n }\n }", "public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }", "public RequestMappingInfo getMatchingCondition(HttpServletRequest request)\n/* */ {\n/* 210 */ RequestMethodsRequestCondition methods = this.methodsCondition.getMatchingCondition(request);\n/* 211 */ ParamsRequestCondition params = this.paramsCondition.getMatchingCondition(request);\n/* 212 */ HeadersRequestCondition headers = this.headersCondition.getMatchingCondition(request);\n/* 213 */ ConsumesRequestCondition consumes = this.consumesCondition.getMatchingCondition(request);\n/* 214 */ ProducesRequestCondition produces = this.producesCondition.getMatchingCondition(request);\n/* */ \n/* 216 */ if ((methods == null) || (params == null) || (headers == null) || (consumes == null) || (produces == null)) {\n/* 217 */ return null;\n/* */ }\n/* */ \n/* 220 */ PatternsRequestCondition patterns = this.patternsCondition.getMatchingCondition(request);\n/* 221 */ if (patterns == null) {\n/* 222 */ return null;\n/* */ }\n/* */ \n/* 225 */ RequestConditionHolder custom = this.customConditionHolder.getMatchingCondition(request);\n/* 226 */ if (custom == null) {\n/* 227 */ return null;\n/* */ }\n/* */ \n/* 230 */ return new RequestMappingInfo(this.name, patterns, methods, params, headers, consumes, produces, custom\n/* 231 */ .getCondition());\n/* */ }", "Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }", "private NbaRequirementResponseVO processRequirements(NbaRequirementRequestVO reqRequestVO) throws NbaBaseException {\n NbaRequirementResponseVO reqRespVO = new NbaRequirementResponseVO();\n String partyID = null;\n long personCode;\n long personSeq;\n List insuredRelations = reqRequestVO.getRelationsToUpdate();\n int count = insuredRelations.size(); \n NbaTXLife nbaTXLife = reqRequestVO.getNbaTXLife();\n NbaDst nbaDst = reqRequestVO.getNbaDst();\n reqRespVO.setReqMap(new HashMap(count));\n setPartyMapForLastReqIndicator(reqRequestVO);//NBLXA186-NBLXA1271\n for (int i = 0; i < count; i++) {\n Relation relation = (Relation) insuredRelations.get(i);\n partyID = relation.getRelatedObjectID();\n personCode = relation.getRelationRoleCode();\n personSeq = Long.parseLong(relation.getRelatedRefID());\n List requirements = (List) reqRequestVO.getReqMap().get(partyID);\n if (requirements != null) {\n commitRequirements(reqRequestVO, requirements, partyID, personCode, personSeq, nbaTXLife, nbaDst);\n //TODO passing map back to see if we can make commit/retrieve more efficient\n reqRespVO.getReqMap().put(partyID, requirements);\n }\n }\n reqRespVO.setNbaTXLife(nbaTXLife);\n reqRespVO.setNbaDst(nbaDst);\n return reqRespVO;\n \n }", "private GeofencingRequest getGeofencingRequest(LBAction lbAction) {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);// change upon params\n builder.addGeofence(createGeofenceForAction(lbAction));\n return builder.build();\n }", "private GeofencingRequest getGeofencingRequest() {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n\n // The INITIAL_TRIGGER_ENTER flag indicates that geofencing service should trigger a\n // GEOFENCE_TRANSITION_ENTER notification when the geofence is added and if the device\n // is already inside that geofence.\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);\n\n // Add the geofences to be monitored by geofencing service.\n builder.addGeofences(mGeofenceList);\n\n // Return a GeofencingRequest.\n return builder.build();\n }", "private GeofencingRequest getGeofencingRequest() {\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n\n // The INITIAL_TRIGGER_ENTER flag indicates that geofencing service should trigger a\n // GEOFENCE_TRANSITION_ENTER notification when the geofence is added and if the device\n // is already inside that geofence.\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);\n\n // Add the geofences to be monitored by geofencing service.\n builder.addGeofences(mGeofenceList);\n\n // Return a GeofencingRequest.\n return builder.build();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkModel.UIParkRequest, org.naru.park.ParkModel.UIParkRequest.Builder, org.naru.park.ParkModel.UIParkRequestOrBuilder> \n getRequestFieldBuilder() {\n if (requestBuilder_ == null) {\n requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkModel.UIParkRequest, org.naru.park.ParkModel.UIParkRequest.Builder, org.naru.park.ParkModel.UIParkRequestOrBuilder>(\n getRequest(),\n getParentForChildren(),\n isClean());\n request_ = null;\n }\n return requestBuilder_;\n }", "public void updateElevatorStatus(Integer elevatorID, int currentFloor, int destinationFloor) {\n ElevatorController controller = elevatorControllers.get(elevatorID);\n if (controller == null) {\n System.err.println(\"Failed to update status of elevator with ID: \" + elevatorID.toString());\n return;\n }\n controller.setElevatorCurrentFloor(currentFloor);\n Request request = RequestFactory.createRestartRequest(elevatorID, destinationFloor);\n try {\n scheduler.enqueueInternalRequest(request, controller);\n } catch (ElevatorsSchedulerException e) {\n //unlikely to happen as created request is validated with use of factory design pattern\n System.err.println(e.getMessage());\n }\n }", "public void registerRequest(){\n\t\tfor (Floor x: F)\n\t\t\tif (x.getPassengersWaiting()>0)\tdestRequest[x.getFloorNumber()] = 'Y';\t//Checks for the waiting passengers on each floor and assigns Y or N\n\t\t\telse destRequest[x.getFloorNumber()] = 'N';\t\t\t\t\t\t\t// based on that.\n\t}", "public void updateState() {\n //check if arrived\n if (destinations.contains(currentFloor)) {\n destinations.removeIf(n -> (n == currentFloor));\n System.out.println(\"\\t\\tElevator #\" + id + \": Arrived at floor #\" + currentFloor + \".\");\n }\n\n // take stock of assigned stops and change direction if required\n if (destinations.isEmpty()) {\n currentDirection = Direction.STOP;\n } else if ((currentDirection == Direction.UP && Collections.max(destinations) < currentFloor)) {\n currentDirection = Direction.DOWN;\n Collections.sort(destinations);\n Collections.reverse(destinations);\n } else if (currentDirection == Direction.DOWN && Collections.min(destinations) > currentFloor){\n currentDirection = Direction.UP;\n Collections.sort(destinations);\n }\n\n //Decide which way to go if the elevator is stopped and has gained a destination\n if (currentDirection == Direction.STOP && destinations.size() != 0) {\n int destinationFloor = Integer.MAX_VALUE;\n for (final Integer d : destinations) {\n if (Math.abs(currentFloor - d) < Math.abs(currentFloor - destinationFloor)) {\n destinationFloor = d;\n }\n }\n\n currentDirection = (destinationFloor > currentFloor ? Direction.UP : Direction.DOWN);\n }\n\n // update current floor\n if (currentDirection == Direction.DOWN) {\n currentFloor--;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved down to floor #\" + currentFloor + \".\");\n } else if (currentDirection == Direction.UP) {\n currentFloor++;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved up to floor #\" + currentFloor + \".\");\n }\n }", "public Request getRequest() throws IOException {\n\t\tString message = underlying.readStringLine();\n\t\tif(message != null && message.startsWith(\"!compute \"))\t\t\n\t\t\treturn new NodeRequest(message.substring(9).split(\"\\\\s\"));\t\t\n\t\tif(message != null && message.equals(\"!getLogs\"))\t\t\n\t\t\treturn new LogRequest();\n\t\tif(message != null && message.startsWith(\"!share \"))\t\t\n\t\t\treturn new ShareRequest(message.substring(7).trim());\n\t\tif(message != null && (message.startsWith(\"!commit \") || message.equals(\"!rollback\")))\t\t\n\t\t\treturn new CommitRequest(message);\n\t\treturn null;\n\t}", "public interface ElevatorSelectionStrategy {\n\tElevator getElevatorFor(Passenger passenger, Floor departureFloor, Environment env);\n}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public OptInfo createInitialRoutes() {\t\n\t\t//OptInfo has old and new attributes\n\t\tOptInfo info = new OptInfo();\n\t\tTSPDepot currDepot = null; //current depot\n\t\tTSPShipment currShip = null; //current shipment\n\t\t//int countLoop=0;\n\n\t\t//check if selection and insertion type methods have been selected\n\t\tif (ProblemInfo.selectShipType == null) {\n\t\t\tSettings.printDebug(Settings.ERROR,\n\t\t\t\t\t\"No selection shipment type has been assigned\");\n\n\t\t}\n\t\tif (ProblemInfo.insertShipType == null) {\n\t\t\tSettings.printDebug(Settings.ERROR,\n\t\t\t\t\t\"No insertion shipment type has been assigned\");\n\t\t}\n\n\t\t//capture the old attributes\n\t\tinfo.setOldAttributes(mainDepots.getAttributes());\n\t\twhile (!mainShipments.isAllShipsAssigned()) {\n\n\n\t\t\tcurrDepot = (TSPDepot) mainDepots.getTSPHead();\n\t\t\t//Send the entire mainDepots and mainShipments to get the next shipment\n\t\t\t//to be inserted including the current depot\n\t\t\tTSPShipment theShipment = mainShipments.getNextInsertShipment(mainDepots,\n\t\t\t\t\tcurrDepot, mainShipments, currShip);\n\t\t\tif (theShipment == null) { //shipment is null, print error message\n\t\t\t\tSettings.printDebug(Settings.COMMENT, \"No shipment was selected\");\n\t\t\t}\n\t\t\t//The selected shipment will be inserted into the route\n\t\t\tif (!mainDepots.insertShipment(theShipment)) {\n\t\t\t\tSettings.printDebug(Settings.COMMENT, \"The Shipment: <\" + theShipment.getIndex() +\n\t\t\t\t\t\t\"> cannot be routed\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//Settings.printDebug(Settings.COMMENT,\n\t\t\t\t//\t\t\"The Shipment: <\" + theShipment.getIndex() +// \" \" + theShipment +\n\t\t\t\t//\t\t\"> was routed\");\n\t\t\t\t//tag the shipment as being routed\n\t\t\t\ttheShipment.setIsAssigned(true);\n\t\t\t}\n\t\t}\n\t\tProblemInfo.depotLLLevelCostF.calculateTotalsStats(mainDepots);\n\t\tinfo.setNewAtributes(mainDepots.getAttributes());\n\t\treturn info;\n\t}", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "public void deleteRequest(Address pickupOrDelivery){\n Request requestToRemove = planningRequest.getRequestByAddress(pickupOrDelivery);\n ArrayList<Address> AddressOfRequest= new ArrayList<>();\n AddressOfRequest.add(requestToRemove.getPickupAddress());\n AddressOfRequest.add(requestToRemove.getDeliveryAddress());\n this.planningRequest.removeRequest(requestToRemove);\n if(!this.planningRequest.isEmpty()) {\n for (Address a : AddressOfRequest) {\n Path pathToRemove1 = this.tour.findPathDestination(a);\n Path pathToRemove2 = this.tour.findPathOrigin(a);\n try {\n Path newPath = this.findShortestPath(pathToRemove1.getDeparture(), pathToRemove2.getArrival());\n this.tour.replaceOldPaths(pathToRemove1, pathToRemove2, newPath);\n }catch (Exception e){\n //Do nothing here, this exception will never occur as find shortest path will only throw an\n //Exception if the the destination point is unreachable from the departure point\n //Which can never be true because if we are here it means that such a path exists\n //The proof is left as an exercise to the reader :)\n }\n }\n this.setChanged();\n notifyObservers();\n }else{\n this.tour.reset();\n this.setChanged();\n notifyObservers(\"We have erased all requests in the map\");\n }\n\n }", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}", "public static void validateUpdateLocationRequest(final InvLocationRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n\t\t\t\r\n\t\t\tif(request.getLocs() == null || request.getLocs().isEmpty()){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location ID should not be null or empty.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location ID should not be null or empty.\");\r\n\t\t\t}\r\n\t\t\tif(!InventoryUtility.isNullOrEmpty(request.getLocName()) && (request.getInventory()==null || request.getInventory().getInventoryId()==0)){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location Inventory id should not be zero.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location Inventory id should not be zero.\");\r\n\t\t\t }\r\n\t\t\t\t\t\t\r\n\t\t\tif(InventoryUtility.isNullOrEmpty(request.getLocName()) && request.getLocComments()==null){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location Name or Comments should not be null.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location Name or Comments should not be null.\");\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\t \r\n\t\t\t\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public void request() {\n /*\n r11 = this;\n r0 = 0\n r11.mResponse = r0\n java.lang.String r1 = r11.mUrlString\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r3 = 0\n r5 = r0\n r4 = 0\n L_0x000d:\n r6 = 1\n java.lang.String r7 = \"DistanceConfigFetcher\"\n if (r4 == 0) goto L_0x002a\n r1 = 2\n java.lang.Object[] r1 = new java.lang.Object[r1]\n java.lang.String r8 = r11.mUrlString\n r1[r3] = r8\n java.lang.String r8 = \"Location\"\n java.lang.String r9 = r5.getHeaderField(r8)\n r1[r6] = r9\n java.lang.String r9 = \"Following redirect from %s to %s\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r9, r1)\n java.lang.String r1 = r5.getHeaderField(r8)\n L_0x002a:\n int r4 = r4 + 1\n r8 = -1\n r11.mResponseCode = r8\n java.net.URL r8 = new java.net.URL // Catch:{ Exception -> 0x0035 }\n r8.<init>(r1) // Catch:{ Exception -> 0x0035 }\n goto L_0x0044\n L_0x0035:\n r8 = move-exception\n java.lang.Object[] r9 = new java.lang.Object[r6]\n java.lang.String r10 = r11.mUrlString\n r9[r3] = r10\n java.lang.String r10 = \"Can't construct URL from: %s\"\n org.altbeacon.beacon.logging.LogManager.e(r7, r10, r9)\n r11.mException = r8\n r8 = r0\n L_0x0044:\n if (r8 != 0) goto L_0x004e\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r8 = \"URL is null. Cannot make request\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r8, r6)\n goto L_0x00a0\n L_0x004e:\n java.net.URLConnection r8 = r8.openConnection() // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.net.HttpURLConnection r8 = (java.net.HttpURLConnection) r8 // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.lang.String r5 = \"User-Agent\"\n java.lang.String r9 = r11.mUserAgentString // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r8.addRequestProperty(r5, r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r5 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r11.mResponseCode = r5 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.String r5 = \"response code is %s\"\n java.lang.Object[] r6 = new java.lang.Object[r6] // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r9 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r6[r3] = r9 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n org.altbeacon.beacon.logging.LogManager.d(r7, r5, r6) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n goto L_0x009f\n L_0x0073:\n r5 = move-exception\n goto L_0x007c\n L_0x0075:\n r5 = move-exception\n goto L_0x0089\n L_0x0077:\n r5 = move-exception\n goto L_0x0096\n L_0x0079:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x007c:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach server\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0086:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0089:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"No data exists at \\\"+urlString\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0093:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0096:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach sever. Have you added android.permission.INTERNET to your manifest?\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n L_0x009f:\n r5 = r8\n L_0x00a0:\n r6 = 10\n if (r4 >= r6) goto L_0x00b2\n int r6 = r11.mResponseCode\n r8 = 302(0x12e, float:4.23E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 301(0x12d, float:4.22E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 303(0x12f, float:4.25E-43)\n if (r6 == r8) goto L_0x000d\n L_0x00b2:\n java.lang.Exception r0 = r11.mException\n if (r0 != 0) goto L_0x00e2\n java.io.BufferedReader r0 = new java.io.BufferedReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStreamReader r1 = new java.io.InputStreamReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStream r4 = r5.getInputStream() // Catch:{ Exception -> 0x00d8 }\n r1.<init>(r4) // Catch:{ Exception -> 0x00d8 }\n r0.<init>(r1) // Catch:{ Exception -> 0x00d8 }\n L_0x00c4:\n java.lang.String r1 = r0.readLine() // Catch:{ Exception -> 0x00d8 }\n if (r1 == 0) goto L_0x00ce\n r2.append(r1) // Catch:{ Exception -> 0x00d8 }\n goto L_0x00c4\n L_0x00ce:\n r0.close() // Catch:{ Exception -> 0x00d8 }\n java.lang.String r0 = r2.toString() // Catch:{ Exception -> 0x00d8 }\n r11.mResponse = r0 // Catch:{ Exception -> 0x00d8 }\n goto L_0x00e2\n L_0x00d8:\n r0 = move-exception\n r11.mException = r0\n java.lang.Object[] r1 = new java.lang.Object[r3]\n java.lang.String r2 = \"error reading beacon data\"\n org.altbeacon.beacon.logging.LogManager.w(r0, r7, r2, r1)\n L_0x00e2:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.altbeacon.beacon.distance.DistanceConfigFetcher.request():void\");\n }", "public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }", "private GeofencingRequest getAddGeofencingRequest() {\n List<Geofence> geofencesToAdd = new ArrayList<>();\n geofencesToAdd.add(geofenceToAdd);\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_EXIT)\n .addGeofences(geofencesToAdd);\n return builder.build();\n\n }", "@RequestMapping(value = \"getElevatorObject/{principal}\", method = RequestMethod.GET)\n @ResponseBody public Elevator getElevatorObject(@PathVariable String principal, \n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorID,\n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorName) {\n Elevator elevator = new Elevator(Long.valueOf(elevatorID), elevatorName, principal);\n \n logger.info(\"------genarate elevator : \" + elevator.toString() + \"------\");\n return elevator;\n }", "public void executeRequest() throws CloneNotSupportedException {\n\t\t\n\t\tfor (BookingRequest bookingRequest : bookingRequestList) {\n\t\t\tCab assignedCab = null;\n\t\t\tdouble bestProfitMargin = 0;\n\t\t\tfor (Cab cabDetail : cabDetailList) {\n\t\t\t\t//check the business logic for booking cabs\n\t\t\t\tboolean checkCabReachability = checkCabReachability(bookingRequest, cabDetail);\n\t\t\t\tdouble cabProfitMargin = checkCabProfitMargin(bookingRequest, cabDetail);\n\t\t\t\t\n\t\t\t\tif (checkCabReachability && (cabProfitMargin > bestProfitMargin)) {\n\t\t\t\t\t assignedCab = cabDetail;\n\t\t\t\t\t bestProfitMargin = cabProfitMargin;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (assignedCab != null) {\n\t\t\t\tbookingRequest.setAssignedCab(assignedCab.clone());\n\t\t\t\t//adding o calculate profit\n\t\t\t\tbookingRequest.setProfit(bestProfitMargin);\n\t\t\t\tCalendar newCabTime = bookingRequest.getPickUpTime();\n\t\t\t\tInteger tripDistance = Utils.calculateDistance(bookingRequest.getPickUpArea(), bookingRequest.getDropArea());\n\t\t\t\tnewCabTime.add(Calendar.MINUTE, tripDistance * Constants.DISTANCE_BETWEEN_AREA);\n\t\t\t\tassignedCab.setCurrentLocationTime(newCabTime);\n\t\t\t\tassignedCab.setInitialLocation((Area)bookingRequest.getDropArea().clone());\n\t\t\t}\n\t\t}\n\t\t//finally displaying the response from the application\n\t\tdisplayMappingOfCabs(bookingRequestList);\n\t}", "protected int moveDownFloor() {\n delayElevator();\n return currentFloor.decrementAndGet();\n }", "@Override\n public EvRequest submitRequest(EvRequest request) {\n request.time = request.time.plusNanos(new Random().nextInt(250));\n String s = new ToStringCreator(request)\n .append(\"energy\", request.energy)\n .append(\"date\", request.date)\n .append(\"time\", request.time)\n .append(\"window\", request.window)\n .toString();\n logger.info(\"New request: \" + s);\n\n int hash = Objects.hash(request.energy, request.date, request.time, request.window);\n\n EvRequest copy = new EvRequest();\n copy.id = Objects.toString(Math.abs(hash));\n copy.energy = request.energy;\n copy.date = request.date;\n copy.time = request.time;\n copy.window = request.window;\n\n requests.add(copy);\n return copy;\n }", "@Override\n\tpublic DrtRequest createRequest(Id<Request> id, MobsimPassengerAgent passenger, Link fromLink, Link toLink,\n\t\t\tdouble departureTime, double submissionTime) {\n\t\tLeg leg = (Leg)((PlanAgent)passenger).getCurrentPlanElement();\n\t\tDrtRoute drtRoute = (DrtRoute)leg.getRoute();\n\n\t\tdouble latestDepartureTime = departureTime + drtRoute.getMaxWaitTime();\n\t\tdouble latestArrivalTime = departureTime + drtRoute.getTravelTime();\n\n\t\teventsManager.processEvent(\n\t\t\t\tnew DrtRequestSubmittedEvent(timer.getTimeOfDay(), id, passenger.getId(), fromLink.getId(),\n\t\t\t\t\t\ttoLink.getId(), drtRoute.getDirectRideTime(), drtRoute.getDistance()));\n\n\t\treturn new DrtRequest(id, passenger, fromLink, toLink, departureTime, latestDepartureTime, latestArrivalTime,\n\t\t\t\tsubmissionTime);\n\t}", "public static String generateQueryOption(HttpServletRequest request) {\n\t\tHashMap<String, String> optionMapMap = new HashMap<String, String>();\n\t\tString reservation_Num = request.getParameter(\"reservation_Num\");\n\t\tString team_ID = request.getParameter(\"team_ID\");\n\t\tString room_ID = request.getParameter(\"room_ID\");\n\t\tString purpose = request.getParameter(\"purpose\");\n\t\tString status = request.getParameter(\"status\");\n\t\tString email = request.getParameter(\"email\");\n\t\tString tele = request.getParameter(\"tele\");\n\t\tString Applied_Start_Date = request.getParameter(\"Applied_Start_Date\");\n\t\tString Applied_End_Date = request.getParameter(\"Applied_End_Date\");\n\t\tString order_Time = request.getParameter(\"order_Time\");\n\t\tif (reservation_Num != null && reservation_Num.length() > 0) {\n\t\t\toptionMapMap.put(\"reservation_Num\", reservation_Num);\n\t\t}\n\t\tif (team_ID != null && team_ID.length() > 0) {\n\t\t\toptionMapMap.put(\"team_ID\", team_ID);\n\t\t}\n\t\tif (room_ID != null && room_ID.length() > 0) {\n\t\t\toptionMapMap.put(\"room_ID\", room_ID);\n\t\t}\n\t\tif (purpose != null && purpose.length() > 0) {\n\t\t\toptionMapMap.put(\"purpose\", purpose);\n\t\t}\n\t\tif (status != null && status.length() > 0) {\n\t\t\toptionMapMap.put(\"status\", status);\n\t\t}\n\t\tif (tele != null && tele.length() > 0) {\n\t\t\toptionMapMap.put(\"tele\", tele);\n\t\t}\n\t\tif (email != null && email.length() > 0) {\n\t\t\toptionMapMap.put(\"email\", email);\n\t\t}\n\t\tif (Applied_Start_Date != null && Applied_Start_Date.length() > 0) {\n\t\t\toptionMapMap.put(\"Applied_Start_Date\", Applied_Start_Date);\n\t\t}\n\t\tif (Applied_End_Date != null && Applied_End_Date.length() > 0) {\n\t\t\toptionMapMap.put(\"Applied_End_Date\", Applied_End_Date);\n\t\t}\n\t\tif (order_Time != null && order_Time.length() > 0) {\n\t\t\toptionMapMap.put(\"order_Time\", order_Time);\n\t\t}\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tSet<String> keys = optionMapMap.keySet();\n\t\tint i = 0;\n\t\tfor (String key : keys) {\n\t\t\tif (key.equals(\"team_ID\") || key.equals(\"room_ID\")\n\t\t\t\t\t|| key.equals(\"user_ID\") || key.equals(\"status\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"=\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim());\n\t\t\t} else if (key.equals(\"purpose\") || key.equals(\"reservation_Num\")\n\t\t\t\t\t|| key.equals(\"email\") || key.equals(\"tele\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \" like \" + \"'%\"\n\t\t\t\t\t\t+ optionMapMap.get(key).toString().trim() + \"%'\");\n\t\t\t} else if (key.equals(\"Applied_Start_Date\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \">='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t} else if (key.equals(\"Applied_End_Date\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"<='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t} else if (key.equals(\"order_Time\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t}\n\t\t\tif ((i + 1) != keys.size()) {\n\t\t\t\tbuilder.append(\" and \");\n\t\t\t}\n\t\t\t++i;\n\t\t}\n\t\treturn builder.toString();\n\t}", "public CustomerRequestHandler(CustomerRequest request, View top, View bottom) {\n\t\t\t\tmRequest = request;\n\n\t\t\t\tmTop = top;\n\t\t\t\tmBottom = bottom;\n\n\t\t\t\t// Get a reference to all the top pieces \n\t\t\t\tfinal ImageView REQUESTIMAGE = (ImageView) \n\t\t\t\t\t\tmTop.findViewById(R.id.image_request_thumbnail);\n\t\t\t\tTextView title = (TextView) mTop.findViewById(R.id.label_request_title);\n\n\t\t\t\tmExpandDown = (ImageView) \n\t\t\t\t\t\tmTop.findViewById(R.id.button_expand_request);\n\t\t\t\tTextView time = (TextView) mTop.findViewById(R.id.label_request_time);\n\t\t\t\tmPickRequest = (Button) mBottom.findViewById(R.id.button_proceed_request);\t\n\n\t\t\t\t// Get a reference to all the bottom pieces\n\t\t\t\tImageButton assignStaffButton = (ImageButton) \n\t\t\t\t\t\tmBottom.findViewById(R.id.button_assign);\n\n\t\t\t\tImageButton remove = (ImageButton) mBottom.findViewById(R.id.button_remove);\n\n\t\t\t\tmSpinner = (Spinner) mBottom.findViewById(\n\t\t\t\t\t\tR.id.spinner_staff_to_assign);\n\n\t\t\t\tDineOnImage image = mRequest.getUserInfo().getImage();\n\t\t\t\tif (image != null) {\n\t\t\t\t\tmListener.onGetImage(image, new InitialGetImageCallback(\n\t\t\t\t\t\t\tREQUESTIMAGE));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Populate\n\n\t\t\t\ttitle.setText(mRequest.getDescription() \n\t\t\t\t\t\t+ getString(R.string.dash) + mRequest.getUserInfo().getName());\n\n\n\t\t\t\ttime.setText(mRequest.getOriginatingTime().toString());\n\n\t\t\t\t// Add listeners for reaction purposes\n\t\t\t\tremove.setOnClickListener(this);\n\t\t\t\tmSpinner.setAdapter(new ArrayAdapter<String>(getActivity(), \n\t\t\t\t\t\tandroid.R.layout.simple_list_item_1, mStaff));\n\t\t\t\tassignStaffButton.setOnClickListener(this);\n\n\t\t\t\tmTop.setOnClickListener(this);\n\t\t\t\tmPickRequest.setOnClickListener(this);\n\n\t\t\t\t// Set the image of this request\n\t\t\t\t//\t\t\t\tDineOnImage image = order.getMainImage();\n\t\t\t\t//\t\t\t\tif (image != null) {\n\t\t\t\t//\t\t\t\t\tmListener.onGetImage(image, new ImageGetCallback() {\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\tpublic void onImageReceived(Exception e, Bitmap b) {\n\t\t\t\t//\t\t\t\t\t\t\tif (e == null) {\n\t\t\t\t//\t\t\t\t\t\t\t\t// We got the image so set the bitmap\n\t\t\t\t//\t\t\t\t\t\t\t\tORDERIMAGE.setImageBitmap(b);\n\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t});\n\t\t\t\t//\t\t\t\t}\n\n\t\t\t\t// Set the bottom view to initial to be invisible\n\t\t\t\tmBottom.setVisibility(View.GONE);\n\t\t\t}", "@Override\n public void loadRequest(String fileName)\n throws ParserConfigurationException, SAXException, IOException, ParseException {\n resetPlanningRequest();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!mapLoaded){\n this.setChanged();\n this.notifyObservers(\"No map loaded, load a map and try again.\");\n throw new IOException();\n }else if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct.\");\n throw new IOException();\n }else {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"planningRequest\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListRequest = doc.getElementsByTagName(\"request\");\n for (int temp = 0; temp < nodeListRequest.getLength(); temp++) {\n Node node = nodeListRequest.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long pickupIntersectionId = Long.parseLong(element.getAttribute(\"pickupAddress\"));\n Intersection pickupIntersection = getIntersectionById(pickupIntersectionId);\n long deliveryIntersectionId = Long.parseLong(element.getAttribute(\"deliveryAddress\"));\n Intersection deliveryIntersection = getIntersectionById(deliveryIntersectionId);\n if((pickupIntersection==null) || (deliveryIntersection==null)){\n throw new NumberFormatException();\n }\n int pickupDuration = Integer.parseInt(element.getAttribute(\"pickupDuration\"));\n int deliveryDuration = Integer.parseInt(element.getAttribute(\"deliveryDuration\"));\n Address pickupAddress = new Address(pickupIntersectionId,pickupIntersection.getLatitude(),pickupIntersection.getLongitude(),pickupDuration, 1 /*for pickup*/);\n Address deliveryAddress = new Address(deliveryIntersectionId,deliveryIntersection.getLatitude(),deliveryIntersection.getLongitude(),deliveryDuration, 2 /*for delivery*/);\n\n planningRequest.addRequest(new Request(pickupAddress, deliveryAddress));\n }\n }\n // get the depot\n NodeList nodeListDepot = doc.getElementsByTagName(\"depot\");\n for (int temp = 0; temp < nodeListDepot.getLength(); temp++) {\n Node node = nodeListDepot.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long addressId = Long.parseLong(element.getAttribute(\"address\"));\n String departTime = element.getAttribute(\"departureTime\");\n planningRequest.setStartingPoint(getIntersectionById(addressId));\n planningRequest.setDepartureTime(new SimpleDateFormat(\"HH:mm:ss\").parse(departTime));\n }\n }\n } catch (ParserConfigurationException | SAXException err) {\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n } catch (ParseException err) {\n this.setChanged();\n this.notifyObservers(\"Bad departureTime format.\");\n throw err;\n } catch (IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n if((planningRequest.getRequestList().isEmpty())\n || (planningRequest.getStartingPoint()==null)\n || (planningRequest.getDepartureTime()==null)){\n resetPlanningRequest();\n this.setChanged();\n this.notifyObservers(\"Planning is empty. Check your XML file.\");\n throw new IOException();\n }\n planningLoaded = true;\n this.setChanged();\n }\n }", "public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}", "public static Request parseRequest(BufferedReader input) throws IOException, IllegalStateException, SocketException\n {\n Request request = new Request();\n String line;\n Matcher matcher;\n\n // Parsing request method & uri\n if ((line = input.readLine()) == null) throw new SocketException(\"Client disconnected\");\n\n matcher = regexMethod.matcher(line);\n if (matcher.find()) {\n request.method = RtspMethod.valueOf(matcher.group(1));\n request.uri = matcher.group(2);\n LogHelper.e(TAG, \"Line: \" + line);\n LogHelper.e(TAG, \"Parsing request method & uri: \" + request.method + \" --> \" + request.uri);\n\n // Parsing headers of the request\n while ((line = input.readLine()) != null && line.length() > 3) {\n matcher = regexHeader.matcher(line);\n if (matcher.find()) {\n request.headers.put(matcher.group(1).toLowerCase(Locale.US), matcher.group(2));\n LogHelper.e(TAG, \"Parsing headers of the request: \" + line + \" | \" +\n matcher.group(1).toLowerCase(Locale.US) + \" --> \" + matcher.group(2));\n }\n }\n if (line == null) throw new SocketException(\"Client disconnected\");\n\n // It's not an error, it's just easier to follow what's happening in logcat with the request in red\n LogHelper.e(TAG, request.method + \" \" + request.uri);\n }\n\n return request;\n }", "public void requestElevatorPickUp(int floorId, UserPriority priority) {\n\t\televatorManager.requestPickup(new ElevatorManagerRequest(floorId, priority));\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability getRequestedDatesForAvailabilityReq(RequestedDatesForAvailability requestedDatesForAvailability){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability req = \n\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability();\n\t\t\n\t\treq.setNoOfRooms( requestedDatesForAvailability.getNoOfRooms() );\n\t\treq.setBookingDate( requestedDatesForAvailability.getBookingDate() );\t\n\t\treq.setBookingDuration( requestedDatesForAvailability.getBookingDuration() );\n\t\treq.setRoomDescription( requestedDatesForAvailability.getRoomDescription() );\n\t\treq.setRoomStatus( requestedDatesForAvailability.getRoomStatus() );\n\t\treq.setMaterialNumber( requestedDatesForAvailability.getMaterialNumber() );\n\t\tif( (requestedDatesForAvailability.getReqDates() != null) && (requestedDatesForAvailability.getReqDates().size() > 0) ){\n\t\t\tfor(int i=0; i < requestedDatesForAvailability.getReqDates().size(); i++){\n\t\t\t\treq.getReqDates().add( requestedDatesForAvailability.getReqDates().get(i) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn req;\n\t}", "@objid (\"29905fee-55b6-11e2-877f-002564c97630\")\n @Override\n public EditPart getTargetEditPart(Request request) {\n // Only care about specific creation or add requests, super can handle\n // the rest.\n if (RequestConstants.REQ_ADD.equals(request.getType()) || RequestConstants.REQ_MOVE.equals(request.getType())) {\n // If the request is to ADD or MOVE a partition, return the\n // \"top level\" partition container that is currently holding the\n // partition (do not allow to reparent to the diagram background).\n // Else if the request to to MOVE or ADD a parameter container\n // (should only be MOVE by the way), allow it and return host.\n List<?> movedEditParts = ((ChangeBoundsRequest) request).getEditParts();\n for (Object editPartObj : movedEditParts) {\n if (((EditPart) editPartObj).getModel() instanceof GmPartition) {\n // Move up in the composition stack to find the top level\n // partition container (which itself is contained in the\n // activity parameter container)\n EditPart container = ((EditPart) editPartObj).getParent();\n while (container.getParent() != null\n && !(container.getParent().getModel() instanceof GmPartitionParameterContainer)) {\n container = container.getParent();\n }\n return container;\n } else if (((EditPart) editPartObj).getModel() instanceof GmPartitionParameterContainer) {\n return getHost();\n }\n }\n // No partition nor parameter container in the moved edit\n // parts: super should be able to handle the rest!\n return super.getTargetEditPart(request);\n \n } else if (RequestConstants.REQ_CREATE != request.getType()) {\n return super.getTargetEditPart(request);\n }\n \n // Only care about request for partitions, super can handle the rest.\n final ModelioCreationContext ctx = (ModelioCreationContext) ((CreateRequest) request).getNewObject();\n if (ctx.getJavaClass() != ActivityPartition.class) {\n return super.getTargetEditPart(request);\n }\n // Get the specific property \"kind\" from the tool, to know exactly what\n // is requested: a partition container, a sibling partition, or an inner\n // partition.\n PartitionToolKind kind = getPartitionKind(ctx);\n switch (kind) {\n case SIBLING: {\n // Siblings are created by partition containers themselves.\n return null;\n }\n case INNER: {\n // Inner partitions are created by partition containers\n // themselves.\n return null;\n }\n case HORIZONTAL_CONTAINER: {\n if (canHandle(ctx.getMetaclass().getMetamodel().getMClass(ActivityPartition.class), null)) {\n return getHost();\n }\n // else\n return null;\n }\n case VERTICAL_CONTAINER: {\n if (canHandle(ctx.getMetaclass().getMetamodel().getMClass(ActivityPartition.class), null)) {\n return getHost();\n }\n // else\n return null;\n }\n }\n // no kind: this is probably a drop from explorer, do not handle here.\n return null;\n }", "public synchronized void handle(PBFTRequest r){\n \n Object lpid = getLocalServerID();\n\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \", at time \" + getClockValue() + \", received \" + r);\n\n StatedPBFTRequestMessage loggedRequest = getRequestInfo().getStatedRequest(r);\n \n /* if the request has not been logged anymore and it's a old request, so it was garbage by checkpoint procedure then I must send a null reply */\n if(loggedRequest == null && getRequestInfo().isOld(r)){\n IProcess client = new BaseProcess(r.getClientID());\n PBFTReply reply = new PBFTReply(r, null, lpid, getCurrentViewNumber());\n emit(reply, client);\n return;\n \n }\n \n try{\n /*if the request is new and hasn't added yet then it'll be added */\n if(loggedRequest == null){\n /* I received a new request so a must log it */\n loggedRequest = getRequestInfo().add(getRequestDigest(r), r, RequestState.WAITING);\n loggedRequest.setRequestReceiveTime(getClockValue());\n }\n\n /* if I have a entry in request log but I don't have the request then I must update my request log. */\n if(loggedRequest.getRequest() == null) loggedRequest.setRequest(r);\n \n /*if the request was served the I'll re-send the related reply if it has been logged yet.*/\n if(loggedRequest.getState().equals(RequestState.SERVED)){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" has already served \" + r);\n\n /* retransmite the reply when the request was already served */\n PBFTReply reply = getRequestInfo().getReply(r);\n IProcess client = new BaseProcess(r.getClientID());\n emit(reply, client);\n return;\n }\n \n /* If I'm changing then I'll do nothing more .*/\n if(changing()) return;\n\n PBFTPrePrepare pp = getPrePreparebackupInfo().get(getCurrentViewNumber(), getCurrentPrimaryID(), loggedRequest.getDigest());\n\n if(pp != null && !isPrimary()){\n /* For each digest in backuped pre-prepare, I haven't all request then it'll be discarded. */\n DigestList digests = new DigestList();\n for(String digest : pp.getDigests()){\n if(!getRequestInfo().hasRequest(digest)){\n digests.add(digest);\n }\n }\n \n if(digests.isEmpty()){\n handle(pp);\n getPrePreparebackupInfo().rem(pp);\n return;\n } \n }\n\n boolean committed = loggedRequest.getState().equals( RequestState.COMMITTED );\n \n// /* if my request was commit and it hasn't been served yet I must check the stated of the request */\n if(committed){\n tryExecuteRequests();\n return;\n }\n \n /* performs the batch procedure if the server is the primary replica. */\n if(isPrimary()){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" (primary) is executing the batch procedure for \" + r + \".\");\n batch();\n }else{\n /* schedules a timeout for the arriving of the pre-prepare message if the server is a secundary replica. */\n scheduleViewChange();\n }//end if is primary\n \n }catch(Exception e){\n e.printStackTrace();\n }\n }", "private LocationRequest getLocationRequest() {\r\n Log.i(TAG, \"getting location request\");\r\n LocationRequest locationRequest = new LocationRequest();\r\n locationRequest.setInterval(10000);\r\n locationRequest.setFastestInterval(5000);\r\n locationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);\r\n return locationRequest;\r\n }", "public Request getRequest() {\r\n return localRequest;\r\n }" ]
[ "0.71481043", "0.6693267", "0.6563869", "0.6537505", "0.6476989", "0.61986655", "0.5956657", "0.58785915", "0.57723224", "0.5758395", "0.56922156", "0.56874645", "0.56553316", "0.5514173", "0.54830545", "0.54357755", "0.54117274", "0.53979594", "0.5376283", "0.53462315", "0.53266954", "0.5277341", "0.5263814", "0.52497494", "0.51898086", "0.51739824", "0.5158688", "0.51376945", "0.5101428", "0.51007783", "0.50717187", "0.50539166", "0.50189584", "0.50163144", "0.49989182", "0.49888352", "0.49744523", "0.4940482", "0.4936241", "0.49168953", "0.49150142", "0.49139312", "0.4903448", "0.4898355", "0.48646238", "0.48618177", "0.48529366", "0.4851221", "0.48503634", "0.4829945", "0.4829559", "0.4819668", "0.48022583", "0.47939155", "0.47795352", "0.4777006", "0.4764003", "0.47614163", "0.4758469", "0.47459725", "0.47343314", "0.47198337", "0.47186303", "0.47159234", "0.4707944", "0.47050548", "0.4704199", "0.46991637", "0.46991637", "0.46849597", "0.46812484", "0.4680779", "0.46756217", "0.4674829", "0.4673212", "0.46706918", "0.46586838", "0.4658586", "0.4653003", "0.46511722", "0.46435097", "0.4640878", "0.46336386", "0.46185896", "0.4612775", "0.46038613", "0.4589556", "0.45783982", "0.45740372", "0.45646876", "0.45626363", "0.45280015", "0.45245904", "0.45234567", "0.45183602", "0.4515309", "0.45093095", "0.4507799", "0.4488647", "0.4488234" ]
0.82448727
0
Description:Request Received, Regardless the Request Came from which Floor it should fetch for Elevator that might stand in the current floor of the request or most nearest Floor from the currently available Elevators. The Suitable Elevator's future floor should be the request destination. In Case no more available Elevators, checkAvaliableElevators is called to release the older 4 elevators.
public void addRequest( Request currentRequest) { if(availableElevadors.isEmpty()) { System.out.println("--------- Currently all elevators in the system are Occupied ------"); System.out.println("--------- Request to Go to Floor " + currentRequest.getDestinationflour()+" From Floor" + currentRequest.getCurrentFlour() +" has been added to the System --------"); checkAvaliableElevators(); } processRequest(currentRequest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processRequest(Request currentRequest)\r\n\t{\r\n\t\tint nearestFloor=55;\r\n\t\tElevator nearestElevatorAvailable = new Elevator();\r\n\t\t\r\n\tfor(int i=0 ; i < availableElevadors.size();i++)\r\n\t{\r\n\t\t\r\n\t\tif (nearestFloor >= Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour()))\r\n\t\t{\r\n\t\t\tnearestFloor = Math.abs(availableElevadors.get(i).getCurrentFloor() - currentRequest.getCurrentFlour());\r\n\t\t\tnearestElevatorAvailable= availableElevadors.get(i);\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t}\r\n\tSystem.out.println(\" Enjoy your ride with Elevator no\" + nearestElevatorAvailable.getElevatorNumber());\r\n\r\n\tnearestElevatorAvailable.setCurrentFloor(currentRequest.getDestinationflour());\r\n\tavailableElevadors.remove(nearestElevatorAvailable);\r\n\toccupiedElevadors.add(nearestElevatorAvailable);\r\n\t\t\r\n\t}", "@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }", "public Elevator request(int floor, Direction dir) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic int user_request(Floor current_floor, Elevator elevator) \r\n\t{\n\t\tif(current_floor.floor_door.state==0 && elevator.elevator_door.state==0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public synchronized Elevator requestElevator(int currentWorkerFloor, boolean goingUp) {\n\t\twhile (true) {\n\t\t\tfor (int liftNum = 0; liftNum < NUM_OF_ELEVATORS; liftNum++) {\n\t\t\t\tif (lift[liftNum].getCurrentFloor() == currentWorkerFloor && lift[liftNum].isDirectionUp() == goingUp) {\n\t\t\t\t\treturn lift[liftNum];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void requestPickup(int floor, int direction) {\n // Pick an elevator at rest\n for (Elevator elevator : elevators) {\n if (elevator.getDirection() == 0) {\n elevator.getRequests().offer(floor);\n return;\n }\n }\n\n // Pick an elevator with least load\n Elevator minElevator = elevators.get(0);\n for (Elevator elevator : elevators) {\n if (elevator.getRequests().size() < minElevator.getRequests().size()) {\n minElevator = elevator;\n }\n }\n // add request\n minElevator.getRequests().offer(floor);\n }", "public void checkAvaliableElevators()\r\n\t{\r\n\t\tSystem.out.println(\"--------- Checking Elevators Current Status ------\");\t\r\n\t\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tfor(int i=0; i <numberOfElevators-3; i++) {\r\n\t\t\t\tavailableElevadors.add(occupiedElevadors.remove(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"--------- Elevators are available again ------\");\r\n\t\t\r\n\t\t}else {\r\n\t\t\tfor(int i=0;i<availableElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + availableElevadors.get(i).getElevatorNumber() +\" ready for Requests\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<occupiedElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + occupiedElevadors.get(i).getElevatorNumber() +\" is Occupied\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t}", "public boolean updateElevator() { \n \t//If no people are waiting, do nothing\n if (queue.isEmpty()){\n \t\treturn true;\n \t}\n \n //Update total wait time\n for (int i = 0; i < queue.size(); i++) {\n if (queue.get(i).getActionType() == ElevatorAction.PICKUP) {\n totalWaitTime = totalWaitTime.add(BigInteger.ONE);\n queue.get(i).getPassenger().tempwT += 1;\n }\n }\n \n //Update total travel time\n totalTravelTime = totalTravelTime.add(BigInteger.valueOf((long)currentPassengers.size()));\n for (int i = 0; i < currentPassengers.size(); i++) {\n currentPassengers.get(i).temptT += 1;\n }\n \n //Passengers boarding, no movement\n if (waitingTime > 0) {\n waitingTime -= 1;\n return true;\n }\n \n ElevatorQueueObject q = queue.getFirst();\n \n //If the elevator is full, fetch the next passenger who can disembark successfully\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch next destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Check destination is valid\n if (!containsFloor(floors, dest)) {\n return false;\n }\n \n //Update Elevator Position\n float tempFloor = currentFloor;\n float newFloor = currentFloor;\n \n if (dest > currentFloor) { //Going up\n newFloor += (specs.getCarSpeed() / distancePerFloor);\n if (dest <= newFloor) { //Reached destination\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n } else if (dest < currentFloor) { //Going down\n newFloor -= (specs.getCarSpeed() / distancePerFloor);\n if (dest >= newFloor) { //Reached destination?\n currentFloor = dest;\n //Set waiting time for embarking/disembarking\n waitingTime = specs.getFloorDelay();\n } else {\n currentFloor = newFloor;\n }\n }\n\n //Update travel distance \n totalTravelDistance = totalTravelDistance.add(\n BigDecimal.valueOf(Math.abs(tempFloor - currentFloor) * distancePerFloor)\n );\n \n //Everything okay\n return true;\n }", "public\tElevator(){\t\t\t\t\t\t\n\t\tcurrentFloor = 1;\n\t\tcurrentDirection = \"UP\";\n\t\ttotalPassengers = 0;\n\t\ttotalPassDestFloor = new int[8];\n\t\tdestRequest = new char[8];\n\t\t \n\t}", "@Test\n\tpublic void returnNullWhenNoneIdel() {\n\t\t\n\t\twhen(elevatorRepository.getElevators()).thenReturn(elevators);\n\t\tElevator elevator = elevatorAllocateService.requestElevator(task);\n\t\tassertNull(elevator);\n\t}", "public int transferPeople(Elevator e)\n\t{\n\t\tint transfered = e.pList.size();\n\t\tfor(int i = 0; i < e.pList.size(); i++)\n\t\t{\n\t\t\tPerson p = e.pList.get(i);\n\t\t\tif(p.destination.floorNumber == this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"person leaving elevator \" + e.id + \" on floor \" + this.floorNumber);\n\t\t\t\te.pList.get(i).exit();\n\t\t\t\te.pList.remove(i);\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.NOTFULL;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\ttransfered-=e.pList.size();\n\t\ttransfered+=this.pList.size();\n\t\tint available = e.getTotalCapacity()-e.getCurrentCapacity();\n\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.IDLE)\n\t\t{\n\t\t\tif(pList.size()!=0&&pList.get(0).destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going up\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGUP;\n\t\t\t}\n\t\t\telse if(pList.size()!=0&&pList.get(0).destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.id + \" Now going down\");\n\t\t\t\te.getCurrentState().directionState = ElevatorState.DirectionState.GOINGDOWN;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\t\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGUP)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber > this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(e.getCurrentState().directionState == ElevatorState.DirectionState.GOINGDOWN)\n\t\t\t{\n\t\t\t\tif(p.destination.floorNumber < this.floorNumber)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"person entering elevator \" + e.id + \" from floor \" + this.floorNumber + \n\t\t\t\t\t\t\t\" destination is \" + p.destination.floorNumber);\n\t\t\t\t\tpList.remove(p);\n\t\t\t\t\tp.enter();\n\t\t\t\t\ti--;\n\t\t\t\t\tp.current=e;\n\t\t\t\t\tp.state = Person.ELEVATOR;\n\t\t\t\t\te.pList.add(p);\n\t\t\t\t\tif(!e.getFloorsRequested().contains(p.destination))\n\t\t\t\t\t{\n\t\t\t\t\t\te.getFloorsRequested().add(p.destination);\n\t\t\t\t\t}\n\t\t\t\t\tavailable--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(available==0)\n\t\t\t{\n\t\t\t\te.getCurrentState().capacityState=ElevatorState.CapacityState.FULL;\n\t\t\t\tSystem.out.println(\"Elevator \" + e.id + \" is now full\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttransfered-=this.pList.size();\n\t\tSystem.out.println(\"transfered \" + transfered + \" on floor \" + this.floorNumber + \" number of people still on floor is \" + pList.size());\n\t\treturn transfered;\n\t}", "public void run() {\n\t\ttry {\n\t\t\tif (floorId >= elevator.getCurrentFloorId()) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.UP);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going up from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId > elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.DOWN);\n\t\t\t\tSystem.out.print(\"\\nElevator \" + elevator.getId() + \" is going down from floor \" + elevator.getCurrentFloorId() + \" to floor \" + floorId + \"\\n\");\n\t\t\t\twhile(floorId < elevator.getCurrentFloorId() && !elevator.shouldBeStopped) {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\televator.setCurrentFloorId(elevator.getCurrentFloorId() - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\televator.setCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t\televator.isBusy = false;\n\t\t\t}\n\t\t\tif(elevator.shouldBeStopped) {\n\t\t\t\televator.shouldBeStopped=false;\n\t\t\t\tSystem.out.println(\"Elevator is stopped\");\n\t\t\t} else {\n\t\t\t\televator.notifyObservers();\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public interface Elevator {\n public static final int UP = 1, LEVEL = 0, DOWN = -1, ERROR = -2;\n /** Returns the minimal floor number to which this Elevator can reach(often a negative value).\n * This is the same value as the lowest floor in the building - this elevator belongs to. */\n public int getMinFloor();\n /** Returns the maximal floor number to which this Elevator can reach.\n * This is the same value as the highest floor in the building - this elevator belongs to. */\n public int getMaxFloor();\n /** Returns the time (in seconds it takes the Elevator to open its doors. */\n public double getTimeForOpen();\n /** Returns the time (in seconds it takes the Elevator to close its doors */\n public double getTimeForClose();\n /** Returns the Elavator's current state: {UP, DOWN, LEVEL, ERROR} the state \"LEVEL\" mark that the elevator has reached the floor -\n * and is now ready to load / unload and get new orders. */\n public int getState(); // UP, DOWN, LEVEL, ERROR\n /** Returns the Elevator's current position (floor) as an Integer. */\n public int getPos();\n /** Moves the elevator form the current position to the destination floor. */\n public boolean goTo(int floor);\n /** Allows the elevator to stop in an intermidiate floor between src and dest, assumeing the elevator has not yer pass the desired floor in which it needs to stop. */\n public boolean stop(int floor);\n /** Returns the speed (in floor per second), e.g. if the Elevator speed is 0.4 - it takes it 2.5 seconds to pass a single floor. */\n public double getSpeed();\n /** Return the time in seconds that it takes the elevator to start moving in full speed (assumed to be a fixed value). */\n public double getStartTime();\n /** Return the time in seconds that it takes the elevator to stop moving in full speed (assumed to be a fixed value).*/\n public double getStopTime();\n /**\n * @return the id of this elevator (simple index as in the building).\n * Note: this index should be the same as in the elevator allocation algorithm.\n */\n public int getID();\n}", "public void updateElevatorStatus(Integer elevatorID, int currentFloor, int destinationFloor) {\n ElevatorController controller = elevatorControllers.get(elevatorID);\n if (controller == null) {\n System.err.println(\"Failed to update status of elevator with ID: \" + elevatorID.toString());\n return;\n }\n controller.setElevatorCurrentFloor(currentFloor);\n Request request = RequestFactory.createRestartRequest(elevatorID, destinationFloor);\n try {\n scheduler.enqueueInternalRequest(request, controller);\n } catch (ElevatorsSchedulerException e) {\n //unlikely to happen as created request is validated with use of factory design pattern\n System.err.println(e.getMessage());\n }\n }", "@Override\n public void addRequest(Address beforeNewPickup, Address newPickup, Address beforeNewDelivery, Address newDelivery) throws Exception {\n if(!intersectionList.contains(beforeNewPickup) || !intersectionList.contains(newPickup)\n || !intersectionList.contains(beforeNewDelivery) || !intersectionList.contains(newDelivery)){\n this.setChanged();\n this.notifyObservers(\"Address doesn't exist in the map.\");\n throw new Exception();\n }else{\n Request newRequest = new Request(newPickup, newDelivery);\n Path oldPath1 = tour.findPathOrigin(beforeNewPickup);\n Path oldPath2 = tour.findPathOrigin(beforeNewDelivery);\n Path newPath1;\n Path newPath2;\n Path newPath3;\n Path newPath4;\n try {\n newPath1 = findShortestPath(beforeNewPickup, newPickup);\n newPath2 = findShortestPath(newPickup, oldPath1.getArrival());\n }catch (Exception e){\n this.setChanged();\n this.notifyObservers(newPickup);\n throw new Exception(\"newPickup unreachable\");\n }\n try {\n newPath3 = findShortestPath(beforeNewDelivery, newDelivery);\n newPath4 = findShortestPath(newDelivery, oldPath2.getArrival());\n }catch (Exception e){\n this.setChanged();\n this.notifyObservers(newDelivery);\n throw new Exception(\"newDelivery unreachable\");\n }\n tour.replaceOldPath(oldPath1, newPath1, newPath2);\n tour.replaceOldPath(oldPath2, newPath3, newPath4);\n this.planningRequest.addRequest(newRequest);\n this.setChanged();\n this.notifyObservers();\n }\n }", "public Elevator() {\n currentFloor = 1;\n elevatorState = IDLE;\n request = null;\n }", "public void update(IFloorModel floor, IElevatorModel elevator) {\n\t\tif(floor == null || elevator == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() NullPointerException\");\n\t\t}\n\t\t\n\t\t//if there are no elevators, do nothing on update. Nothing should or can be updated\n\t\tif(listview_elevators.getItems().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//get current selected elevator\n\t\t//getSelectedIndex() returned -1 if no line is selected\n\t\tif(selectedElevator < 0) {\n\t\t\tthrow new IllegalStateException(\"MainGuiController.update() listview_elevators no line selected!\");\n\t\t}\n\t\t//check if the selected elevator is in manual or automatic mode -> set checkbox and button to right state.\n\t\tif(autoModeAlgo.checkIfInAutoMode(selectedElevator)) {\n\t\t\tcheckbox_manual_mode.setSelected(false);\n\t\t\tbutton_send_to_floor.setDisable(true);\n\t\t}\n\t\telse {\n\t\t\tcheckbox_manual_mode.setSelected(true);\n\t\t\tbutton_send_to_floor.setDisable(false);\n\t\t}\n\t\t\n\t\t//update gui with new values from the given elevator\n\t\t//elevator data\n\t\tPlatform.runLater(() -> {\n\t\t\tInteger targetReranged = elevator.getTarget() + 1;\n\t\t\tlabel_target_text.setText(targetReranged.toString());\n\t\t\tInteger positionReranged = elevator.getPosition() + 1;\n\t\t\tlabel_position_text.setText(positionReranged.toString());\n\t\t\t\n\t\t\tString direction = elevator.getDirection().toString();\n\t\t\tdirection = direction.substring(direction.lastIndexOf('_') + 1);\n\t\t\tdirection = direction.substring(0,1).toUpperCase() + direction.substring(1).toLowerCase();\n\t\t\tlabel_direction_text.setText(direction);\n\t\t\t\n\t\t\tlabel_payload_text.setText(elevator.getPayload().toString());\n\t\t\tInteger speedAbs = Math.abs(elevator.getSpeed());\n\t\t\tlabel_speed_text.setText(speedAbs.toString());\n\t\t\t\n\t\t\tString doorsState = elevator.getDoors().toString();\n\t\t\tdoorsState = doorsState.substring(doorsState.lastIndexOf('_') + 1); \t//get the last part of the enum, this contains the state.\n\t\t\tdoorsState = doorsState.substring(0,1).toUpperCase() + doorsState.substring(1).toLowerCase();\t//all to lower, except the first character\n\t\t\tlabel_doors_text.setText(doorsState);\n\t\t});\n\t\t\n\t\tString floorListViewPrefix = \"Floor \";\n\t\t//stops\n\t\tList<Integer> stops = elevator.getStopsList();\n\t\tif (stops == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() stops\");\n\t\t}\n\t\tObservableList<String> stopsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : stops) {\n\t\t\tstopsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_stops.getItems().setAll(stopsOl));\n\t\t\n\t\t//not serviced floors\n\t\tList<Integer> ignoredFloors = elevator.getIgnoredFloorsList();\n\t\tif (ignoredFloors == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.register() ignoredFloors\");\n\t\t}\n\t\tObservableList<String> ignoredFloorsOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : ignoredFloors) {\n\t\t\tignoredFloorsOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_no_service.getItems().setAll(ignoredFloorsOl));\n\t\t\n\t\t//calls\n\t\tList<Integer> callsUp = floor.getUpButtonsList();\n\t\tif (callsUp == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsUp\");\n\t\t}\n\t\tObservableList<String> callsUpOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsUp) {\n\t\t\tcallsUpOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_up.getItems().setAll(callsUpOl));\n\t\t\n\t\tList<Integer> callsDown = floor.getDownButtonsList();\n\t\tif (callsDown == null) {\n\t\t\tthrow new NullPointerException(\"MainGuiController.update() callsDown\");\n\t\t}\n\t\tObservableList<String> callsDownOl = FXCollections.observableArrayList();\n\t\tfor (Integer e : callsDown) {\n\t\t\tcallsDownOl.add(floorListViewPrefix + (e+1));\n\t\t}\n\t\tPlatform.runLater(() -> listview_calls_down.getItems().setAll(callsDownOl));\n\t}", "void schedule(List<Queue<Integer>> requests, List<Elevator> elevators, int floors);", "public void tick () {\r\n\r\n if(currentRequests.isEmpty()) return;\r\n\r\n if(!this.isPickUp() && this.getCurrentFloor() < this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() > this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() == this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.setPickUp(true);\r\n System.out.println(this.getId() + \" has arrived at pickup location\");\r\n return;\r\n }\r\n\r\n if (this.isPickUp() && currentRequests.peek().getDestinationFloor() == this.currentFloor) {\r\n System.out.println(this.getId() + \" has reached its destination \" + this.getCurrentRequests().peek().getDestinationFloor());\r\n this.currentRequests.poll();\r\n this.pickUp = false;\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"UP\") {\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up to Floor \" + this.currentFloor);\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"DOWN\"){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down to Floor \" + this.currentFloor);\r\n }\r\n\r\n }", "public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}", "public void arrived() throws InterruptedException {\n\t\t\n\t\tsynchronized (this) {\n\t\t\tif (state == TODEFAULT) {\n\t\t\t\tthis.setState(IDLING);\n\t\t\t} else {\n\t\t\t\tbuilding.getFloor().ding(currFloor, elevatorNum);\n\t\t\t\t\n\t\t\t\tif (destList.isEmpty()) {\n\t\t\t\t\ttravelDir = null;\n\t\t\t\t\trequestDir = null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.notifyAll();\n\t\t\t\tSystem.out.println(dateFormat.format(new Date()) + \"\\tElevator \" + elevatorNum + \" doors opening...\");\n\t\t\t\tThread.sleep(this.getScaled(this.toMilli(doorOpenTime)));\n\t\t\t\tSystem.out.println(dateFormat.format(new Date()) + \"\\tElevator \" + elevatorNum + \" doors closing...\");\n\t\t\t}\n\t\t\tdestList.remove();\n\t\t}\n\t}", "public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }", "public int chooseElevator() {\n\t\tPair<Integer,Direction> eleLoc;\n\t\tHashMap<Integer, Pair<Integer, Direction>> mapClone = map.getElevatorsData(); //get map of up to date elevator locations\n\t\tint distance;\n\t\tint minDist=9999;\n\t\tint choice = -1;\n\t\t//iterate over all elevators in the system\n\t\tfor(int i = 1;i<=Constants.elevator;i++) {\n\t\t\teleLoc = mapClone.get(i);//get elevators current system\n\t\t\tdistance =calculateDistance(eleLoc);\n\t\t\t//System.out.println(\"Elevator \" + i + \" is \" + distance + \" away from next job\");\n\t\t\t//if distance is optimal\n\t\t\tif(distance >=0 && distance <minDist) {\n\t\t\t\tchoice = i;\n\t\t\t\tminDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn choice;\n\t}", "public void goToFloor(int floorId, ElevatorRequestType type) {\n\t\tisBusy = true;\n\t\tif(currentFloorId == floorId) {\n\t\t\tSystem.out.print(\"\\nElevator \" + id + \" is already at floor \" + floorId + \"\\n\");\n\t\t\tif (type == ElevatorRequestType.PICKUP) {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.HANDLING_REQUEST);\n\t\t\t} else {\n\t\t\t\tsetCurrentDirection(ElevatorStatus.STATIONARY);\n\t\t\t}\n\t\t\tisBusy = false;\n\t\t\tnotifyObservers();\n\t\t\treturn;\n\t\t}\n\t\tElevatorTask task = new ElevatorTask(this, floorId, type);\n\t\ttask.start();\n\t}", "public void updateState() {\n //check if arrived\n if (destinations.contains(currentFloor)) {\n destinations.removeIf(n -> (n == currentFloor));\n System.out.println(\"\\t\\tElevator #\" + id + \": Arrived at floor #\" + currentFloor + \".\");\n }\n\n // take stock of assigned stops and change direction if required\n if (destinations.isEmpty()) {\n currentDirection = Direction.STOP;\n } else if ((currentDirection == Direction.UP && Collections.max(destinations) < currentFloor)) {\n currentDirection = Direction.DOWN;\n Collections.sort(destinations);\n Collections.reverse(destinations);\n } else if (currentDirection == Direction.DOWN && Collections.min(destinations) > currentFloor){\n currentDirection = Direction.UP;\n Collections.sort(destinations);\n }\n\n //Decide which way to go if the elevator is stopped and has gained a destination\n if (currentDirection == Direction.STOP && destinations.size() != 0) {\n int destinationFloor = Integer.MAX_VALUE;\n for (final Integer d : destinations) {\n if (Math.abs(currentFloor - d) < Math.abs(currentFloor - destinationFloor)) {\n destinationFloor = d;\n }\n }\n\n currentDirection = (destinationFloor > currentFloor ? Direction.UP : Direction.DOWN);\n }\n\n // update current floor\n if (currentDirection == Direction.DOWN) {\n currentFloor--;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved down to floor #\" + currentFloor + \".\");\n } else if (currentDirection == Direction.UP) {\n currentFloor++;\n System.out.println(\"\\t\\tElevator #\" + id + \": Moved up to floor #\" + currentFloor + \".\");\n }\n }", "public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }", "@Override\n\tpublic void dispatch(Request request) {\n\t\tif(request instanceof ElevatorRequest){\n\t\t\tfor(RequestListener listener: listeners){\n\t\t\t\tlistener.handleRequest((ElevatorRequest)request);\n\t\t\t}\n\t\t}\n\t}", "public void processElevatorCall(Passenger p) {\n Elevator selectedElevator = getCheapestElevator(p.getElevatorCall());\n\n //Do nothing and add to pending calls queue if no elevators are available.\n if(selectedElevator == null) {\n pendingPassengers.add(p);\n return;\n }\n\n selectedElevator.ingestElevatorCall(p.getElevatorCall());\n p.assignElevator(selectedElevator);\n }", "public void requestElevatorToDestination(int floorId, UserPriority priority, Elevator elevator) {\n\t\televatorManager.requestDestination(new ElevatorManagerDestinationRequest(floorId, priority, elevator));\n\t}", "public static void sendElectionRequest()\n {\n System.out.println(\"INFO : Election initiated\");\n int numberOfFailedRequests = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if( key > ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n try {\n MessageTransfer.sendServer(\n ServerMessage.getElection( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent election request to s\"+destServer.getServerID());\n }\n catch(Exception e){\n System.out.println(\"WARN : Server s\"+destServer.getServerID() +\n \" has failed, cannot send election request\");\n numberOfFailedRequests++;\n }\n }\n\n }\n if (numberOfFailedRequests == ServerState.getInstance().getNumberOfServersWithHigherIds()) {\n if(!electionInProgress){\n //startTime=System.currentTimeMillis();\n electionInProgress = true;\n receivedOk = false;\n Runnable timer = new BullyAlgorithm(\"Timer\");\n new Thread(timer).start();\n }\n }\n }", "public void deleteRequest(Address pickupOrDelivery){\n Request requestToRemove = planningRequest.getRequestByAddress(pickupOrDelivery);\n ArrayList<Address> AddressOfRequest= new ArrayList<>();\n AddressOfRequest.add(requestToRemove.getPickupAddress());\n AddressOfRequest.add(requestToRemove.getDeliveryAddress());\n this.planningRequest.removeRequest(requestToRemove);\n if(!this.planningRequest.isEmpty()) {\n for (Address a : AddressOfRequest) {\n Path pathToRemove1 = this.tour.findPathDestination(a);\n Path pathToRemove2 = this.tour.findPathOrigin(a);\n try {\n Path newPath = this.findShortestPath(pathToRemove1.getDeparture(), pathToRemove2.getArrival());\n this.tour.replaceOldPaths(pathToRemove1, pathToRemove2, newPath);\n }catch (Exception e){\n //Do nothing here, this exception will never occur as find shortest path will only throw an\n //Exception if the the destination point is unreachable from the departure point\n //Which can never be true because if we are here it means that such a path exists\n //The proof is left as an exercise to the reader :)\n }\n }\n this.setChanged();\n notifyObservers();\n }else{\n this.tour.reset();\n this.setChanged();\n notifyObservers(\"We have erased all requests in the map\");\n }\n\n }", "public void transport(int startFloor, int endFloor, boolean up){\r\n\t\t\r\n\t\tisIntransit = true;\r\n\t\tdirectionUp = up;\r\n\t\topenDoor(startFloor);\r\n\t\tcloseDoor(startFloor);\r\n\t\t\r\n\t\t//Traverse floor and report.\r\n\t\tint trip = endFloor-startFloor; \r\n\t\tint finalCount = trip*1000;\r\n\t\tint j = 0 ;\r\n\t\televatorAt = startFloor ;\r\n\t\tfor(int i=0; i<finalCount; i++){\t\t\t\r\n\t\t\tj++;\r\n\t\t\tif(j==1000){\r\n\t\t\t\tif(up){\r\n\t\t\t\t\televatorAt++;\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\televatorAt--;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Elevator no. \" + id + \" at \"+ elevatorAt);\r\n\t\t\t\tj=0;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\tfloorsTraversed += endFloor - startFloor; \r\n\t\ttrips++;\r\n\t\tif(trips==100){\r\n\t\t\tserviccerequired = true; \r\n\t\t}\r\n\t\t\r\n\t\topenDoor(endFloor);\r\n\t\tcloseDoor(endFloor);\r\n\t\t\r\n\t\tisIntransit = false;\r\n\t}", "public Elevator(ElevatorSpecs spec, int[] floors, int zonedFloors[], float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n this.zonedFloors = zonedFloors;\n }", "@Override\r\n\tpublic Answer handle(Request request) throws Exception {\r\n\t\tGPS startPoint = request.getStartPos();\r\n\t\tGPS endPoint = request.getEndPos();\r\n\t\tCurrentDistribution curDis = CurrentDistribution.getInstance();\r\n\t\tArrayList<Station> givenTypeAvaStations = null;// whether this init is a correct choice in case that ArrayList can not be covered directly \r\n\t\tdouble ridingSpeed = 0.00001;//if not given proper bicycle type, time cost would be extremely large\r\n\t\tif(request.getBikeType().equalsIgnoreCase(\"E\")) {\r\n\t\t\tridingSpeed = Server.eleRidingSpeed;\r\n\t\t\tgivenTypeAvaStations = curDis.geteAvaStationList();\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getBikeType().equalsIgnoreCase(\"M\")) {\r\n\t\t\tridingSpeed = Server.mecRidingSpeed;\r\n\t\t\tgivenTypeAvaStations = curDis.getmAvaStationList();\r\n\t\t}\r\n\r\n\t\tif(givenTypeAvaStations.size() == 0) {\r\n\t\t\tServer.error(\"no available station containing given type of bicycle\");\r\n\t\t}\r\n\r\n\t\tStation minStartStation = givenTypeAvaStations.get(0);\r\n\t\tStation minEndStation = curDis.getReturnableStationList().get(0);\r\n\t\t\r\n\t\tdouble minEndDis = Math.sqrt((minEndStation.getPos().getX() - endPoint.getX()) * (minEndStation.getPos().getX() - endPoint.getX()) + \r\n\t\t\t\t(minEndStation.getPos().getY() - endPoint.getY())*(minEndStation.getPos().getY() - endPoint.getY()));\r\n\t\t\r\n\t\tfor(Station s: curDis.getReturnableStationList()) {\r\n\t\t\tdouble endDis = Math.sqrt((s.getPos().getX() - endPoint.getX())*(s.getPos().getX() - endPoint.getX()) + \r\n\t\t\t\t\t(s.getPos().getY() - endPoint.getY()) * (s.getPos().getY() - endPoint.getY()));\r\n\t\t\tif( endDis < minEndDis) {\r\n\t\t\t\tminEndStation = s;\r\n\t\t\t\tminEndDis = endDis; \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdouble minWalkRideTime = Math.sqrt((minStartStation.getPos().getX() - startPoint.getX()) * (minStartStation.getPos().getX() - startPoint.getX())+\r\n\t\t\t\t(minStartStation.getPos().getY() - startPoint.getY()) * (minStartStation.getPos().getY() - startPoint.getY()))/\r\n\t\t\t\tServer.walkingSpeed +\r\n\t\t\t\t(Math.abs(minStartStation.getPos().getX() - endPoint.getX())+ \r\n\t\t\t\t\t\tMath.abs(minStartStation.getPos().getY() - endPoint.getY()))/\r\n\t\t\t\tridingSpeed;\r\n\t\t\r\n\t\tfor(Station s: givenTypeAvaStations) {\r\n\t\t\tdouble walkRideTime = Math.sqrt((s.getPos().getX() - startPoint.getX()) * (s.getPos().getX() - startPoint.getX())+\r\n\t\t\t\t\t(s.getPos().getY() - startPoint.getY()) * (s.getPos().getY() - startPoint.getY()))/\r\n\t\t\t\t\tServer.walkingSpeed +\r\n\t\t\t\t\t(Math.abs(s.getPos().getX() - endPoint.getX())+ \r\n\t\t\t\t\t\t\tMath.abs(s.getPos().getY() - endPoint.getY()))/\r\n\t\t\t\t\tridingSpeed;\r\n\t\t\tif( walkRideTime < minWalkRideTime) {\r\n\t\t\t\tminStartStation = s;\r\n\t\t\t\tminWalkRideTime = walkRideTime; \r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\r\n\t\tdouble minStartDis = Math.sqrt((minStartStation.getPos().getX() - startPoint.getX())*(minStartStation.getPos().getX() - startPoint.getX())\r\n\t\t\t\t+ (minStartStation.getPos().getY() - startPoint.getY())*(minStartStation.getPos().getY() - startPoint.getY()));\r\n\t\tdouble minRideDis = (Math.abs(minStartStation.getPos().getX() - minEndStation.getPos().getX())+ \r\n\t\t\t\tMath.abs(minStartStation.getPos().getY() - minEndStation.getPos().getY()));\r\n\t\tdouble minTime = (minEndDis + minStartDis)/ Server.walkingSpeed + minRideDis/ridingSpeed;\r\n\t\tdouble minDis = minStartDis + minEndDis + minRideDis;\r\n\t\tif(minTime > 500) {\r\n\t\t\tthrow new Exception(\"BikeType input illegal.\");\r\n\t\t}\r\n\t\t\r\n\t\tAnswer ans = new Answer(minStartStation, minEndStation, minTime, minDis);\r\n\t\treturn ans;\r\n\t}", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "@Override\n\tpublic void addPeopleToElevator(Elevator e)\n\t\t\tthrows InvalidParameterException {\n\t\tsynchronized (this) {\n\t\t\tArrayList<Person> peopleToRemove = new ArrayList<Person>();\n\n\t\t\tfor (int i = 0; i < people.size(); i++) {\n\n\t\t\t\tif (e.getStatus() == Elevator.Status.MOVING_UP) {\n\n\t\t\t\t\tif (people.get(i).getDestination() > this.story) {\n\t\t\t\t\t\tif (e.addPerson(people.get(i))) {\n\t\t\t\t\t\t\tpeopleToRemove.add(people.get(i));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak; // Not enough room\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else if (e.getStatus() == Elevator.Status.MOVING_DOWN) {\n\n\t\t\t\t\tif (people.get(i).getDestination() < this.story) {\n\t\t\t\t\t\tif (e.addPerson(people.get(i))) {\n\t\t\t\t\t\t\tpeopleToRemove.add(people.get(i));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak; // Not enough room\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\n\t\t\t\t\tif (people.get(i).getDestination() != this.story) {\n\t\t\t\t\t\tif (e.addPerson(people.get(i))) {\n\t\t\t\t\t\t\tpeopleToRemove.add(people.get(i));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak; // Not enough room\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < peopleToRemove.size(); i++) {\n\t\t\t\tpeopleToRemove.get(i).setAddedToElevatorTime();\n\t\t\t}\n\n\t\t\tpeople.removeAll(peopleToRemove);\n\t\t}\n\t}", "public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}", "public ElevatorStatusObject getStatus() {\n //Fetch destination\n \tif (queue.isEmpty()) {\n \t\treturn new ElevatorStatusObject(currentFloor, 0, -1);\n \t}\n \t\n //Fetch next call\n ElevatorQueueObject q = queue.getFirst();\n int index = 1;\n while (currentPassengers.size() == specs.getCarryCapacity() \n && (q.getActionType() == ElevatorAction.PICKUP ||\n !currentPassengers.contains(q.getPassenger()))) {\n q = queue.get(index);\n index += 1;\n }\n \n //Fetch destination\n int dest = 0;\n if (q.getActionType() == ElevatorAction.PICKUP) {\n dest = q.getPassenger().getOrigin();\n } else {\n dest = q.getPassenger().getDestination();\n }\n \n //Calculate direction\n int dir = 0;\n if (dest > currentFloor) {\n dir = 1;\n } else if (dest < currentFloor) {\n dir = -1;\n }\n \n return new ElevatorStatusObject(currentFloor, dir, dest);\n }", "public void unloadPassengers(Elevator ev1) throws ElevatorFullException\n { \n // Unload passengers from elevator\n\t//---------------------------------- \n int unloading= ev1.passengersForFloor(floorNum);\n ev1.unloadPassenger(unloading);\n System.out.println(\"unloaded \" + unloading + \" passenger(s).\");\n\n\n\t// If the passengers are unloading onto floor #1, we assume that\n\t// they'll leave the building once they exit the elevator.\n\t//--------------------------------------------------------------- \n\tif(floorNum != 1)\n\t{ occupants+= unloading;\n\t}\n\n\n\t// With the exception of passengers that were just unloaded, load\n\t// current floor occupants onto the elevator. According to the spec,\n\t// every occupant on a floor will be boarded with a destination of\n\t// baseFloor.\n\t//---------------------------------------------------------------------- \n\tint boarding= occupants - unloading;\n\tif(boarding > 0)\n\t{ for(int i=1; i<=boarding; i++)\n\t { try\n\t { ev1.boardPassenger(ev1.baseFloor);\n\t occupants--;\n }\n\t\tcatch (ElevatorFullException e)\n\t\t{ System.out.print(\"ElevatorFullException Caught:\");\n\t\t System.out.print(\" leaving \" + occupants + \" occupants on the floor; \");\n\t\t System.out.print(\" will return later.\\n\");\n\t\t i=boarding+1; //break out of boarding loop. \n\t\t}\n\t }\n }\n\n\n\t// For this simulation, we assume that all unloaded passengers will\n\t// be ready to leave the building on the next elevator run. Thus we\n\t// will signal the elevator to return for them.\n\t//--------------------------------------------------------------------- \n\tif(occupants >= 1)\n\t{ ev1.registerRequest(floorNum);\n\t}\n\n\n // show status of floor before proceeding.\n System.out.println(this);\n System.out.println(ev1 + \"\\n\");\n }", "public void makeRequest(int floor) {\n }", "public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }", "Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }", "public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }", "public static void validateGetLocationDetailsRequest(final InvLocationDetailRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t\t\r\n\t}", "public void boardPassenger(int floor){\n _passengersOnboard +=1;\n switch(floor){\n case 1: Floor.FIRST.makeDestinationRequest();\n Floor.FIRST.addQueuedPassenger();\n break;\n case 2: Floor.SECOND.makeDestinationRequest();\n Floor.SECOND.addQueuedPassenger();\n break;\n case 3: Floor.THIRD.makeDestinationRequest();\n Floor.THIRD.addQueuedPassenger();\n break;\n case 4: Floor.FOURTH.makeDestinationRequest();\n Floor.FOURTH.addQueuedPassenger();\n break;\n case 5: Floor.FIFTH.makeDestinationRequest();\n Floor.FIFTH.addQueuedPassenger();\n break;\n case 6: Floor.SIXTH.makeDestinationRequest();\n Floor.SIXTH.addQueuedPassenger();\n break;\n case 7: Floor.SEVENTH.makeDestinationRequest();\n Floor.SEVENTH.addQueuedPassenger();\n break;\n }\n }", "public byte[] createBytes(int elevator){\n \t/*\n \t * method sending type 2 packet of format\n \t * 1011 2 EEEE D FFFF CCCC\n \t */\n \tByteBuffer BB = ByteBuffer.allocate(23);\n \tBB.put(header); //header used as checksum\n \tBB.put((byte) 2); //type of packet bit\n \tBB.putInt(elevator);\n\t\tBB.put(request.getDirection().getValue());\n\t\tBB.putInt(request.getFloor()); // requester floor\n \tBB.putInt(request.getCarButton()); //destination floor\n \tBB.put(request.getError().getValue());\n \tBB.putInt(request.getErrorFloor());\n \tSystem.out.print(\"Time: \" + System.currentTimeMillis() + \": Scheduler Thread 2: \");\n \tif(Constants.debug) {\n \t\tSystem.out.println(\"Sending job to Elevator Manager:\");\n \t\tSystem.out.println(\"Containing Data:\");\n \t\tSystem.out.println(\"Target Elevator: \" + elevator);\n \t\tSystem.out.println(\"Requestee FileLoader: \" + request.getFloor());\n \t\tSystem.out.println(\"Destination FileLoader: \" + request.getCarButton());\n \t\tSystem.out.print(\"With Error type: \" + request.getError());\n \t\tSystem.out.println(\" on floor \" + request.getErrorFloor());\n \t}else {\n \t\tSystem.out.println(\"Sending job to Elevator \" + elevator + \" go from \" \n \t\t\t\t\t+ request.getFloor() + \" to \" + + request.getCarButton()+\"\\n\");\n \t}\n \t\n \t\t\n \t return BB.array();\n }", "@Override\n public void moveElevator(final int toFloor, final int elevatorId) {\n log.debug(\"moving {} to {}\", elevatorId, toFloor);\n\n Elevator elevator = elevatorRepository.getElevator(elevatorId);\n elevator.setAddressedFloor(toFloor);\n elevator.setBusy(true);\n elevator.setDirection(calculateDirection(toFloor, elevator.getCurrentFloor()));\n\n elevatorRepository.updateElevator(elevator);\n }", "public int getElevatorCount() { return this.elevators == null ? 0 : this.elevators.length; }", "public Request(int floorIn) throws InvalidParamException {\n if (floorIn < 1 || floorIn > Building.getInstance().getNumFloors()) {\n throw new InvalidParamException(\"Invalid floorIn in Request c'tor\");\n }\n floor = floorIn;\n direction = null;\n }", "public void FetchOutfit(double clo_value_request) {\n mCloRequest = clo_value_request;\n mHasCloRequest = true;\n if (mTasksLeft==0){\n onAllTasksCompleted();\n }\n }", "public ElevatorTask(Elevator elevator, int floorId, ElevatorRequestType type) {\n\t\tthis.elevator = elevator;\n\t\tthis.floorId = floorId;\n\t\tthis.type = type;\n\t}", "public int getNextInstruction() {\n\t\t\n\t\tint nextFloor = -1;\n\t\tswitch (elevator.getCurrentDirection()) {\n\t\t\n\t\t//get first element of upQueue that is ABOVE the elevator's current floor\n\t\tcase UP:\n\t\t\tfor (int i = 0; i < upQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) >= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in upQueue is UNDER the elevator's current floor\n\t\t\tif (nextFloor < 0 && downQueue.size() > 0) {\n\t\t\t\tnextFloor = downQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t//get first element of downQueue that is UNDER the elevator's current floor\n\t\tcase DOWN:\n\t\t\tfor (int i = 0; i < downQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) <= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in downQueue is ABOVE the elevator's current floor\n\t\t\tif (nextFloor < 0 && upQueue.size() > 0) {\n\t\t\t\tnextFloor = upQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn nextFloor;\n\t}", "public void boardPassenger(int dstFloor) throws ElevatorFullException {\n \n if( floorVerfication(dstFloor)){\n //if we were to add one, would we be at or less @ capacity \n if( currentCapacity() <= ( Elevator.CAPACITY - 1 ) )\n destinedPassengers[dstFloor]++;\n else\n throw new ElevatorFullException();\n \n } else {\n System.out.println(\"WRONG FLOOR N00B\");\n }\n \n }", "public interface ElevatorSelectionStrategy {\n\tElevator getElevatorFor(Passenger passenger, Floor departureFloor, Environment env);\n}", "public void addPersonToElevator(int floorId, IElevator elevator) throws InvalidArgumentException {\n \tIFloor floor = getFloor(floorId);\n \tArrayList<IPerson> personList = floor.getWaitingPersons();\n \tfor(int i=0;i<personList.size();i++) {\n \t\tIPerson p = personList.get(i);\n \t\tif(elevator.addPerson(p)) {\n \t\t\tfloor.personGetIn(p,elevator.getElevatorID());\n \t\t}else {\n \t\t\tbreak;\n \t\t}\n \t}\n }", "@RequestMapping(value = \"getElevatorObject/{principal}\", method = RequestMethod.GET)\n @ResponseBody public Elevator getElevatorObject(@PathVariable String principal, \n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorID,\n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorName) {\n Elevator elevator = new Elevator(Long.valueOf(elevatorID), elevatorName, principal);\n \n logger.info(\"------genarate elevator : \" + elevator.toString() + \"------\");\n return elevator;\n }", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "public static void validateUpdateLocationRequest(final InvLocationRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n\t\t\t\r\n\t\t\tif(request.getLocs() == null || request.getLocs().isEmpty()){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location ID should not be null or empty.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location ID should not be null or empty.\");\r\n\t\t\t}\r\n\t\t\tif(!InventoryUtility.isNullOrEmpty(request.getLocName()) && (request.getInventory()==null || request.getInventory().getInventoryId()==0)){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location Inventory id should not be zero.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location Inventory id should not be zero.\");\r\n\t\t\t }\r\n\t\t\t\t\t\t\r\n\t\t\tif(InventoryUtility.isNullOrEmpty(request.getLocName()) && request.getLocComments()==null){\r\n\t\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\t\". Location Name or Comments should not be null.\"));\r\n\t\t\t\tthrow new IllegalArgumentException(\"Location Name or Comments should not be null.\");\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\t \r\n\t\t\t\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}", "private void endRide () {\n reqBoolean = false;\n geoQuery.removeAllListeners();\n walkerLocationRef.removeEventListener(walkerLocationListener);\n walkHasEndedRef.removeEventListener(walkHasEndedRefListener);\n\n if (walkerFoundID != null) {\n DatabaseReference walkerRef = FirebaseDatabase.getInstance().getReference().child(\"users\").child(\"walkers\").child(walkerFoundID).child(\"ownerRequest\");\n walkerRef.removeValue();\n walkerFoundID = null;\n }\n walkerFound = false;\n radius = 1;\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"ownerRequest\");\n GeoFire geoFire = new GeoFire(ref);\n geoFire.removeLocation(userId);\n\n //if marker doesn't exist the app may crash\n if (pickupLocationMarker != null) {\n pickupLocationMarker.remove();\n }\n reqWalkerButton.setText(\"Request walker\");\n\n walkerInfo.setVisibility(View.GONE);\n walkerNameField.setText(\"\");\n walkerPhoneField.setText(\"\");\n walkerProfileImage.setImageResource(R.mipmap.ic_person_black_24dp);\n statusButtonText.setText(\"Type the name of your local park below\");\n\n finish();\n startActivity(new Intent(this, HomeActivity.class));\n }", "public void requestElevatorPickUp(int floorId, UserPriority priority) {\n\t\televatorManager.requestPickup(new ElevatorManagerRequest(floorId, priority));\n\t}", "public void fireEmergencyRequest() {\n\t\televatorManager.handleEmergency();\n\t}", "@Override\n public void leave() {\n LeaveReq leaveReq = new LeaveReq(node.getCred());\n String msg = leaveReq.getMessageAsString(Constant.Action.LEAVE);\n for (Cred neighbourCred : node.getRoutingTable()) {\n String uri = Constant.HTTP + neighbourCred.getNodeIp() + \":\" + neighbourCred.getNodePort() + Constant.EndPoint.LEAVE;\n try {\n String result = restTemplate.postForObject(uri, new Gson().toJson(leaveReq), String.class);\n if (result.equals(\"200\")) {\n logMe(\"Neighbor left successfully at \" + getCurrentTime());\n }\n } catch (ResourceAccessException exception) {\n //connection refused to the api end point\n } catch (HttpServerErrorException exception){\n //\n }\n }\n }", "protected void execute() {\n \t// TODO check the limit switches FIRST!!!\n\n double encoderPos = Math.abs(Robot.liftSubsystem.readEncoderInInches());\n\t if(encoderPos > requestedEncoderPos || Robot.liftSubsystem.isTopLimitDepressed() == true) {\n\t \tweAreDoneSenor = true;\n\t \tSystem.out.println(\"We're done\");\n\t } else if((encoderPos <= (speedUpPoint) && encoderPos < slowDownPoint) || Robot.liftSubsystem.isBottomLimitDepressed()){\n \t\tRobot.liftSubsystem.autoMoveElevatorUp(\n \t\t\t\tRobot.liftSubsystem.calculatePowerHyperbolic(desiredStartingPower, encoderPos, startingEncoderPos, speedUpPoint, maxPower));\n\n \t\tSystem.out.println(Robot.liftSubsystem.calculatePowerHyperbolic(desiredStartingPower, encoderPos, startingEncoderPos, speedUpPoint, maxPower));\n\n \t} else if(encoderPos > speedUpPoint && encoderPos < slowDownPoint){\n \t\tRobot.liftSubsystem.setElevatorVelocity(maxPower);\n \t\tSystem.out.println(\"We're set to maximum overdrive.\");\n \t} else if(encoderPos >= slowDownPoint) {\n \t\tRobot.liftSubsystem.autoMoveElevatorUp(\n \t\t\t\tRobot.liftSubsystem.calculatePowerHyperbolic(desiredEndingPower, encoderPos, requestedEncoderPos, slowDownPoint, maxPower));\n \t\t// System.out.println(Robot.liftSubsystem.calculatePowerHyperbolic(desiredEndingPower, encoderPos, requestedEncoderPos, speedUpPoint, maxPower));\n\n \t}\n \t\n }", "public Message handleRequest(Message request){\n\n Message error = new Message(Message.GENERIC_ERROR);\n\n switch (request.getId()){\n\n case Message.LOGIN:\n return handleLogin(request);\n case Message.CREATE_DOCUMENT:\n return handleCreate(request);\n case Message.REMOVE_INVITE:\n controlServer.removeInvite(request.getUserName(),request.getDocumentName());\n return request;\n case Message.PORTIONS:\n System.out.println(\"HANDLER pre-handle: \" +request.getDocumentName());\n request.setSectionNumbers(controlServer.getPortions(request.getDocumentName()));\n return request;\n case Message.ADMINS:\n Message response = new Message(Message.ADMINS);\n response.setStringVector(new Vector<>(controlServer.getAdmins(request.getDocumentName())));\n return response;\n case Message.USERS:\n request.setStringVector(controlServer.getUserNames());\n return request;\n case Message.INVITATION:\n controlServer.addAdmin(request.getDocumentName(),request.getReceiver());\n controlServer.addInvite(request.getReceiver(),request.getDocumentName());\n request.setId(Message.INVITE_SENT);\n return request;\n case Message.GET_INVITES:\n String owner = request.getUserName();\n request.setStringVector(controlServer.getUserData(owner).getInvites());\n return request;\n case Message.GET_USERDATA:\n return handleGetUserData(request);\n case Message.LOCK:\n if(!controlServer.lock(request.getDocumentName(),request.getSectionNumbers()))\n request.setId(Message.LOCK_NOK);\n else\n request.setId(Message.LOCK_OK);\n return request;\n case Message.UNLOCK:\n if(controlServer.unlock(request.getDocumentName(),request.getSectionNumbers()))\n request.setId(Message.UNLOCK_OK);\n return request;\n case Message.EDIT:\n String DocumentName = request.getDocumentName();\n int SectionNumbers = request.getSectionNumbers();\n request.setText(controlServer.getSection(DocumentName,SectionNumbers));\n return request;\n case Message.END_EDIT:\n controlServer.editDoc(request.getDocumentName(),request.getSectionNumbers(),request.getText());\n return request;\n case Message.PRINT:\n request.setText(controlServer.getDocumentString(request.getDocumentName()));\n return request;\n case Message.SHOW:\n String text = controlServer.getSection(request.getDocumentName(),request.getSectionNumbers());\n request.setText(text);\n return request;\n default:\n controlServer.showMessage(\"unknown request\");\n break;\n }return error;\n }", "public Elevator() {\n boolean elevatorInvert = false;\n boolean elevatorPhase = false;\n spx = new SpectrumVictorSPX(Constants.ELEVATOR_SPX);\n srx = new LeaderTalonSRX(Constants.ELEVATOR_SRX, spx);\n srx.setNeutralMode(NeutralMode.Brake);\n srx.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);\n srx.setSensorPhase(elevatorPhase);\n srx.setInverted(elevatorInvert);\n\n // Enable Soft Limits\n srx.configForwardSoftLimitEnable(false);\n srx.configForwardSoftLimitThreshold(posUpLimit);\n srx.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n \n srx.configReverseSoftLimitEnable(false);\n srx.configReverseSoftLimitThreshold(posDownLimit);\n srx.configReverseLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_13_Base_PIDF0, 10);\n srx.setStatusFramePeriod(StatusFrameEnhanced.Status_10_MotionMagic, 10);\n\n // Set Ramp Rate and voltage compensation\n srx.configClosedloopRamp(0.25);\n srx.configVoltageCompSaturation(11.5);\n srx.enableVoltageCompensation(true);\n setMotionMagicParams();\n }", "public void registerRequest(){\n\t\tfor (Floor x: F)\n\t\t\tif (x.getPassengersWaiting()>0)\tdestRequest[x.getFloorNumber()] = 'Y';\t//Checks for the waiting passengers on each floor and assigns Y or N\n\t\t\telse destRequest[x.getFloorNumber()] = 'N';\t\t\t\t\t\t\t// based on that.\n\t}", "public int calculateDistance(Pair<Integer,Direction> eleLoc) {\n\t\tint start = request.getFloor();\n\t\tDirection dirReq = request.getDirection();\n\t\tDirection dirEle =(Direction) eleLoc.getV();\n\t\tint eleFloor =(int) eleLoc.getT();\n\t\t/*\n\t\t * Elevator can not handle multi job allotments yet\n\t\t */\n\t\tswitch(dirEle) {//calculate distance based on which way the elevator is moving\n\t\t\tcase UP: //if elevator is moving up or down, make sure it matches the direction of request\n\t\t\t\tif(dirReq==dirEle) {\n\t\t\t\t\treturn ((start-eleFloor)>=0)?(start-eleFloor+10):-1;\n\t\t\t\t}else {//if elevator movement != direction of request, do not chose elevator\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\tcase DOWN:\n\t\t\t\tif(dirReq==dirEle) {\n\t\t\t\t\treturn ((eleFloor-start)>=0)?(eleFloor-start+10):-1;\n\t\t\t\t}else {//if elevator movement != direction of request, do not chose elevator\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\tcase STATIONARY://if elevator is stationary get absolute value of distance\n\t\t\t\treturn 0;\n\t\t\tdefault:\n\t\t\t\treturn -1;\n\t\t}\n\t}", "@Override\n public void releaseElevator(final int elevatorId) {\n log.debug(\"releasing {}\", elevatorId);\n\n Elevator elevator = elevatorRepository.getElevator(elevatorId);\n elevator.setCurrentFloor(elevator.getAddressedFloor());\n elevator.setBusy(false);\n elevator.setDirection(Elevator.Direction.NONE);\n\n elevatorRepository.updateElevator(elevator);\n }", "public int getNumberOfPeopleInElevator(int elevator) {\r\n /*\r\n switch(elevator) {\r\n case 1: return 1;\r\n case 2: return 4;\r\n default: return 0;\r\n }\r\n */\r\n int i = 0;\r\n try {\r\n ElevatorScene.personCountMutex.acquire();\r\n i = numberOfSpacesInElevator;\r\n ElevatorScene.personCountMutex.release();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } \r\n return i;\r\n }", "@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}", "public boolean isElevatorOpen(int elevator) {\r\n\r\n return isButtonPushedAtFloor(getCurrentFloorForElevator(elevator));\r\n }", "@RequestMapping(value = \"getElevatorString/{principal}\", method = RequestMethod.POST)\n @ResponseBody public String getElevatorString(@PathVariable String principal, \n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorID,\n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorName) {\n Elevator elevator = new Elevator(Long.valueOf(elevatorID), elevatorName, principal);\n logger.info(\"------genarate elevator : \" + elevator.toString() + \"------\");\n return elevator.toString();\n }", "private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }", "protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }", "public Passenger getNearestPassenger(Elevator lift)\n\t{\t\n\t\t// find all nearby passengers\n\t\tPassenger[] nearby = new Passenger[4];\n\t\t\n\t\t// find nearest passengers above\n\t\tfor (int i = lift.getCurrentFloor(); i < this.getFloorCount(); i++)\n\t\t{\n\t\t\tif (nearby[0] == null && this.upQueues[i].size() > 0)\n\t\t\t\tnearby[0] = (Passenger) this.upQueues[i].peek();\n\t\t\tif (nearby[1] == null && this.downQueues[i].size() > 0)\n\t\t\t\tnearby[1] = (Passenger) this.downQueues[i].peek();\n\t\t}\n\t\t\n\t\t// find nearest passengers below\n\t\tfor (int i = lift.getCurrentFloor(); i >= 0; i--)\n\t\t{\n\t\t\tif (nearby[2] == null && this.upQueues[i].size() > 0)\n\t\t\t\tnearby[2] = (Passenger) this.upQueues[i].peek();\n\t\t\tif (nearby[3] == null && this.downQueues[i].size() > 0)\n\t\t\t\tnearby[3] = (Passenger) this.downQueues[i].peek();\n\t\t}\n\t\t\n\t\t// if we're already moving, we only need to consider one passenger\n\t\tif (lift.getDirection() == Elevator.Direction.UP)\n\t\t\treturn nearby[0];\n\t\t\n\t\tif (lift.getDirection() == Elevator.Direction.DOWN)\n\t\t\treturn nearby[3];\n\t\t\n\t\t// Direction is IDLE...find any nearest passenger.\n\t\tPassenger best = null;\n\t\tint bestDist = 0;\n\t\tfor (int i = 0; i < nearby.length; i++)\n\t\t{\n\t\t\tif (nearby[i] != null && best == null)\n\t\t\t{\n\t\t\t\t// found first nearby passenger\n\t\t\t\tbest = nearby[i];\n\t\t\t\tbestDist = Math.abs(lift.getCurrentFloor() - best.getStartFloor());\n\t\t\t}\n\t\t\telse if (nearby[i] != null)\n\t\t\t{\n\t\t\t\t// found another nearby passenger; are they closer?\n\t\t\t\tint dist = Math.abs(lift.getCurrentFloor() - nearby[i].getStartFloor());\n\t\t\t\tif (dist < bestDist)\n\t\t\t\t{\n\t\t\t\t\tbest = nearby[i];\n\t\t\t\t\tbestDist = dist;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn best;\n\t}", "public static void validateLocationDetailRequest(final InvLocationDetailRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public void update (Elevator e, int name) {\n elevator = e;\n // Update the numerical information\n getInfo ();\n // Create a label for its current condition\n buildStrings (name, currCap, maxCap, currFloor, state);\n slider.setValue (currFloor);\n }", "public void update()\n\t{\n\t\tif(pList.size()==0)\n\t\t\treturn;\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(p.destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tup = true;\n\t\t\t}\n\t\t\telse if(p.destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tdown = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpList.remove(i);\n\t\t\t}\n\t\t}\n\t\tif(up)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.UPPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event,0);\n\t\t}\n\t\tif(down)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.DOWNPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event, 0);\n\t\t}\n\t}", "@RequestMapping(value = \"getElevatorObjectList/{principal}\", method = RequestMethod.GET)\n @ResponseBody public List<Elevator> getElevatorObjectList(@PathVariable String principal, \n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorID,\n \t\t\t\t\t\t\t\t\t\t\t @RequestParam String elevatorName) {\n Elevator elevator1 = new Elevator(Long.valueOf(elevatorID), elevatorName, principal);\n Elevator elevator2 = new Elevator(Long.valueOf(elevatorID) + 1L, elevatorName + \"2\", principal);\n List<Elevator> elevatorList = new ArrayList<Elevator>();\n elevatorList.add(elevator1); \n elevatorList.add(elevator2);\n logger.info(\"------genarate elevatorList : \" + elevatorList.toString() + \"------\");\n return elevatorList;\n }", "@Override\r\n\tpublic void arrivesAtDestination(DatagramSocket sendReceiveSocket) {\r\n\t\tSystem.out.println(\"Elevator \" + elevator.getId() + \": Transition from Moving to Arrived\");\r\n\t\tSystem.out.println(\"Elevator \" + elevator.getId() + \": Arrived at: \" + this.elevator.getElevatorLocation());\r\n\t\tDatagramPacket sendPacket = this.elevator.generatePacket(RPCRequestType.SET_LAMPS);\r\n\t\tboolean received = false;\r\n\t\twhile(!received){\r\n\t\t\ttry {\r\n\t\t sendReceiveSocket.send(sendPacket);\r\n\t\t System.out.println(\"Packet sent to the floor subsystem with a request to update the floors lamps\");\r\n\t\t }\r\n\t\t\tcatch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t System.exit(1);\r\n\t\t }\r\n\t\t\treceived = receivePacket(sendReceiveSocket);\r\n\t\t}\r\n\t\t\r\n\t}", "protected int moveDownFloor() {\n delayElevator();\n return currentFloor.decrementAndGet();\n }", "public grpc.CommunicationServiceOuterClass.Elected election(grpc.CommunicationServiceOuterClass.Election request) {\n return blockingUnaryCall(\n getChannel(), METHOD_ELECTION, getCallOptions(), request);\n }", "public boolean hasElevatorFloorUnlocked(int floor) {\n return ((floor/5) <= this.elevatorLevelsUnlocked);\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "private void initializeElevatorMotor()\n {\n Rectangle base = new Rectangle(shaftWidth*.3, location, shaftWidth*.4, floorHeight*.8);\n Rectangle latch = new Rectangle(shaftWidth*.45, location-5, shaftWidth*.1, floorHeight*.2);\n\n elevator = Shape.union(base, latch);\n elevator.setFill(Color.valueOf(\"#C0C0C0\"));\n\n elevatorTranslate = 0;\n elevatorOffset = 0;\n elevatorSpeed = 20;\n\n motorTimeline = new Timeline(new KeyFrame(Duration.millis(elevatorSpeed), e -> {\n if(location+elevatorOffset <= shaftHeight-60 && location+elevatorOffset >= 10) {\n if(location <= destination && location >= destination-10)\n {\n// System.out.println(location + \" OF \" + (destination) + \" / \" + (destination-10) + \" \" + (10 - destination/floorHeight));\n// System.out.println(\"EARLY STOP\");\n motorTimeline.pause();\n }\n\n elevatorTranslate += elevatorOffset;\n location += elevatorOffset;\n\n elevator.setTranslateY(elevatorTranslate);\n frame.setTranslateY(elevatorTranslate);\n leftDoor.setTranslateY(elevatorTranslate);\n rightDoor.setTranslateY(elevatorTranslate);\n }\n else motorTimeline.pause();\n }));\n motorTimeline.setCycleCount(Animation.INDEFINITE);\n }", "@Override\r\n\tpublic void activity(Direction direction, DatagramSocket sendSocket) {\r\n\t\tSystem.out.println(\"Elevator \" + elevator.getId() + \": Moving \" + direction.toString().toLowerCase() + \" from floor \" + this.elevator.getElevatorLocation());\r\n\t\ttry {\r\n\t\t\tThread.sleep(this.timeBetweenFloors);\r\n\t\t} catch (InterruptedException e) {}\r\n\t\tif(direction == Direction.UP) {\r\n\t\t\tthis.elevator.setElevatorLocation(this.elevator.getElevatorLocation()+1);\r\n\t\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n\t\t\tObjectOutputStream oStream;\r\n\t\t\ttry {\r\n\t\t\t\toStream = new ObjectOutputStream(stream);\r\n\t\t\t\toStream.writeObject(new ElevatorInfo(this.elevator.getId(), this.elevator.getElevatorLocation(),direction.toString(),this.elevator.getErrorCode(),this.elevator.getLamp()));\r\n\t\t\t\tstream.close();\r\n\t\t\t\toStream.close();\r\n\t\t\t}catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tbyte[] message = stream.toByteArray();\r\n\t\t\tDatagramPacket sendPacket = new DatagramPacket(message, message.length,this.elevator.getGuiIp(),this.elevator.getGuiPort());\r\n\t\t\ttry {\r\n\t\t\t\tsendSocket.send(sendPacket);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(direction == Direction.DOWN) {\r\n\t\t\tthis.elevator.setElevatorLocation(this.elevator.getElevatorLocation()-1);\r\n\t\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n\t\t\tObjectOutputStream oStream;\r\n\t\t\ttry {\r\n\t\t\t\toStream = new ObjectOutputStream(stream);\r\n\t\t\t\toStream.writeObject(new ElevatorInfo(this.elevator.getId(), this.elevator.getElevatorLocation(),direction.toString(),this.elevator.getErrorCode(),this.elevator.getLamp()));\r\n\t\t\t\tstream.close();\r\n\t\t\t\toStream.close();\r\n\t\t\t}catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tbyte[] message = stream.toByteArray();\r\n\t\t\tDatagramPacket sendPacket = new DatagramPacket(message, message.length,this.elevator.getGuiIp(),this.elevator.getGuiPort());\r\n\t\t\ttry {\r\n\t\t\t\tsendSocket.send(sendPacket);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void elevatorStop(int floor, Boolean unload){\n \n if(unload){\n destinedPassengers[ floor ] = 0;\n } else {\n \n while(building.floor(floor).passengersWaiting() > 0){\n try {\n boardPassenger(1);\n } catch (ElevatorFullException e) {\n break;\n }\n \n building.floor(floor).waitingPassengers--;\n }\n \n }\n }", "@Override\n public List<Seat> holdBestAvailableSeats(SeatGrid sourceSeatGrid, int requestedSeats) {\n if (sourceSeatGrid.getNoOfRows() <= 0 || sourceSeatGrid.getNoOfColumns() <= 0) {\n throw new SeatingArrangementNotValidException(\n \"Seating arrangement for the venue is not proper, the rows and columns must be greater than 0\");\n }\n if (requestedSeats <= 0 ||\n requestedSeats > ticketHandlerDao.getAvailableSeatsAsList(sourceSeatGrid).size()) {\n throw new CustomerRequestNotValidException(\"Request order to hold seats must be valid, total available seats are: \"\n + ticketHandlerDao.getAvailableSeatsAsList(sourceSeatGrid).size());\n }\n // best available hold seat\n List<Seat> heldSeatList = ticketHandlerDao.getBestAvailableSeats(sourceSeatGrid, requestedSeats);\n\n setSeatGridHeld(sourceSeatGrid);\n setSeatListHeld(heldSeatList);\n setCheckHeldSeats(true);\n threadpool.submit(thread);\n\n return heldSeatList;\n }", "private void receiveRequest(final RequestMessage requestMessage) throws CantReceiveRequestException {\n\n try {\n\n ProtocolState protocolState = ProtocolState.PENDING_ACTION ;\n RequestType type = RequestType .RECEIVED ;\n RequestAction action = RequestAction.REQUEST ;\n\n cryptoAddressesNetworkServiceDao.createAddressExchangeRequest(\n requestMessage.getRequestId(),\n requestMessage.getWalletPublicKey(),\n requestMessage.getCryptoCurrency(),\n requestMessage.getIdentityTypeRequesting(),\n requestMessage.getIdentityTypeResponding(),\n requestMessage.getIdentityPublicKeyRequesting(),\n requestMessage.getIdentityPublicKeyResponding(),\n protocolState,\n type,\n action,\n requestMessage.getCryptoAddressDealer(),\n requestMessage.getBlockchainNetworkType(),\n 1,\n System.currentTimeMillis(),\n AddressesConstants.INCOMING_MESSAGE,\n false\n );\n\n } catch(CantCreateRequestException e) {\n // i inform to error manager the error.\n reportUnexpectedException(e);\n throw new CantReceiveRequestException(e, \"\", \"Error in Crypto Payment Request NS Dao.\");\n } catch(Exception e) {\n\n reportUnexpectedException(e);\n throw new CantReceiveRequestException(e, \"\", \"Unhandled Exception.\");\n }\n }", "private void notifyRequestors(ArrayList<Request> reqL, Offer offer) throws SQLException {\n\t\tfor(Request request : reqL){\n\t\t\tPoolUser rider = db.getUser(request.getUserName());\n\t\t\tPoolUser driver = db.getUser(offer.getUserName());\n\t\t\tString content = HtmlUtility.getMsgBody(\"Hello\", rider, offer, request, 3, driver);\t\n\t\t\tSendMail send = new SendMail(rider.getEmail(),\"NeedARide-A Matching Ride offer found\", content);\n\t\t\tsend.sender();\n\t\t}\n\t\t\n\t}", "public HashMap<CarPosition, Passenger[]> openDoors() { \n //Disembarking\n LinkedList<Passenger> retPas = new LinkedList<Passenger>();\n Passenger[] temp = new Passenger[currentPassengers.size()];\n for (int i = 0; i < currentPassengers.size(); i++) {\n temp[i] = currentPassengers.get(i);\n }\n \n //(Disembarking) Update queue, elevator and fill return list\n for (int i = 0; i < temp.length; i++) {\n if (temp[i].getDestination() == currentFloor) {\n if (!currentPassengers.remove(temp[i])) { //Remove from elevator\n throw new RuntimeException(\"Could not find dismebarking passenger in elevator.\");\n }\n retPas.add(temp[i]); //Add to return list\n passengersServed = passengersServed.add(new BigInteger(\"1\")); //Update service counter\n \n boolean removed = false;\n for (int j = 0; j < queue.size(); j++) {\n ElevatorQueueObject q = queue.get(j);\n if (q.getPassenger() == temp[i] && q.getActionType() == ElevatorAction.DROPOFF) {\n \tremoved = true;\n queue.remove(q); //Remove from queue\n break;\n }\n }\n if (!removed) { //Could not find queue object\n throw new RuntimeException(\"Could not find dismebarking passenger in queue.\");\n }\n }\n }\n \n //Embarking\n while (currentPassengers.size() < specs.getCarryCapacity() && queue.size() > 0) {\n ElevatorQueueObject q = queue.getFirst();\n if (q.getActionType() == ElevatorAction.PICKUP) {\n if(q.getPassenger().getOrigin() == currentFloor) {\n currentPassengers.add(q.getPassenger());\n queue.removeFirst();\n } else {\n break;\n }\n } else {\n break;\n }\n }\n \n //Format disembarking passengers as an array\n Passenger[] retArr = new Passenger[retPas.size()];\n for (int i = 0; i < retPas.size(); i++) {\n retArr[i] = retPas.get(i);\n }\n \n //Return disembarking passengers as a HashMap\n HashMap<CarPosition, Passenger[]> retMap = new HashMap<CarPosition, Passenger[]>(1);\n retMap.put(CarPosition.NULL, retArr);\n \n return retMap;\n }", "private static String fetchElevHistory(){\n\t\tRequestData req = new RequestData(\"activities/elevation/date/today/max\");\t//make request\n\t\treq.sendRequest();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//send request\n\t\tJSONObject json1 = new JSONObject(req.getBody());\t\t\t\t\t\t\t//make json from response\n\t\tJSONArray json = json1.getJSONArray(\"activities-elevation\");\n\t\treturn json.toString();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return goals as json\n\t}", "public void Elevator() {\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \t\n }", "public com.google.common.util.concurrent.ListenableFuture<grpc.CommunicationServiceOuterClass.Elected> election(\n grpc.CommunicationServiceOuterClass.Election request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_ELECTION, getCallOptions()), request);\n }", "public void request(long r6) {\n /*\n r5 = this;\n r0 = 0\n int r2 = (r6 > r0 ? 1 : (r6 == r0 ? 0 : -1))\n if (r2 < 0) goto L_0x003f\n if (r2 != 0) goto L_0x0009\n return\n L_0x0009:\n monitor-enter(r5)\n boolean r2 = r5.emitting // Catch:{ all -> 0x003c }\n if (r2 == 0) goto L_0x0015\n long r0 = r5.missedRequested // Catch:{ all -> 0x003c }\n long r0 = r0 + r6\n r5.missedRequested = r0 // Catch:{ all -> 0x003c }\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n return\n L_0x0015:\n r2 = 1\n r5.emitting = r2 // Catch:{ all -> 0x003c }\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n long r2 = r5.requested // Catch:{ all -> 0x0032 }\n long r2 = r2 + r6\n int r4 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r4 >= 0) goto L_0x0025\n r2 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n L_0x0025:\n r5.requested = r2 // Catch:{ all -> 0x0032 }\n rx.Producer r0 = r5.currentProducer // Catch:{ all -> 0x0032 }\n if (r0 == 0) goto L_0x002e\n r0.request(r6) // Catch:{ all -> 0x0032 }\n L_0x002e:\n r5.emitLoop() // Catch:{ all -> 0x0032 }\n return\n L_0x0032:\n r6 = move-exception\n monitor-enter(r5)\n r7 = 0\n r5.emitting = r7 // Catch:{ all -> 0x0039 }\n monitor-exit(r5) // Catch:{ all -> 0x0039 }\n throw r6\n L_0x0039:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0039 }\n throw r6\n L_0x003c:\n r6 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x003c }\n throw r6\n L_0x003f:\n java.lang.IllegalArgumentException r6 = new java.lang.IllegalArgumentException\n java.lang.String r7 = \"n >= 0 required\"\n r6.<init>(r7)\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p030rx.internal.producers.ProducerArbiter.request(long):void\");\n }", "public int getElevatorState() {\n return elevatorState;\n }", "@Test\n public void testAllElevatorsOnLevel1() {\n final ElevatorUserCommand command = new ElevatorUserCommand(1, 5, 1);\n final ElevatorMovingCommand movingStrategy = calculator.getMovingStrategy(command);\n assertEquals(elevatorA.getId(), movingStrategy.getElevatorId());\n }", "public Queue getFloorQueue(Elevator lift)\n\t{\n\t\tQueue queue = null;\n\t\tif (this.isFloorValid(lift.getCurrentFloor()))\n\t\t{\n\t\t\t// prefer up queue\n\t\t\tqueue = this.upQueues[lift.getCurrentFloor()];\n\t\t\t\n\t\t\t// unless we're headed down or we're idling and the up queue is empty\n\t\t\tif (lift.getDirection() == Elevator.Direction.DOWN ||\n\t\t\t\t(lift.getDirection() == Elevator.Direction.IDLE &&\n\t\t\t\tqueue.size() == 0))\n\t\t\t{\n\t\t\t\tqueue = this.downQueues[lift.getCurrentFloor()];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.err.println(\"ElevatorBank.getFloorQueue got an elevator that found a new floor:\" + lift);\n\t\t}\n\t\t\n\t\treturn queue;\n\t}", "@Override\n\tpublic String approveLeaveByLeaveRequestId(String leaveRequestId, String leaveApproveReason,\n\t\t\tString changeLeaveType,final float cl,final float el,final float plwp) {\n\t\t//String moveRowIntoHistory=\"INSERT INTO emp_leave_history select * from emp_leave_requests_tbl where requestId = '\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(moveRowIntoHistory);\n\t\t//String deleteRowByEmpid=\"delete from emp_leave_requests_tbl where requestId='\"+leaveRequestId+\"'\";\n\t\t//super.getJdbcTemplate().execute(deleteRowByEmpid);\n\t\t//String squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_history as lh where lh.requestId=?\";\n\t\tString squery =\"select lh.empid,lh.leaveType,lh.leaveCategory,lh.totalDays,lh.lwpDays,lh.lwp,lh.inAccount,lh.leaveDays from emp_leave_requests_tbl as lh where lh.requestId=?\";\n\t\tif(!BASApplicationConstants.NO_CHANGE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t FaculityLeaveMasterEntity faculityLeaveMasterEntity = super.getJdbcTemplate().queryForObject(squery,new Object[] {leaveRequestId},new BeanPropertyRowMapper<FaculityLeaveMasterEntity>(FaculityLeaveMasterEntity.class));\n\t\t\t\tLeaveBalanceEntity leaveBalanceEntity=findLeaveCurrentLeaveBalanceByEmpId(faculityLeaveMasterEntity.getEmpid()+\"\");\n\t\t\t\tif(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\tif(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t\tfloat cel=0;\n\t\t\t\t\t\t String elDays=null;\n\t\t\t\t\t\t\tString lwpdays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t float lwp=faculityLeaveMasterEntity.getLwp();//2.5 , el=1.5\n\t\t\t\t\t\t float tel=leaveBalanceEntity.getEl(); //1\n\t\t\t\t\t\t float remel=tel-lwp; //remel =>>remainning el /5 //5.5\n\t\t\t\t\t\t if(remel>0) {\n\t\t\t\t\t\t \tlwp=0;\n\t\t\t\t\t\t \telDays=lwpdays;\n\t\t\t\t\t\t \tlwpdays=null;\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t \tlwp=-remel; //when lwp>=total el\n\t\t\t\t\t\t \tcel=faculityLeaveMasterEntity.getLwp();\n\t\t\t\t\t\t \t///2\n\t\t\t\t\t\t \tint lwpCount=(int)Math.ceil(lwp);\n\t\t\t\t\t\t \tint lwpLessCount=(int)Math.floor(lwp);\n\t\t\t\t\t\t \tString lwpdaysTokens[]=lwpdays.split(\",\");\n\t\t\t\t\t\t \t elDays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwp;x++) { //\n\t\t\t\t\t\t \telDays=elDays+lwpdaysTokens[lwpdaysTokens.length-1-x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t lwpdays=\"\";\n\t\t\t\t\t\t for(int x=0;x<lwpdaysTokens.length-lwp;x++) { //\n\t\t\t\t\t\t \tlwpdays=lwpdays+lwpdaysTokens[x]+\",\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t String updateLeaveStatus=\"update emp_leave_requests_tbl set elDays=?,cel=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t super.getJdbcTemplate().update(updateLeaveStatus,new Object[]{elDays,cel,lwp,lwpdays,changeLeaveType});\n\t\t\t\t\t\t updateEmployeeEL(leaveBalanceEntity.getEmpNo(),0F);\n\t\t\t\t\t}\n\t\t\t\t}else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(faculityLeaveMasterEntity.getLeaveType())) {\n\t\t\t\t\t if(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)) {\n\t\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\t\tlwpDays=totalLeaveDays+lwpDays;\n\t\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(BASApplicationConstants.LWP_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t String totalLeaveDays=faculityLeaveMasterEntity.getLeaveDays();\n\t\t\t\t\t\tString lwpDays=faculityLeaveMasterEntity.getLwpDays();\n\t\t\t\t\t\tlwpDays=totalLeaveDays+(lwpDays!=null?lwpDays:\"\");\n\t\t\t\t\t\tfloat lwp=totalDays;\n\t\t\t\t\t\t//updateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays-faculityLeaveMasterEntity.getLwp()); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set leaveDays=?,lwp=?,lwpDays=?,changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{null,lwp,lwpDays,changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.CL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeCL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }else if(BASApplicationConstants.EL_LEAVE.equalsIgnoreCase(changeLeaveType)){\n\t\t\t\t\t float totalDays=faculityLeaveMasterEntity.getTotalDays();\n\t\t\t\t\t\tupdateEmployeeEL(faculityLeaveMasterEntity.getEmpid()+\"\",totalDays); \n\t\t\t\t\t\tString updateLeaveStatus=\"update emp_leave_requests_tbl set changeLeaveType=? where requestId='\"+leaveRequestId+\"'\";\n\t\t\t\t\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{changeLeaveType});\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t}\n\t\t}//end of no change\n\t\t\n\t\t//Approving the status of Management and moving record from leave_request_tbl into leave_history_tbl\n\t\tapproveLeaveByManagementRequestId(leaveRequestId,leaveApproveReason);\n\t/*\tString updateLeaveStatus=\"update emp_leave_requests_tbl set description=?,hrApproval=?,dom=? where requestId='\"+leaveRequestId+\"'\";\n\t\tsuper.getJdbcTemplate().update(updateLeaveStatus,new Object[]{leaveApproveReason,LeaveStatus.APPROVED_STATUS,DateUtils.getCurrentTimestatmp()});*/\n\t\treturn BaoConstants.SUCCESS;\n\t}" ]
[ "0.74722564", "0.6876675", "0.6842733", "0.68090147", "0.6561308", "0.6433357", "0.6142772", "0.60048914", "0.5983863", "0.5942326", "0.5838519", "0.57988733", "0.577069", "0.5713567", "0.57110757", "0.56088984", "0.5557267", "0.55525374", "0.5507448", "0.55048513", "0.5495791", "0.548545", "0.54838026", "0.5477993", "0.54323083", "0.5419314", "0.54185766", "0.5410303", "0.53927755", "0.5388483", "0.53811246", "0.5362278", "0.53427935", "0.52924323", "0.52889603", "0.5283595", "0.5283374", "0.5273085", "0.5271813", "0.52537423", "0.520974", "0.5201248", "0.5128133", "0.5064874", "0.50017583", "0.50001764", "0.49996796", "0.49850985", "0.49781805", "0.49771535", "0.4957245", "0.49446827", "0.4942323", "0.49409956", "0.49264875", "0.4903816", "0.48997897", "0.4891797", "0.48569578", "0.48426315", "0.48364234", "0.4832682", "0.48283437", "0.48263007", "0.48220193", "0.4813404", "0.4812713", "0.4812364", "0.481051", "0.48061645", "0.47843274", "0.47799855", "0.47610053", "0.475771", "0.47567677", "0.4738599", "0.4733668", "0.4731512", "0.47274756", "0.47237357", "0.47055706", "0.4700345", "0.4699893", "0.4699582", "0.4698159", "0.46914348", "0.46873274", "0.4686897", "0.46815452", "0.46809268", "0.46711665", "0.46640214", "0.4663353", "0.4662993", "0.4658327", "0.46515113", "0.46475556", "0.46469828", "0.46412903", "0.4627221" ]
0.6211012
6