Marco Castelluccio
7c88f32adf
Return true in isVolumeControlSupported if media format is 'MPEG_layer_3'
2014-11-15 16:34:03 +01:00
Marco Castelluccio
dc9609ebc9
Add audio/mpeg to the list of supported content types
2014-11-15 16:32:32 +01:00
Marco Castelluccio
b343baf9ff
Print the className as a JS string instead of a Java class in checkInByMidlet0
2014-11-15 16:27:42 +01:00
Marco Castelluccio
c5a1db6d61
Define extToFormat outside guessFormatFromURL
2014-11-14 23:44:27 +01:00
Marco Castelluccio
8f15bd1a2c
Guess format from URL in the Player constructor
2014-11-14 20:09:30 +01:00
Myk Melez
8aa09356b3
Merge pull request #594 from marco-c/Player_getMediaFormat
...
getMediaFormat should return UNKNOWN if the url is null or if the conten...
2014-11-14 10:44:26 -08:00
Marco Castelluccio
189f7e9438
getMediaFormat should return UNKNOWN if the url is null or if the contentSize is 0. Fixes #590 .
2014-11-14 19:12:18 +01:00
Marco Castelluccio
4bbd508fbe
nSetWholeContentSize second parameter is a long
2014-11-14 18:46:38 +01:00
Yuan Xulei
7e90108522
Simplify the logical of ListCache.
2014-11-14 11:29:01 +08:00
Yuan Xulei
9a72349c84
Fix typos.
2014-11-14 11:29:01 +08:00
Yuan Xulei
b78eb9a688
Add stub native methods of nSwitchToForeground and nSwitchToBackground.
2014-11-14 11:29:00 +08:00
Yuan Xulei
febe75cd7c
Setting mute on and off doesn't change volume level returned by getLevel.
2014-11-14 11:29:00 +08:00
Yuan Xulei
db9e77d94e
Support pausing and resuming audio playing.
2014-11-14 11:29:00 +08:00
Yuan Xulei
8208948737
implement getMediaTime.
2014-11-14 11:29:00 +08:00
Yuan Xulei
fa729f3b9b
Properly close the audio playing.
2014-11-14 11:29:00 +08:00
Yuan Xulei
d2d4ac64d1
Fix meida format issue.
2014-11-14 11:28:58 +08:00
Yuan Xulei
647a47be2b
Implement the native methods of volume control for DirectVolume
2014-11-14 11:28:07 +08:00
Yuan Xulei
418d9d74b9
Don't decode the audio buffer without data.
2014-11-14 11:26:40 +08:00
Yuan Xulei
a6c17eb729
Add wav audio player.
2014-11-14 11:26:36 +08:00
Yuan Xulei
32cd95e439
Implement some native methods under com/sum/mmedia
2014-11-14 11:04:17 +08:00
Yuan Xulei
ee2df44a20
Implement native method to enumerate content types for com.sun.mmedia.DefaultConfiguration.
2014-11-14 11:04:17 +08:00
Tim Abraldes
9d6491a134
Remove superfluous console logging
2014-11-12 12:14:06 -08:00
Tim Abraldes
b3483a3692
Implement various `VirtualKeyboard` methods
...
Implements:
VirtualKeyboard.isVisible
VirtualKeyboard.getXPosition
VirtualKeyboard.getYPosition
VirtualKeyboard.getWidth
VirtualKeyboard.getHeight
VirtualKeyboard.setVisibilityListener
Also updates the documentation of a couple of classes
2014-11-12 11:49:43 -08:00
Marco Castelluccio
9b972134ca
Implement Graphics::drawSubstring native
2014-11-12 18:48:43 +01:00
Pin Zhang
dc15489c1a
Move libs/text_editor.js to midp/text_editor.js
2014-11-12 18:44:32 +08:00
Pin Zhang
742ea6d38f
Fixed regression: the caret position lost.
...
caret position is lost in the case:
- Edit TEXTAREA field, input some character
- Edit PASSWORD field
- Edit TEXTAREA field again, the caret lost.
2014-11-12 18:44:32 +08:00
Pin Zhang
2a97cec733
Implement password editor.
2014-11-12 18:44:32 +08:00
Marco
5fa9a64432
Merge pull request #559 from PinZhang/pzhang/texteditor-focus-issue
...
Fix LWUIT text editor focus issue.
2014-11-12 11:00:57 +01:00
Pin Zhang
c81521a90d
Fix LWUIT key release issue.
...
`com.sun.lwuit.Display.keyReleased` is never been called which causes
`com.sun.lwuit.Form.keyRepeated` is invoked repeately.
2014-11-12 15:22:03 +08:00
Pin Zhang
b1eb31db2c
Fix LWUIT text editor focus issue.
...
We need to click twice to focus the text editor, because setVisible()
is called after setFocus().
2014-11-12 10:04:25 +08:00
Marco Castelluccio
0c0c4136e8
Merge branch 'master' of https://github.com/andreasgal/j2me.js into pimproxy_natives
2014-11-11 22:19:46 +01:00
Marco Castelluccio
f171dca902
Disable opening PIM list in write mode (because it hasn't been implemented yet)
2014-11-11 13:33:06 +01:00
Marco Castelluccio
06f88cd5dd
Fix warning messages in incomplete natives; create an array of supported fields instead of hardcoding them in the getFieldsCount and getFields natives
2014-11-11 13:19:44 +01:00
Marco Castelluccio
9c9ea737d5
Remove logging statement; update number of passing tests
2014-11-11 00:00:30 +01:00
Marco Castelluccio
8302fc3233
Add other fields to the supported fields list; support listOpen and listClose natives; support natives to get contacts as vcards
2014-11-10 23:18:16 +01:00
Myk Melez
509f6d184e
Merge pull request #554 from marco-c/locktopartialview
...
Enable image.processing to work also if aspect is "LockToPartialView"
2014-11-08 13:46:24 -08:00
Myk Melez
a66d43c9d2
Merge pull request #553 from EricRahm/issue_388
...
Switch to |fs.close| calling |fs.flush|
2014-11-08 13:45:24 -08:00
Marco Castelluccio
c213cfe730
Implement other PIM natives
2014-11-08 18:01:12 +01:00
Marco Castelluccio
a22d7763ee
Add other stub natives
2014-11-08 17:19:24 +01:00
Marco Castelluccio
26bc1f9702
Update nokia.image-processing Scale error message
2014-11-07 22:27:58 +01:00
Eric Rahm
24f8fb439a
File.Connection.truncateImpl should use size param
...
|fs.truncate| is too simple for this case, we need to use |fs.ftruncate|
like it was originally using.
2014-11-07 09:34:18 -08:00
Myk Melez
94e7a0957a
Merge pull request #546 from PinZhang/pzhang/texteditor-position
...
Fix TextEditor position issue.
2014-11-07 08:34:02 -08:00
Marco Castelluccio
fa6375da0d
WIP PIM natives
2014-11-07 11:08:53 +01:00
Marco Castelluccio
7a8c5165b7
Enable image.processing to work also if aspect is "LockToPartialView"
2014-11-07 10:39:55 +01:00
Pin Zhang
ddcfb6e3f7
Fix TextEditor position issue.
...
When using LWUIT library, the position of TextEditor set by TextField
is incorrect when the TITLE_LAYER of MIDPWindow is shown.
2014-11-07 13:55:23 +08:00
Eric Rahm
3f8cee9756
Switch to |fs.close| calling |fs.flush|
...
Issue #388 .
- Adds a dirty flag to our FD, updates it on write/truncate/flush
- Only flush if the dirty flag is set
- |fs.close| calls flush
2014-11-06 18:08:12 -08:00
Myk Melez
0796ec4f26
Merge pull request #547 from marco-c/getFirst_getNext
...
Implement getFirst and getNext methods for nokia.contacts
2014-11-06 17:37:16 -08:00
Marco Castelluccio
acb44691fb
Send only the first 30 characters of the contact ID, because some MIDlets only accept contact IDs that are long less than 30 characters
2014-11-07 02:06:37 +01:00
Marcus Cavanaugh
7cf675802d
Enhance tap support with mouse/pointer events and a threshold.
2014-11-06 16:33:03 -08:00
Marco Castelluccio
9f6e0dc645
Implement getFirst and getNext. Fixes #517 .
2014-11-06 19:06:57 +01:00
Marco Castelluccio
0a718612d3
Get parameters from the client
2014-11-06 09:29:25 +01:00
Myk Melez
e1fe774e83
Merge pull request #539 from marco-c/nokia_image_processing
...
Implement nokia.image-processing localmsg server
2014-11-05 15:57:49 -08:00
Myk Melez
b5b868e316
Merge pull request #543 from mcav/mousemove
...
Ignore spurious mousemove events.
2014-11-05 15:28:34 -08:00
Marcus Cavanaugh
b89e6580e9
Ignore spurious mousemove events.
2014-11-05 11:26:47 -08:00
Marco Castelluccio
db2aaf37e7
Set mutable field in the destination ImageData object
2014-11-05 20:08:01 +01:00
Marco Castelluccio
bbf8a8c001
Remove WIP comment
2014-11-05 20:04:29 +01:00
Marco Castelluccio
b4a4841bfa
Implement ImageDataFactory::createImmutableImageDataRegion native. Fixes #541 .
2014-11-05 20:03:03 +01:00
Marco Castelluccio
dae9d9c94d
Remove logging statements
2014-11-05 01:10:18 +01:00
Marco Castelluccio
688c7f1ed8
Store the new image and send the reply to the client. Fixes #525 .
2014-11-05 01:08:30 +01:00
Marco Castelluccio
3a136749f2
Create helper function to create "unique" files
2014-11-05 01:04:16 +01:00
Marco Castelluccio
b3c9e9e00e
Fail if the aspect value is not what we expected
2014-11-05 00:48:03 +01:00
Marco Castelluccio
0dac01ffba
Draw the image with the requested size in a canvas and transform the canvas back to a blob
2014-11-05 00:47:29 +01:00
Myk Melez
cab8e19187
Merge pull request #536 from EricRahm/alt_impl_perf
...
Improve perf of createAlternanteImpl
2014-11-04 09:27:28 -08:00
Marco Castelluccio
6027ade353
Log data sent from the client, read the requested file and decode it
2014-11-04 16:05:27 +01:00
Marco Castelluccio
6fad292b75
WIP nokia.image-processing localmsg server
2014-11-04 14:59:27 +01:00
Marco Castelluccio
ab91548569
Fix nokia.file-ui error message
2014-11-04 13:09:56 +01:00
Eric Rahm
c64a188b39
Improve perf of createAlternanteImpl
...
- Creates return-type specific return functions that are determined at
creation time.
- Splits off promise handling to it's own function. Overrides that use promises
must indicate so when creating the override with the usesPromise param.
- Updates overrides that use promises
2014-11-03 17:47:51 -08:00
Marco Castelluccio
37ee650fb9
Generate sequence of file names by incrementing a number instead of appending it
2014-11-03 20:25:59 +01:00
Marco Castelluccio
35ffa68ff9
Use relative paths
2014-11-03 19:23:58 +01:00
Marco Castelluccio
15c09c3576
Merge branch 'master' of https://github.com/andreasgal/j2me.js into nokia_fileui
2014-11-03 18:36:58 +01:00
Marco
ab5b708833
Merge pull request #522 from mykmelez/always-awaken-text-editor-thread
...
awaken text editor thread if there are dirty editors when sleep() called
2014-11-02 21:59:47 +01:00
Marco Castelluccio
ac7b72b5ce
Enable "Done" button when a file has been selected
2014-11-02 20:04:24 +01:00
Marco Castelluccio
40c7682c61
Merge branch 'master' of https://github.com/andreasgal/j2me.js into nokia_fileui
...
Conflicts:
midp/localmsg.js
2014-11-02 19:37:07 +01:00
Marco Castelluccio
b038696d95
Add nokia.image-processing to the list of unimplemented Nokia-specific localmsg servers
2014-11-02 19:35:39 +01:00
Marco Castelluccio
48432429d8
Store the selected file in IndexedDB and build the reply. Fixes #509 .
2014-11-02 19:10:30 +01:00
Marco Castelluccio
5110e03909
Return early in nokia.messaging localmsg server if there's no reply to send
2014-11-01 13:53:36 +01:00
Marco Castelluccio
84211e51e2
WIP handling of file ui dialog events
2014-11-01 13:52:31 +01:00
Myk Melez
2f408d6a4f
awaken text editor thread if there are dirty editors when sleep() called
2014-10-31 15:57:13 -07:00
Marco Castelluccio
996ac7493d
WIP implementation of nokia.file-ui localmsg server
2014-10-31 11:30:09 +01:00
Marco
ac73d1c7d4
Merge pull request #505 from mykmelez/text-editor-focus
...
preserve focus/visibility state of text editor (fixes #318 )
2014-10-29 11:59:09 +01:00
Marco Castelluccio
f6ff81b02b
Add missing ctx parameter in EventQueue.sendShutdownEvent
2014-10-28 23:40:12 +01:00
Myk Melez
1d1155fac2
preserve focus/visibility state
2014-10-28 14:14:27 -07:00
Marco Castelluccio
f3b184b3e4
Move newArray and its relatives from Context and Runtime to util
2014-10-27 13:13:54 +01:00
Marco Castelluccio
820f2ef5da
Pass ctx as last optional parameter. Fixes #485 .
2014-10-27 12:37:53 +01:00
Marco
958c91dc34
Merge pull request #494 from PinZhang/pzhang/write-on-closed-socket
...
Allow reading if there is data left in the buffer event socket is closed
2014-10-24 19:09:57 +02:00
Pin Zhang
a52cbb08df
Allow reading if there is data left in the buffer event socket is closed
...
Also fixed the bug when writing to a closed socket.
2014-10-25 00:13:48 +08:00
Marco
2ad072dfd3
Merge pull request #480 from yxl/master
...
Implement methods to draw elliptical arc.
2014-10-24 16:39:32 +02:00
Marco
4caf16cdfd
Merge pull request #479 from mykmelez/test-ssl-stream-connection
...
test ssl stream connection (fixes #189 )
2014-10-24 09:33:35 +02:00
Eric Rahm
11086d80b5
Directly map field IDs to localized values
...
This change makes every localization lookup a simple map retrieval rather
than iterating the entire fields array each time.
2014-10-23 12:26:26 -07:00
Marco
9415e4df2c
Merge pull request #482 from PinZhang/pzhang/platform-request
...
Implement CldcPlatformRequest.dispatchPlatformRequest
2014-10-23 08:40:24 +02:00
Yuan Xulei
f5b4c22264
Implement methods to draw elliptial arc with tests.
2014-10-23 10:50:54 +08:00
Myk Melez
054d683ced
clean up logging and error reporting
2014-10-22 16:32:32 -07:00
Myk Melez
e465f9d565
only use test cert when running tests
2014-10-22 12:13:19 -07:00
Myk Melez
418a03694e
Merge branch 'master' into test-ssl-stream-connection
2014-10-22 11:04:02 -07:00
Marco
38bbbef15f
Merge pull request #481 from PinZhang/pzhang/mising-isolateid
...
Fix MIDP.nativeEventQueues[isolateId] undefined error
2014-10-22 11:36:57 +02:00
Pin Zhang
368ad99305
Implement CldcPlatformRequest.dispatchPlatformRequest.(Ljava/lang/String;)Z
2014-10-22 16:25:25 +08:00
Pin Zhang
77771e6a0c
Fix MIDP.nativeEventQueues[isolateId] undefined error when shutdown isolate
2014-10-22 15:55:29 +08:00
Pin Zhang
2744a68ee0
Fix recordStore cleanup bug
2014-10-22 09:45:23 +08:00
Myk Melez
5915d0510f
work-in-progress impl of SSL stream test
2014-10-21 17:02:04 -07:00
Marco Castelluccio
4e990a3e37
Replace _this with this in Font.charsWidth and Font.substringWidth
2014-10-21 15:14:52 +02:00
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