Skip to content

Commit b6a7967

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
No comment
1 parent 98b738e commit b6a7967

269 files changed

Lines changed: 4772 additions & 935 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ specs-versions:
2828

2929
# Generate all Go code from specs.
3030
generate: specs
31-
go run ./tools/cmd/spec2go -specs specs/ -output . -smoke-tests -codes-output binder/versionaware/codes_gen.go
31+
go run ./tools/cmd/spec2go -specs specs/ -output . -native-impls native_impls/ -smoke-tests -codes-output binder/versionaware/codes_gen.go
3232

3333
# Generate bindercli commands from specs.
3434
cli: specs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@ git submodule update --init --depth 1
20632063
go run ./tools/cmd/aospgen -3rdparty tools/pkg/3rdparty -output . -smoke-tests
20642064
```
20652065

2066-
This discovers all AIDL files across `frameworks-base`, `frameworks-native`, `hardware-interfaces`, and `system-hardware-interfaces`, infers search roots from package declarations, and generates Go proxies for all AOSP services. The current AOSP snapshot produces **5,144 Go files** across **405 packages**.
2066+
This discovers all AIDL files across `frameworks-base`, `frameworks-native`, `hardware-interfaces`, and `system-hardware-interfaces`, infers search roots from package declarations, and generates Go proxies for all AOSP services. The current AOSP snapshot produces **5,146 Go files** across **405 packages**.
20672067

20682068
### Transaction Code Resolution
20692069

@@ -2355,7 +2355,7 @@ See the example app at [`examples/gomobile/`](examples/gomobile/).
23552355
│ └── driver.go Open, mmap, ioctl BINDER_WRITE_READ
23562356
├── servicemanager/ ServiceManager client
23572357
├── errors/ AIDL exception types (ExceptionCode, StatusError)
2358-
├── android/ Pre-generated AOSP service proxies (5,144 files)
2358+
├── android/ Pre-generated AOSP service proxies (5,146 files)
23592359
│ ├── app/ ActivityManager, AlarmManager, ...
23602360
│ ├── os/ ServiceManager, PowerManager, ...
23612361
│ ├── hardware/ HAL interfaces

android/app/job/jobinfo.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/notification.go

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
11
package app
22

33
import (
4+
"fmt"
5+
46
"github.com/AndroidGoLab/binder/parcel"
57
)
68

7-
// Code generated by aidlgen. DO NOT EDIT.
8-
9-
type Notification struct {
10-
}
9+
// Notification is a native parcelable whose wire format is defined by
10+
// Java's Notification.writeToParcel / readFromParcelImpl.
11+
// This implementation reads and discards all fields to advance the
12+
// parcel position correctly, without storing any data.
13+
type Notification struct{}
1114

1215
var _ parcel.Parcelable = (*Notification)(nil)
1316

14-
func (s *Notification) MarshalParcel(
15-
p *parcel.Parcel,
16-
) error {
17-
_headerPos := parcel.WriteParcelableHeader(p)
18-
19-
parcel.WriteParcelableFooter(p, _headerPos)
20-
return nil
17+
func (s *Notification) MarshalParcel(p *parcel.Parcel) error {
18+
return fmt.Errorf("Notification.MarshalParcel: not implemented")
2119
}
2220

23-
func (s *Notification) UnmarshalParcel(
24-
p *parcel.Parcel,
25-
) error {
26-
_endPos, _err := parcel.ReadParcelableHeader(p)
27-
if _err != nil {
28-
return _err
29-
}
30-
31-
parcel.SkipToParcelableEnd(p, _endPos)
32-
return nil
21+
func (s *Notification) UnmarshalParcel(p *parcel.Parcel) error {
22+
return parcel.SkipNotification(p)
3323
}

android/app/servicestartargs.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/smartspace/smartspacesessionid.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/smartspace/smartspacetarget.go

Lines changed: 39 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/timedetector/telephonytimesuggestion.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/timezonedetector/manualtimezonesuggestion.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/timezonedetector/telephonytimezonesuggestion.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)