Граф коммитов

649 Коммитов

Автор SHA1 Сообщение Дата
Myk Melez dede680750 Merge pull request #467 from marco-c/fix_test_arithmetic
Fix TestArithmetic
2014-10-17 15:19:25 -07:00
Marco Castelluccio e116f40d61 Fix TextEditor (it passed with the check that was converting ints to longs, we should figure out why) 2014-10-17 12:15:41 -07:00
Marco Castelluccio 3d3364154a Temp fix for socket tests 2014-10-17 01:16:13 -07:00
Marco Castelluccio aa0dd634ce Add missing binds 2014-10-16 23:47:09 -07:00
Marco Castelluccio 5270a577a8 Port other natives to Native.create 2014-10-16 20:08:51 -07:00
Marco Castelluccio b910b87bdf Use Native.create for async natives 2014-10-16 15:04:31 -07:00
Marco Castelluccio 4da7d6755d Port other midp/socket.js natives to Native.create 2014-10-16 10:42:53 -07:00
Marco Castelluccio 4f7f79d985 Merge branch 'master' of https://github.com/andreasgal/j2me.js into port_other_natives
Conflicts:
	tests/native.js
2014-10-16 10:34:45 -07:00
Marco Castelluccio b9e42a0abe Port other natives to use Native.create 2014-10-15 19:48:17 -07:00
Marco Castelluccio d12d7702e3 Merge branch 'master' of https://github.com/andreasgal/j2me.js into port_other_natives 2014-10-15 16:38:38 -07:00
Myk Melez 3926f02369 only send to the parent the data being sent to the TCP socket 2014-10-15 15:04:50 -07:00
Marco Castelluccio 6e05b8262e Port a few other natives in midp/midp.js to Native.create 2014-10-15 14:11:30 -07:00
Marco Castelluccio a4f7399cc5 Fix getSockOpt0 native (it should use this instead of _this) 2014-10-15 11:45:59 -07:00
Marco Castelluccio d31622cdaf Port some midp/midp.js natives to Native.create 2014-10-15 11:44:58 -07:00
Myk Melez 7e76d45fae Merge branch 'master' into allow-scripts
Conflicts:
	native.js
	tests/automation.js
2014-10-15 01:28:01 -07:00
Myk Melez 3a737e934b Merge pull request #448 from marco-c/automatic_static
Remove opts parameter from Override.create/Native.create and use the Met...
2014-10-15 01:15:37 -07:00
Myk Melez d6dfc59cca close pipes after we're done using them 2014-10-15 01:12:15 -07:00
Myk Melez 056beb7e65 improve terminology 2014-10-15 00:10:59 -07:00
Myk Melez 669aac8ed7 no need to wrap pipe call in another timeout 2014-10-14 23:11:17 -07:00
Myk Melez 322253888c simplify message handler 2014-10-14 23:09:35 -07:00
Myk Melez 643bc5821a Merge branch 'master' into allow-scripts
Conflicts:
	midp/socket.js
	tests/automation.js
2014-10-14 22:38:28 -07:00
Pin Zhang 58ade9022a Implements localmsg://nokia.phone-status 2014-10-15 09:14:40 +08:00
Marco Castelluccio 338f62bdaa Remove opts parameter from Override.create/Native.create and use the MethodInfo's isStatic property. Fixes #443. 2014-10-14 16:38:16 -07:00
Marco Castelluccio fe632fa95c Return boolean values in two functions that are supposed to return boolean values 2014-10-14 15:53:04 -07:00
Marco Castelluccio bc5926941a Port some midp/midp.js natives to Native.create 2014-10-14 15:49:08 -07:00
Marco Castelluccio 1dfb9a0b78 Port midp/localmsg.js natives to Native.create 2014-10-14 15:45:53 -07:00
Marco Castelluccio 5ad8efa3ef Port other midp/gfx.js natives to Native.create 2014-10-14 15:45:40 -07:00
Marco Castelluccio 7d3e82a59b Port some gfx natives to Native.create 2014-10-14 14:52:03 -07:00
Marco Castelluccio 0621b9f5c4 Misc porting of natives to Native.create 2014-10-14 14:51:40 -07:00
Myk Melez b2a623c71a avoid copying data unnecessarily 2014-10-14 14:46:47 -07:00
Marco Castelluccio 8e21a2d6af Port midp/frameanimator.js to Native.create 2014-10-14 13:40:38 -07:00
Marco Castelluccio be9ed475d1 Port midp/crypto.js natives to Native.create 2014-10-14 13:35:51 -07:00
Marco Castelluccio 6181b610e4 Port midp/codec.js natives to Native.create 2014-10-14 13:29:45 -07:00
Myk Melez dd8ab00d11 restart Protocol.write0 thread immediately on socket send 2014-10-14 13:23:02 -07:00
Myk Melez a1df1489d0 test for socket.isClosed correctly in read0 2014-10-13 15:33:07 -07:00
Myk Melez df7e614d9f use mozbrowser to enable privileges, local loading, and code evaluation 2014-10-12 22:36:22 -07:00
Marco e622651d35 Merge pull request #419 from marco-c/add_missing_stack_pop_in_loadAndCreateImmutableImageDataFromCache0
Add missing stack.pop() in loadAndCreateImmutableImageDataFromCache0
2014-10-09 10:22:55 -07:00
Marco Castelluccio 2b9c11552b Add missing stack.pop() in loadAndCreateImmutableImageDataFromCache0 2014-10-09 10:02:12 -07:00
Marco Castelluccio f6381e7cd5 Add missing stack.pop() in deleteFileImpl 2014-10-09 09:33:24 -07:00
Marco 65cd162631 Merge pull request #390 from brendandahl/registry
Use notifications for connection registry instead of polling.
2014-10-03 12:42:16 -07:00
Myk Melez a760968dd3 override CGraphicsUtil.draw9pcsBackground with native impl 2014-10-03 02:02:06 -07:00
Brendan Dahl e2aa6e5e5c Use notifications for connection registry instead of polling. 2014-10-02 14:51:59 -07:00
Marco Castelluccio 8ce3e27a7d Throw exception if rename fails 2014-10-01 17:19:33 -07:00
Marco Castelluccio 075ad50136 Close file after truncating it 2014-10-01 17:05:13 -07:00
Myk Melez 085896ec5d Merge pull request #369 from marco-c/optimize_LocalizedStringsBase
Don't parse localized strings multiple times
2014-09-30 17:44:51 -07:00
Marco Castelluccio c304441fa2 Make MIDP.localizedStrings a Map 2014-09-30 17:33:42 -07:00
Marco Castelluccio ee6c1d0478 Don't cache assets/0/en-US.xml file 2014-09-30 11:46:31 -07:00
Marco Castelluccio 1774e1649b Don't parse localized strings multiple times 2014-09-30 11:41:08 -07:00
Brendan Dahl 8385651ce0 Various fixes for chrome. 2014-09-30 09:17:16 -07:00
Myk Melez d782fd9700 return -1 early when Protocol.read0 called on closed socket 2014-09-29 16:44:27 -07:00
Myk Melez 5b33e8f953 create files correctly; truncate files that exist but are empty 2014-09-27 01:30:24 -07:00
Marco Castelluccio f7624bd5f4 Fix last instance in midp/gfx.js 2014-09-26 11:48:26 -07:00
Marco Castelluccio 01d6985889 Use 'S' for static, 'I' for non-static 2014-09-26 11:48:06 -07:00
Marco Castelluccio b71ee629f6 Fix all getField callers 2014-09-25 21:04:20 -07:00
Myk Melez 2f1c44ad73 override drawRegion to do renderRegion's work itself 2014-09-25 11:21:48 -07:00
Marco Castelluccio 5150e7a75f Add missing semicolon 2014-09-23 15:17:37 -07:00
Marco Castelluccio b831401e0e Move the loop that sets the pixels from Java to a JS native. Fixes #315. 2014-09-23 11:22:11 -07:00
Myk Melez 593604eb01 Merge pull request #311 from marco-c/fix_286
Add trailing slash to directory name in listImpl
2014-09-22 17:14:31 -07:00
Myk Melez c1ccee97e4 Merge pull request #298 from mcav/sms-listener
Prompt the user when the app requests SMS messages.
2014-09-22 16:45:01 -07:00
Marco Castelluccio cc6a10df1e Add trailing slash to directory name in listImpl. Fixes #286. 2014-09-22 16:16:44 -07:00
Marcus Cavanaugh d1f8f5563b Resize SMS prompt for debug mode; fix nits. 2014-09-22 15:03:27 -07:00
Marcus Cavanaugh d8eae34632 Fix automated test now that the old SMS interface was removed. 2014-09-22 10:45:39 -07:00
Marco Castelluccio b0bd119390 Use stat instead of list in isDirectoryImpl 2014-09-22 09:26:35 -07:00
Marcus Cavanaugh 1149331094 Fix sizing; remove input_areas.css; move style.css into style/; remove old SMS-receiving interface. 2014-09-22 08:29:21 -07:00
Marco Castelluccio 11d5a9db56 Merge branch 'master' of https://github.com/andreasgal/j2me.js into contacts
Conflicts:
	midp/localmsg.js
	tests/automation.js
2014-09-19 16:43:21 -07:00
Marco Castelluccio 18ea66b704 Add nokia.file-ui server to the list of unimplemented Nokia-specific localmsg servers 2014-09-19 16:41:04 -07:00
Brendan Dahl eb9197dd31 Update the RGB color and gray color when setting ARGB. 2014-09-19 16:04:57 -07:00
Marcus Cavanaugh 665431f21c Prompt the user when the app requests SMS messages. 2014-09-19 15:49:57 -07:00
Myk Melez 27a69516e3 Merge pull request #291 from mcav/resize-for-phone
Resize canvas to fill screen on mobile-sized devices.
2014-09-19 14:06:10 -07:00
Marco Castelluccio ef08577ec3 Remove nokia.contacts from the unimplemented localmsg server list 2014-09-19 11:43:21 -07:00
Marcus Cavanaugh 77fbde25f8 Resize canvas to fill screen on mobile-sized devices. 2014-09-19 11:42:28 -07:00
Marco Castelluccio f7fed950cc Log the client message if the server doesn't support the specified event type 2014-09-19 11:35:12 -07:00
Marco Castelluccio ff7e804947 Send a "Notify" message for each contact 2014-09-19 11:30:35 -07:00
Marco Castelluccio f7b153d206 Merge branch 'master' of https://github.com/andreasgal/j2me.js into contacts 2014-09-19 10:13:44 -07:00
Marco Castelluccio 4e43eb304f Merge branch 'master' into contacts 2014-09-18 18:19:27 -07:00
Marco Castelluccio 135ec38618 Merge branch 'master' of https://github.com/andreasgal/j2me.js into more_gfx_tests 2014-09-18 13:29:34 -07:00
Marco Castelluccio 6eb38bf8f8 getImageData starting from specific x and y 2014-09-18 11:15:56 -07:00
Marco Castelluccio 0b9fa95465 Take x, y, width, height into account in contextToRgbData 2014-09-18 10:31:28 -07:00
Marco Castelluccio 0ebb654f83 Merge branch 'master' of https://github.com/andreasgal/j2me.js into contacts 2014-09-17 18:07:16 -07:00
Marco Castelluccio 40924ece9e listImpl shouldn't return the path of the files, but just their names 2014-09-17 18:02:03 -07:00
Marco Castelluccio c9c860b27d Remove globalCompositeOperation hack 2014-09-17 16:13:54 -07:00
Marcus Cavanaugh a16e85e77e [gfx] Point nativeImageData at the Context2D rather than the Canvas. 2014-09-17 11:31:40 -07:00
Myk Melez a17d7ed347 make lastModified return 0 if file doesn't exist 2014-09-17 00:17:53 -07:00
Myk Melez fbd264bd2d Merge branch 'master' into lastModifiedImpl 2014-09-16 23:41:12 -07:00
Myk Melez 1d43f1428c Merge pull request #275 from marco-c/fix_listImpl
Fix listImpl
2014-09-16 23:40:47 -07:00
Myk Melez d0d587b400 Merge branch 'master' into lastModifiedImpl
Conflicts:
	tests/automation.js
2014-09-16 22:51:03 -07:00
Marco Castelluccio df01cce073 Small cleanup 2014-09-16 18:31:40 -07:00
Marco Castelluccio 2848cf50d7 Don't return the first "/" character in listImpl 2014-09-16 18:29:16 -07:00
Marco Castelluccio 2e244817f5 Properly support error conditions in the DataDecoder class 2014-09-16 18:02:18 -07:00
Marco Castelluccio e6d8a32ed9 Add the minimum amount of info to get a contact to show up in the contact list 2014-09-16 17:07:45 -07:00
Myk Melez 6d6b2784ce implement Connection.lastModifiedImpl 2014-09-16 16:40:34 -07:00
Marco Castelluccio 4fbde608fb Merge branch 'datadecoder_listhasmoreitems' into contacts 2014-09-16 15:43:56 -07:00
Marco Castelluccio 24dd3e4590 Implement DataDecoder::listHasMoreItems 2014-09-16 15:33:50 -07:00
Marco Castelluccio 08fc5e8bcf WIP implementation for the nokia.contacts server 2014-09-16 15:33:11 -07:00
Marco Castelluccio fbdcfdadb4 Merge branch 'master' of https://github.com/andreasgal/j2me.js into gfx_tests 2014-09-16 10:47:14 -07:00
Marco Castelluccio ba75a07e76 Precisely specify the font to use as system font 2014-09-16 09:17:42 -07:00
Myk Melez 6088360acd move CanvasItem methods from TextEditor to CanvasItem 2014-09-16 01:02:21 -07:00
Myk Melez 64ea374234 partly implement setCaret 2014-09-16 00:31:03 -07:00
Myk Melez b177dc08e0 implement CanvasItem.getPositionX/Y; move .setPosition to CanvasItem 2014-09-16 00:06:58 -07:00
Myk Melez 2ea20bb03c move display back to right side of screen 2014-09-15 23:57:30 -07:00
Myk Melez aade07657a implement get/setBackground/ForegroundColor 2014-09-15 21:52:07 -07:00
Myk Melez 08c632c13f implement TextEditor.setPosition; move canvas to top-left corner 2014-09-15 16:19:03 -07:00
Myk Melez d939e21f4f truncate content when setting maxSize 2014-09-15 15:23:34 -07:00
Myk Melez 25c008fa82 implement TextEditor constructor's text attribute 2014-09-15 15:09:52 -07:00
Myk Melez bb8f4d5890 warn and test that constraints aren't implemented 2014-09-15 14:49:07 -07:00
Myk Melez ba03e4c93e implement maxSize/getMaxSize/setMaxSize 2014-09-15 14:34:25 -07:00
Myk Melez af8bde28c2 set the native text editor widget size 2014-09-15 14:10:36 -07:00
Myk Melez 4076961fe6 move isVisible from TextEditor to CanvasItem; test setVisible/isVisible 2014-09-15 10:29:10 -07:00
Marco 6916cbcc81 Merge pull request #263 from mykmelez/texteditor-plus
implement getCaretPosition
2014-09-15 09:52:33 -07:00
Myk Melez 2ed224f767 implement getCaretPosition 2014-09-15 09:48:25 -07:00
Marco Castelluccio c0a077a62a Reverse x and y parameters in drawPixels 2014-09-15 09:29:47 -07:00
Marco Castelluccio 67a7dbf397 Merge branch 'master' of https://github.com/andreasgal/j2me.js into directgraphicsimp_getPixels_drawPixels 2014-09-15 09:27:56 -07:00
Marco Castelluccio f4505773ca Add message to NullPointerException exceptions in getPixels and drawPixels 2014-09-15 09:27:27 -07:00
Marco Castelluccio fc6e6bf418 Cleanup 2014-09-15 08:56:50 -07:00
Marco Castelluccio 5ea34a7620 Refactor code to convert native image data 2014-09-15 08:48:30 -07:00
Marco Castelluccio 586733662c Implement DirectGraphicsImp::drawPixels 2014-09-15 08:42:10 -07:00
Marco Castelluccio 967f4ed575 Implement DirectGraphicsImp::getPixels 2014-09-15 08:38:50 -07:00
Myk Melez af40299f26 call TextEditor natives directly 2014-09-15 08:38:02 -07:00
Marco Castelluccio ab803dd616 Use createTexture when possible 2014-09-15 08:32:28 -07:00
Marco Castelluccio 554d8762c6 Refactor textureFrom* textureTo* functions 2014-09-15 08:30:18 -07:00
Myk Melez 7bc6a95a71 implement setParent entirely in Java 2014-09-15 08:25:21 -07:00
Myk Melez cd7184734d Merge branch 'master' into texteditor-misc 2014-09-15 08:16:33 -07:00
Myk Melez b4b1b5e6f8 implement TextEditor.delete 2014-09-15 00:24:34 -07:00
Myk Melez dd4b226742 raise exception on error decoding image 2014-09-15 00:08:06 -07:00
Myk Melez c1ec2ae636 warn instead of throwing exception when Graphics.render missing native image data 2014-09-14 23:23:20 -07:00
Myk Melez 2e30350b2b store native image data as JS property 2014-09-14 23:22:23 -07:00
Myk Melez b12493a3c0 Merge branch 'master' into texteditor-misc 2014-09-14 22:28:25 -07:00
Myk Melez 440948e071 Merge pull request #257 from marco-c/implement_DirectUtils_createImage
Implement DirectUtils::createImage(byte[],int,int)
2014-09-12 15:55:15 -07:00
Marco Castelluccio 675a1d0646 Implement DirectUtils::createImage(byte[],int,int) 2014-09-12 15:48:45 -07:00
Marco Castelluccio 89f0cd5fc6 Don't copy the typed array data if unnecessary 2014-09-12 13:51:39 -07:00
Marco Castelluccio b47963d427 Merge branch 'master' of https://github.com/andreasgal/j2me.js into testinputoutputstorage_with_fileconnection
Conflicts:
	tests/automation.js
2014-09-12 10:45:34 -07:00
Marco Castelluccio 17143738c0 Add reference to the source of the regular expression 2014-09-12 10:37:33 -07:00
Marco Castelluccio 2474fe7586 Don't explicitely truncate the value 2014-09-12 10:29:41 -07:00
Marco Castelluccio 0125d072c3 Merge branch 'master' of https://github.com/andreasgal/j2me.js into testinputoutputstorage_with_fileconnection
Conflicts:
	tests/automation.js
2014-09-12 10:28:41 -07:00
Marco Castelluccio 60abfb0c5e Merge branch 'master' of https://github.com/andreasgal/j2me.js into improve_listImpl
Conflicts:
	tests/automation.js
2014-09-12 10:23:36 -07:00
Myk Melez 55ae6f2f2b Merge pull request #249 from marco-c/check_already_closed
Check if a file is already closed before closing it again
2014-09-11 23:11:02 -07:00
Myk Melez a450737fee Merge pull request #248 from marco-c/put_boolean_codec
Support boolean values in DataEncoder and DataDecoder
2014-09-11 23:09:13 -07:00
Marco Castelluccio 2aa7ae4678 Add some missing natives 2014-09-11 18:18:22 -07:00
Marco Castelluccio b36fed2f75 Check if the file is already closed before closing it 2014-09-11 17:58:29 -07:00
Marco Castelluccio 4da71d84eb Implement getBoolean native 2014-09-11 16:31:33 -07:00
Marco Castelluccio 6fe0ae7292 Implement DataEncoder::put native (with boolean value) 2014-09-11 16:21:39 -07:00
Marco Castelluccio 3740c7b588 Fix listImpl when the filter doesn't start with *. 2014-09-11 15:40:31 -07:00
Marco Castelluccio 6b0b2f16ef Correctly convert int to byte in writeByteImpl 2014-09-11 12:35:07 -07:00
Marco Castelluccio fef46936cf Use buffer.set instead of for loop 2014-09-11 10:45:27 -07:00
Marco Castelluccio de50ded5ec Merge branch 'master' of https://github.com/andreasgal/j2me.js into readImpl
Conflicts:
	midp/fs.js
	tests/automation.js
	tests/com/ibm/oti/connection/file/TestFileConnection.java
2014-09-11 10:40:06 -07:00
Myk Melez 579f646cdb add FCInputStream.available and .skip tests, and fix bug they uncover 2014-09-11 10:26:06 -07:00
Marco Castelluccio 8cc0647cb0 Fix indentation 2014-09-11 10:12:29 -07:00
Marco Castelluccio 479a7304e6 Implement readImpl 2014-09-11 10:10:49 -07:00
Marco Castelluccio 1faf2705aa Nicer toNumber and fromNumber 2014-09-10 17:51:08 -07:00
Marco Castelluccio 17f7f99526 Add Long.fromNumber and toNumber 2014-09-10 17:48:33 -07:00
Marco Castelluccio 236e50ee6a Merge branch 'input-stream-natives' of https://github.com/mykmelez/j2me.js into integration 2014-09-10 17:47:44 -07:00
Myk Melez b089f590c7 implement availableImpl and skipImpl 2014-09-10 16:59:10 -07:00
Myk Melez 917dc5c858 stub out Connection.lastModifiedImpl 2014-09-10 16:42:44 -07:00
Myk Melez e5e1ef9579 leave TextEditor invisible until setVisible is called 2014-09-10 15:45:35 -07:00
Myk Melez d14b8b8cac Merge branch 'master' into texteditor-misc 2014-09-10 15:41:37 -07:00
Myk Melez e111fea4cc implement setParent 2014-09-10 15:26:31 -07:00
Marco Castelluccio ef7b4f5ea4 Don't warn in isBuildInDisplay0 2014-09-10 15:10:41 -07:00
Marco 93661466a9 Merge pull request #233 from marco-c/getDisplayName0
Don't warn in getDisplayName0
2014-09-10 15:06:53 -07:00
Marco Castelluccio 50ed13ed85 Don't warn in getDisplayName0 2014-09-10 15:02:59 -07:00
Myk Melez dc6a8b581e implement TextEditor::setFocus 2014-09-10 14:38:21 -07:00
Marco Castelluccio e0d279f01f Increase ID on each mutex creation 2014-09-10 14:11:45 -07:00
Marco Castelluccio 5246618bc2 Add break in for loops and add missing semicolons 2014-09-10 14:09:43 -07:00
Marco Castelluccio f4da3a9a5f Merge branch 'master' of https://github.com/andreasgal/j2me.js into implement_interisolatemutex_natives
Conflicts:
	tests/automation.js
2014-09-10 14:07:24 -07:00
Myk Melez 761468679b Merge pull request #222 from marco-c/support_fake_servers
Implement the nokia.messaging localmsg server
2014-09-10 14:05:23 -07:00
Marco Castelluccio 387f66b2c7 Make symbol names start with underscore letters 2014-09-10 14:01:42 -07:00
Marco Castelluccio d8536f61f7 Add break in for loops 2014-09-10 14:01:31 -07:00
Marco Castelluccio 6e52cab3c7 Implement InterIsolateMutex natives 2014-09-10 13:36:56 -07:00
Donovan Preston df3a88afd1 We don't need to bother intercepting native mouse events as long as we focus the inputs when requested. 2014-09-10 15:45:19 -04:00
Marco Castelluccio adbf28cbdb Merge branch 'master' of https://github.com/andreasgal/j2me.js into support_fake_servers
Conflicts:
	tests/automation.js
2014-09-10 11:59:24 -07:00
Marco Castelluccio 20b2b491a2 Add some system key constants (matching some real keycodes) 2014-09-10 11:51:40 -07:00
Marco Castelluccio 0f67f18906 Merge branch 'master' of https://github.com/andreasgal/j2me.js into support_fake_servers
Conflicts:
	tests/automation.js
2014-09-10 11:25:00 -07:00
Marco 466a917257 Merge pull request #220 from mykmelez/frame-animator
partial impl of FrameAnimator
2014-09-10 10:58:02 -07:00
Marco Castelluccio 217039ef50 Remove logging statements 2014-09-10 10:49:51 -07:00
Marco Castelluccio 65a80e31ad Add trans_id field in the MessageNotify message 2014-09-10 10:47:56 -07:00
Marco Castelluccio 92ed06613c Put "message_id" after "type" 2014-09-10 10:42:51 -07:00
Marco Castelluccio 77ba52f635 Fix typo in codec.js 2014-09-10 10:21:13 -07:00
Marco Castelluccio 2c7e7f9b7f Remove SMS from the NokiaSMSMessages array on 'DeleteMessages' 2014-09-10 10:14:56 -07:00
Marco Castelluccio 871fb2b4a8 Set trans_id field 2014-09-10 10:06:00 -07:00
Marco Castelluccio 2350b51aa1 Add logging 2014-09-10 09:00:35 -07:00
Donovan Preston a0805caf14 Remove debug print 2014-09-10 11:44:01 -04:00
Donovan Preston 8820ca1089 Implement setVisible and js stub for setPosition 2014-09-10 11:42:56 -04:00
Marco Castelluccio 6d91b146c6 Support both the J2ME API and the Nokia-specific API to get SMS messages 2014-09-09 18:45:20 -07:00
Marco Castelluccio bab41728b6 Add WIP nokia.messaging server implementation 2014-09-09 18:44:46 -07:00
Marco Castelluccio 70ef965248 Add DataType constants in midp/codec.js 2014-09-09 18:43:45 -07:00
Myk Melez 90b7dfc1cc Merge branch 'master' into frame-animator 2014-09-09 18:22:56 -07:00
Myk Melez 9e95593950 remind code to return false 2014-09-09 18:12:36 -07:00
Marco Castelluccio 97b6881521 Merge branch 'master' of https://github.com/andreasgal/j2me.js into support_fake_servers 2014-09-09 17:32:52 -07:00
Myk Melez df25188d36 Merge branch 'master' into improve-logging
Conflicts:
	tests/automation.js
2014-09-09 17:28:59 -07:00
Marco Castelluccio 5608b16644 Merge branch 'implement_codec_classes' into support_fake_servers 2014-09-09 17:09:16 -07:00
Marco Castelluccio 8943f5dea5 Fix indentation in midp/codec.js 2014-09-09 17:07:56 -07:00
Marco Castelluccio 1ca216c5cc putString and putLong are the same, just use a single function 2014-09-09 17:05:04 -07:00
Marco Castelluccio 591a19d173 Use an array to encode/decode values 2014-09-09 17:03:21 -07:00
Marco Castelluccio 18d407cd38 Start implementation for fake servers 2014-09-09 16:07:40 -07:00
Myk Melez 74ebd913f9 Merge branch 'master' into improve-logging 2014-09-09 15:43:54 -07:00
Marco Castelluccio d8ab9dfc1b Log the data that the MIDlets are trying to send to the Nokia specific servers 2014-09-09 15:20:23 -07:00
Marco Castelluccio 89bc97253e Implement DataDecoder and DataEncoder using native methods 2014-09-09 15:18:11 -07:00
Myk Melez d033385989 Merge pull request #217 from marco-c/implement_isvalidfilename
Implement isValidFilenameImpl
2014-09-09 14:34:21 -07:00
Myk Melez 144fbee172 Merge branch 'master' into improve-logging 2014-09-08 17:46:58 -07:00
Marco Castelluccio 135e3022a4 Implement isValidFilenameImpl 2014-09-08 16:36:43 -07:00
Marco Castelluccio 2da6cacf25 Add basic support for simulating the reception of SMS messages 2014-09-08 14:43:46 -07:00
Marco Castelluccio 4be5ce0867 Implement LocalMsgConnection::receive(LocalMessageProtocolMessage) 2014-09-08 09:27:41 -07:00
Myk Melez 3cface3289 correct levels of various console.* calls 2014-09-08 01:22:18 -07:00
Marco Castelluccio d9bc2116ce Directly use util.fromJavaString because it returns null if its argument is null 2014-09-05 18:34:16 -07:00
Marco Castelluccio 7bd198db69 Add some stub SMS natives 2014-09-05 17:32:39 -07:00
Marco Castelluccio f39655e7d6 Add warnings when a localmsg client tries to connect/send data/receive data from a "fake" built-in server 2014-09-05 17:01:30 -07:00
Marco Castelluccio eaed770a32 Fix comment 2014-09-05 16:05:35 -07:00
Marco Castelluccio 64e6cf6e4a Add comment 2014-09-05 16:00:48 -07:00
Marco Castelluccio b2f8185d95 Add fake Nokia built-in localmsg servers 2014-09-05 15:57:33 -07:00
Marco Castelluccio 5e3de37eac Set notify to false when returning the push connection id in poll0 2014-09-05 14:53:22 -07:00
Myk Melez 628ee73698 replace impls with conditional warnings for now 2014-09-04 17:55:59 -07:00
Myk Melez fedd5563d1 ensure buffered output gets written before returning from notifyClosedOutput 2014-09-04 17:29:21 -07:00
Myk Melez af8378c924 clarify comment; remove warning; add semi-colon 2014-09-04 16:59:04 -07:00
Myk Melez 1e03a8d767 Merge branch 'master' into socket-natives 2014-09-04 16:51:03 -07:00
Myk Melez 9f760147a2 close socket asynchronously 2014-09-04 16:14:31 -07:00
Myk Melez 9690243d4c implement notifyClosedInput0 and notifyClosedOutput0; comment shutdownOutput0 2014-09-04 15:16:55 -07:00
Marco Castelluccio 7b0081591b Add startRecordStoreListening native 2014-09-04 09:54:20 -07:00
Marco Castelluccio 0622b834ea Add Connection::setHiddenImpl native 2014-09-03 17:08:56 -07:00
Marco Castelluccio b9cf20dfc3 Remove unneeded byteArray local variable 2014-09-03 16:35:17 -07:00
Marco Castelluccio 6c0efe8528 Add Connection::availableSizeImpl native 2014-09-03 16:31:27 -07:00
Marco Castelluccio 60c0122106 Merge branch 'master' of https://github.com/andreasgal/j2me.js into add_other_phoneME_tests
Conflicts:
	tests/automation.js
2014-09-03 11:45:16 -07:00
Myk Melez 5350f980fb Merge branch 'hasher-clone' into forge-md5
Conflicts:
	midp/crypto.js
2014-09-03 11:34:53 -07:00
Myk Melez 0e16c6e5f3 refactor to better encapsulate functionality; rename vars to clarify types 2014-09-03 11:32:29 -07:00
Myk Melez 876a2b9da6 add MD5.nativeClone method to clone MD5 hasher correctly 2014-09-03 11:29:05 -07:00
Myk Melez 42f6a1fc1e add SHA.nativeClone method to clone SHA-1 hasher correctly 2014-09-03 11:20:29 -07:00
Myk Melez d4ed1cf6c3 Merge branch 'hasher-clone' into forge-md5
Conflicts:
	tests/automation.js
	tests/com/sun/midp/crypto/TestMD5.java
2014-09-02 23:18:02 -07:00
Myk Melez 0006e12b7f move compareTypedArrays to util.js 2014-09-02 22:31:28 -07:00
Myk Melez 530e069ad6 remove unused MIDP.getRandomInt function 2014-09-02 22:11:56 -07:00
Myk Melez ff53df9bef Merge branch 'master' into hasher-clone 2014-09-02 22:05:54 -07:00
Marco Castelluccio 2b7728d78a Make the RunTests midlet run by default 2014-09-02 18:04:13 -07:00
Myk Melez c75642477d Merge branch 'master' into forge-md5 2014-09-02 16:40:03 -07:00
Myk Melez a2d67fcac4 correctly read hash from forge ByteStreamBuffer impl. 2014-09-02 16:34:14 -07:00
Myk Melez d0aaf7fd0d Merge branch 'hasher-clone' into forge-md5 2014-09-02 16:04:47 -07:00
Myk Melez 2a108234ac convert ints from signed to unsigned before converting to chars 2014-09-02 15:59:53 -07:00
Myk Melez 145001cd40 wip use forge to calculate md5 digests 2014-09-02 15:39:31 -07:00
Myk Melez d20b8542d5 use correct type for empty data array 2014-09-02 15:07:12 -07:00
Marco Castelluccio 3fc3df6586 Fix KeyConverter natives 2014-09-02 15:03:15 -07:00
Myk Melez 00ed8477c7 support MD5.clone() and SHA.clone() 2014-09-02 14:55:29 -07:00
Myk Melez b1e07a214a use TypedArray.set instead of looping over hash 2014-09-02 11:16:44 -07:00
Myk Melez d2bed65fa5 Merge branch 'master' into fix-sha1
Conflicts:
	tests/automation.js
2014-09-02 11:13:47 -07:00
Myk Melez 1f2a8b164b unrefactor hashing code now that we use different impls for SHA-1 and MD5 2014-09-02 09:42:25 -07:00
Marco Castelluccio 365e73cd73 Add comments to explain the problems with jsbn 2014-09-02 09:35:16 -07:00
Marco Castelluccio 13d92a6c2d Merge branch 'master' of https://github.com/andreasgal/j2me.js into add_another_test_case_to_testrsa
Conflicts:
	tests/automation.js
2014-09-02 09:25:53 -07:00
Myk Melez 8a9c07f610 don't convert to string unnecessarily 2014-09-02 09:23:09 -07:00
Myk Melez 6078dcd115 replace CryptoJS SHA-1 hasher with Rusha 2014-09-02 09:05:26 -07:00
Marco Castelluccio 9aa8f5ce0d Implement ARC4 native 2014-08-29 17:00:28 -07:00
Marco Castelluccio 3413deaf59 Looks like the jsbn library doesn't work well with TypedArrays 2014-08-29 15:11:48 -07:00
Marco f654c68e6b Merge pull request #2 from mykmelez/marco-c-test_rsa
implement RSA.modExp
2014-08-29 09:43:25 -07:00
Marco Castelluccio dbf86bf831 Merge branch 'master' of https://github.com/andreasgal/j2me.js into test_rsa 2014-08-29 09:12:04 -07:00
Myk Melez 5863bd0da1 clarify how remainder is calculated 2014-08-29 00:53:06 -07:00
Marco Castelluccio 570aaebdf4 Warn for unimplemented RSA native 2014-08-28 18:15:48 -07:00